【万象商会】提交

dev_chengFeng
ZhangBiao 2021-07-24 19:33:56 +08:00
parent 4c73ac0976
commit 7e9fad28b7
2 changed files with 7 additions and 3 deletions

View File

@ -259,6 +259,10 @@ end
function CommonActPage:OnClose()
self.parent.tabbox.gameObject:SetActive(true)
self.gameObject:SetActive(false)
if self.localTimer then
self.localTimer:Stop()
self.localTimer = nil
end
end
function CommonActPage:OnDestroy()

View File

@ -114,17 +114,17 @@ function ShopViewNew:BindEvent()
end
local RefreshData = function(self)
self:RefreshItemList(false)
self:OnShow(sortingOrder)
end
--添加事件监听(用于子类重写)
function ShopViewNew:AddListener()
Game.GlobalEvent:AddEvent(GameEvent.FiveAMRefresh.ServerNotifyRefresh,RefreshData,self)
Game.GlobalEvent:AddEvent(GameEvent.Shop.OnShopInfoChange,RefreshData,self)
end
--移除事件监听(用于子类重写)
function ShopViewNew:RemoveListener()
Game.GlobalEvent:RemoveEvent(GameEvent.FiveAMRefresh.ServerNotifyRefresh,RefreshData,self)
Game.GlobalEvent:RemoveEvent(GameEvent.Shop.OnShopInfoChange,RefreshData,self)
end
function ShopViewNew:OnSortingOrderChange()