diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/GeneralBigPopup.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/GeneralBigPopup.lua index 5b1ef4a326..fa38d9ca59 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/GeneralBigPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/GeneralBigPopup.lua @@ -92,12 +92,13 @@ function GeneralBigPopup:OnOpen(popupKey,...) end this.Mask:SetActive(popupKey ~= GENERAL_POPUP_TYPE.Onhook) this.BG:SetActive(popupKey ~= GENERAL_POPUP_TYPE.Onhook) - - contentPrefabs[popupKey].gameObject:SetActive(true) - contentScripts[popupKey].view:OnShow(this,...)--1、传入自己 2、传入不定参 + this.popupKey = popupKey + this.args = ... end function GeneralBigPopup:OnShow() + contentPrefabs[this.popupKey].gameObject:SetActive(true) + contentScripts[this.popupKey].view:OnShow(this,this.args)--1、传入自己 2、传入不定参 end function GeneralBigPopup:OnClose()