Merge branch 'china/dev-c' of http://60.1.1.230/gaoxin/JL_Client into china/dev-c
commit
f02639f80b
|
|
@ -45,8 +45,10 @@ end
|
|||
function SurpriseBox:RemoveListener()
|
||||
end
|
||||
|
||||
local fun
|
||||
--界面打开时调用(用于子类重写)
|
||||
function SurpriseBox:OnOpen()
|
||||
function SurpriseBox:OnOpen(_fun)
|
||||
fun = _fun
|
||||
end
|
||||
|
||||
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
|
||||
|
|
@ -195,7 +197,10 @@ function SurpriseBox:SetViewList()
|
|||
end
|
||||
|
||||
function SurpriseBox:OnClose()
|
||||
|
||||
if fun then
|
||||
fun()
|
||||
fun = nil
|
||||
end
|
||||
end
|
||||
|
||||
--界面销毁时调用(用于子类重写)
|
||||
|
|
|
|||
Loading…
Reference in New Issue