【万象商会】提交
parent
4c73ac0976
commit
7e9fad28b7
|
@ -259,6 +259,10 @@ end
|
||||||
function CommonActPage:OnClose()
|
function CommonActPage:OnClose()
|
||||||
self.parent.tabbox.gameObject:SetActive(true)
|
self.parent.tabbox.gameObject:SetActive(true)
|
||||||
self.gameObject:SetActive(false)
|
self.gameObject:SetActive(false)
|
||||||
|
if self.localTimer then
|
||||||
|
self.localTimer:Stop()
|
||||||
|
self.localTimer = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function CommonActPage:OnDestroy()
|
function CommonActPage:OnDestroy()
|
||||||
|
|
|
@ -114,17 +114,17 @@ function ShopViewNew:BindEvent()
|
||||||
end
|
end
|
||||||
|
|
||||||
local RefreshData = function(self)
|
local RefreshData = function(self)
|
||||||
self:RefreshItemList(false)
|
self:OnShow(sortingOrder)
|
||||||
end
|
end
|
||||||
|
|
||||||
--添加事件监听(用于子类重写)
|
--添加事件监听(用于子类重写)
|
||||||
function ShopViewNew:AddListener()
|
function ShopViewNew:AddListener()
|
||||||
Game.GlobalEvent:AddEvent(GameEvent.FiveAMRefresh.ServerNotifyRefresh,RefreshData,self)
|
Game.GlobalEvent:AddEvent(GameEvent.Shop.OnShopInfoChange,RefreshData,self)
|
||||||
end
|
end
|
||||||
|
|
||||||
--移除事件监听(用于子类重写)
|
--移除事件监听(用于子类重写)
|
||||||
function ShopViewNew:RemoveListener()
|
function ShopViewNew:RemoveListener()
|
||||||
Game.GlobalEvent:RemoveEvent(GameEvent.FiveAMRefresh.ServerNotifyRefresh,RefreshData,self)
|
Game.GlobalEvent:RemoveEvent(GameEvent.Shop.OnShopInfoChange,RefreshData,self)
|
||||||
end
|
end
|
||||||
|
|
||||||
function ShopViewNew:OnSortingOrderChange()
|
function ShopViewNew:OnSortingOrderChange()
|
||||||
|
|
Loading…
Reference in New Issue