累计充值活动时间修改

dev_chengFeng
jiaoyangna 2020-08-25 12:31:43 +08:00
parent 6eea4b5111
commit 6687d0425f
1 changed files with 7 additions and 2 deletions

View File

@ -63,7 +63,7 @@ function LeiJiChongZhiPage:SetTime()
self.timer:Stop()
self.timer = nil
end
local timeDown = endtime - GetTimeStamp()
local timeDown = endtime
this.time.text = Language[10028]..TimeToDHMS(timeDown)
self.timer = Timer.New(function()
timeDown = timeDown - 1
@ -81,7 +81,12 @@ end
function LeiJiChongZhiPage:OnShowData()
allData =OperatingManager.InitLeiJiChongZhiData(curtype)
if allData then
endtime = ActivityGiftManager.GetTaskEndTime(curtype)
if curtype == ActivityTypeDef.AccumulativeRechargeExper then
endtime = CalculateSecondsNowTo_N_OClock(5)
else
endtime = ActivityGiftManager.GetTaskEndTime(curtype) - GetTimeStamp()
end
this.SortData(allData)
this.ScrollView:SetData(allData, function (index, go)
this.SingleDataShow(go, allData[index])