tcx_xiyou_yueNan
zhangjiannan 2026-08-08 09:45:40 +08:00
parent b4b84bbdef
commit 453de72c0b
2 changed files with 5 additions and 3 deletions

View File

@ -127,7 +127,7 @@ function ActivityMainPanel:OnOpen(_activityType, _index, change)
self:CheckActOpen(_index)
end
for index = 1, #tabs do
if _CurPageIndex < 1 then
if _CurPageIndex < 1 then
self:CheckActOpen(tabs[index].Sort)
else
break

View File

@ -500,12 +500,14 @@ function EveryDayGiftNew:RefreshOneKeyShow()
-- 计算总价
local ori = 0
for i = 1, #self.shopData do
ori = ori + self.shopData[i].data.finalNum
ori = ori + self.shopData[i].data.finalNum*self.shopData[i].data.limitNum
end
-- 计算现价
local now = 0
LogError("onKeyPackId===================" .. onKeyPackId)
now = now + MoneyUtil.GetMoney(ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, onKeyPackId).Price)
local recharge = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, onKeyPackId)
now = now + MoneyUtil.GetMoney(recharge.Price)
if ori == now then
self.extarOneKeyprice2.text = Language[10700] .. string.format(MoneyUtil.GetMoneyUnitName(), ori)
self.extarOneKeyprice1.text = Language[10830] .. string.format(MoneyUtil.GetMoneyUnitName(), now)