每日好礼修改

dev_chengFeng
JieLing 2021-03-29 21:12:34 +08:00
parent ecf6473d8d
commit 02ab3ee5e6
1 changed files with 25 additions and 20 deletions

View File

@ -1168,22 +1168,27 @@ function this.RefreshActivityBtn(context)
if v.ActiveType > 0 and v.ActiveType == context.type then if v.ActiveType > 0 and v.ActiveType == context.type then
local activityId = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType) local activityId = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType)
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then
activityTabs[k].go.gameObject:SetActive(context.status == 1) if v.FunType and v.FunType == 41 then
elseif v.FunType and v.FunType == 41 then
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist()) activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
else
activityTabs[k].go.gameObject:SetActive(context.status == 1)
end
else else
activityTabs[k].go.gameObject:SetActive(false) activityTabs[k].go.gameObject:SetActive(false)
end end
elseif v.FunType > 0 and v.FunType == context.type then elseif v.FunType > 0 and v.FunType == context.type then
if ActTimeCtrlManager.SingleFuncState(v.FunType) then if ActTimeCtrlManager.SingleFuncState(v.FunType) then
activityTabs[k].go.gameObject:SetActive(context.status == 1) if v.FunType and v.FunType == 41 then
elseif v.FunType and v.FunType == 41 then
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist()) activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
else
activityTabs[k].go.gameObject:SetActive(context.status == 1)
end
else else
activityTabs[k].go.gameObject:SetActive(false) activityTabs[k].go.gameObject:SetActive(false)
end end
end end
end end
isRefeshIcon = true isRefeshIcon = true
end end
--客户端自己Show刷新 --客户端自己Show刷新
@ -1243,11 +1248,11 @@ function this.RefreshActivityShow()
else else
activityTabs[k].go.gameObject:SetActive(false) activityTabs[k].go.gameObject:SetActive(false)
end end
elseif v.FunType and v.FunType == 41 then
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
else else
activityTabs[k].go.gameObject:SetActive(false) activityTabs[k].go.gameObject:SetActive(false)
end end
elseif v.FunType and v.FunType == 41 then
activityTabs[k].go.gameObject:SetActive(DailyRechargeManager.GetDailyRechargeExist())
else else
activityTabs[k].go.gameObject:SetActive(true) activityTabs[k].go.gameObject:SetActive(true)
end end