【充值】跳转修改

dev_chengFeng
ZhangBiao 2022-01-15 18:07:43 +08:00
parent e67ea3ae70
commit 2b8cb81ff3
2 changed files with 17 additions and 2 deletions

View File

@ -49,7 +49,12 @@ function MonthCardPage:BindEvent()
for i = 1, #self.cardPres do
Util.AddOnceClick(self.cardPres[i].month,function()
if not cardData[i].curState then
JumpManager.GoJump(27001)
-- JumpManager.GoJump(27001)
if ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.XinRenShop) then
JumpManager.GoJump(36012)
else
JumpManager.GoJump(36001)
end
else
if self.curAllMonthCardData[cardData[i].cardType].state == 0 then
NetManager.MonthCardTakeDailyRequest(cardData[i].cardType, function(drop)

View File

@ -379,7 +379,17 @@ function this.SetMissionData()
this.itemList[j].num.gameObject:SetActive(itemnum > 1)
this.RefreshItemData(j,idList[curPage][j].id)
Util.AddOnceClick(this.RewardList[j].Btn,function()
JumpManager.GoJump(dataConfig.Jump[1])
-- LogRed("dataConfig.Jump[1]:"..tostring(dataConfig.Jump[1]).." "..tostring(idList[curPage][j].id))
--这里做了处理,要求这种充值优先新人商城,未开启则跳转每日特惠
if dataConfig.Jump[1] == 36008 then
if ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.XinRenShop) then
JumpManager.GoJump(36012)
else
JumpManager.GoJump(36001)
end
else
JumpManager.GoJump(dataConfig.Jump[1])
end
Game.GlobalEvent:DispatchEvent(GameEvent.PatFace.PatFaceClear)
end)