【万象商会】提交
parent
4c73ac0976
commit
7e9fad28b7
|
@ -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()
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue