tcx_xiyou_yueNan
parent
b4b84bbdef
commit
453de72c0b
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue