【跳转】增加惊喜礼盒跳转

dev_chengFeng
zhangqiang 2021-07-01 15:01:57 +08:00
parent 67dd2abbcb
commit deb6eeca03
2 changed files with 9 additions and 0 deletions

View File

@ -1047,6 +1047,7 @@ JumpType = {
firstRecharge = 30001, firstRecharge = 30001,
ZhiZunJiangShi = 30002, ZhiZunJiangShi = 30002,
SurpriseBox = 40001,--惊喜礼盒
} }
NPCPosType={ NPCPosType={

View File

@ -676,6 +676,14 @@ local jumpDic = {
[JumpType.ZhiZunJiangShi] = function(data) [JumpType.ZhiZunJiangShi] = function(data)
UIManager.OpenPanel(UIName.SupremeHeroPopup) UIManager.OpenPanel(UIName.SupremeHeroPopup)
end, end,
[JumpType.SurpriseBox] = function(data)
local activityId = ActivityGiftManager.IsActivityTypeOpen(data[1])
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(data[1]) then
UIManager.OpenPanel(UIName.SurpriseBoxPanel)
else
PopupTipPanel.ShowTip("活动尚未开启")
end
end,
} }
function this.JumpActivity(data,skipfactor) function this.JumpActivity(data,skipfactor)