修复主界面巅峰赛按钮时间显示错误的问题

dev_chengFeng
JieLing 2020-08-27 11:49:58 +08:00
parent 3effb209bb
commit 0f3b38f85e
1 changed files with 3 additions and 2 deletions

View File

@ -823,7 +823,7 @@ function this:BindEvent()
-- 巅峰
Util.AddClick(this.topMatchBtn, function()
JumpManager.GoJump(57001)
UIManager.OpenPanel(UIName.ArenaTopMatchPanel)
end)
this.BindRedPoint()
end
@ -1409,7 +1409,8 @@ function this.TimeFormat()
SetTopMatchActive(false)
elseif baseInfo.battleStage == TOP_MATCH_STAGE.CLOSE then
SetTopMatchActive(true)
local tempTime = baseInfo.endTime - PlayerManager.serverTime
local startTime = ArenaTopMatchManager.GetTopMatchTime()
local tempTime = startTime - PlayerManager.serverTime
this.topMatchTime.text = "距开始\n"..TimeToHMS(tempTime)
else
SetTopMatchActive(true)