Merge branch 'china/dev' of http://60.1.1.230/gaoxin/JL_Client into china/dev

dev_chengFeng
jiaoyangna 2021-07-24 19:39:25 +08:00
commit b49166afe1
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()