【点金达人】在活动界面跳转点金,需要切换页签,次数才会刷新

dev_chengFeng
ZhangBiao 2021-05-08 11:45:05 +08:00
parent 9fda08c7ba
commit b88d05061c
2 changed files with 4 additions and 3 deletions

View File

@ -517,7 +517,7 @@ end
--界面关闭时调用(用于子类重写)
function FindTreasureMainPanel:OnClose()
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.BagGold)
if timer then
timer:Stop()
timer = nil

View File

@ -10,12 +10,12 @@ end
--添加事件监听(用于子类重写)
function ExpertPage:AddListener()
Game.GlobalEvent:AddEvent(GameEvent.Bag.BagGold, self.RefreshData,self)
end
--移除事件监听(用于子类重写)
function ExpertPage:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.Bag.BagGold, self.RefreshData,self)
end
@ -134,6 +134,7 @@ end
--刷新数据
function ExpertPage:RefreshData(isTop,isAni)
LogYellow("刷新了么")
self.ActData = CommonActPageManager.GetData(self.actConfig.ActiveType)
if self.actConfig.RpType > 0 then
CheckRedPointStatus(self.actConfig.RpType)