【新活动】在每周活动要结束的时候进行皮肤预览或抽卡操作,结束后页面变黑报错 修改
parent
cce6cb12fb
commit
03dc5fd16f
|
|
@ -274,7 +274,7 @@ end
|
|||
-- 打开,重新打开时回调
|
||||
function DynamicActivityPanel:OnShow()
|
||||
local activiytId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.DynamicAct)
|
||||
if not activiytId and activiytId <= 0 then
|
||||
if not activiytId or activiytId <= 0 then
|
||||
self:ClosePanel()
|
||||
end
|
||||
this.btnBack:SetActive(true)
|
||||
|
|
|
|||
|
|
@ -97,6 +97,8 @@ function LingShouBaoGe:BindEvent()
|
|||
end
|
||||
|
||||
function LingShouBaoGe:OnShow(_sortingOrder,_parent)
|
||||
local actId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.LingShouBaoGe)
|
||||
if not actId or actId <= 0 then return end
|
||||
parent = _parent
|
||||
sortingOrder = _sortingOrder
|
||||
this.gameObject:SetActive(true)
|
||||
|
|
@ -105,7 +107,6 @@ function LingShouBaoGe:OnShow(_sortingOrder,_parent)
|
|||
end
|
||||
|
||||
function LingShouBaoGe:Refresh()
|
||||
LogYellow("shuaxing !!!!!!!!!!!!!!")
|
||||
ActData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.LingShouBaoGe)
|
||||
activityId = ActData.activityId
|
||||
LSrewardData = ConfigManager.GetAllConfigsDataByKey(ConfigName.ActivityRewardConfig,"ActivityId",activityId)
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ function QianKunBox:OnShow(sortingOrder,_parent)
|
|||
Util.AddParticleSortLayer(self.effect, sortingOrder - orginLayer)
|
||||
orginLayer = sortingOrder
|
||||
activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.QianKunBox)
|
||||
if not activityId or activityId <= 0 then return end
|
||||
local array = ConfigManager.GetAllConfigsDataByKey(ConfigName.LotterySetting,"ActivityId",activityId)
|
||||
singleRecruit = array[1]
|
||||
tenRecruit = array[2]
|
||||
|
|
|
|||
|
|
@ -74,6 +74,7 @@ function ShengYiTianJiang:OnShow(_sortingOrder,_parent)
|
|||
end
|
||||
function ShengYiTianJiang:OnShowData()
|
||||
local activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.ShenYiTianJiang)
|
||||
if not activityId or activityId <= 0 then return end
|
||||
local activityConfig = ConfigManager.GetConfigData(ConfigName.GlobalActivity,activityId)
|
||||
rechargeConfigId = activityConfig.CanBuyRechargeId[1]
|
||||
allData = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,rechargeConfigId)
|
||||
|
|
|
|||
|
|
@ -299,6 +299,7 @@ function TimeLimitedCall:OnShow(_sortingOrder,_parent)
|
|||
end
|
||||
|
||||
activityId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FindFairy)
|
||||
if not activityId or activityId <= 0 then return end
|
||||
LogBlue("限时招募 activityId:"..activityId)
|
||||
Util.GetGameObject(self.gameObject,activityType[activityId].bg):SetActive(true)
|
||||
Util.GetGameObject(self.gameObject,activityType[activityId].bg.."/Image (3)"):GetComponent("Image").sprite = Util.LoadSprite(activityType[activityId].title)
|
||||
|
|
|
|||
|
|
@ -83,6 +83,8 @@ function XiangYaoDuoBao:BindEvent()
|
|||
end
|
||||
|
||||
function XiangYaoDuoBao:OnShow(_sortingOrder,_parent)
|
||||
local actId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.XiangYaoDuoBao)
|
||||
if not actId or actId <= 0 then return end
|
||||
parent = _parent
|
||||
sortingOrder = _sortingOrder
|
||||
this.gameObject:SetActive(true)
|
||||
|
|
|
|||
|
|
@ -124,6 +124,8 @@ end
|
|||
|
||||
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
|
||||
function XinJiangLaiXi:OnShow(_sortingOrder,_parent)
|
||||
local actId = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.XinJiangLaiXi)
|
||||
if not actId or actId <= 0 then return end
|
||||
parent = _parent
|
||||
sortingOrder = _sortingOrder
|
||||
XinJiangLaiXi:Refresh()
|
||||
|
|
|
|||
Loading…
Reference in New Issue