【累计充值红点】主题活动中累计充值的红点会显示在限时活动入口

dev_chengFeng
zhangqiang 2021-04-27 23:04:58 +08:00
parent 916b4e2eae
commit 52e6cdd917
2 changed files with 24 additions and 0 deletions

View File

@ -635,6 +635,16 @@ function this.ExpterActivityIsShowRedPoint(activeIndex)
if expertRewardTabs.value >= value then
return true
end
elseif activeType == ActivityTypeDef.AccumulativeRechargeExper then
local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.AccumulativeRechargeExper)
if id and id > 0 then
local curActiveConfig = ConfigManager.TryGetConfigData(ConfigName.GlobalActivity,id)
if curActiveConfig and curActiveConfig.ShowArt == 1 then--1类型的活动是限时活动里的累计充值
if expertRewardTabs.value >= value then
return true
end
end
end
else
if expertRewardTabs.value >= value then
--Log("限时红点 --------------- true")

View File

@ -91,6 +91,20 @@ function ActivityMainPanel:OnOpen(_activityType,_index)
this.activityType = _activityType
DynamicActivityManager.curActivityType = this.activityType
tabs = DynamicActivityManager.GetActivityTableDataByPageInde(this.activityType)
--累计充值特殊判断
for i = 1, #tabs do
if tabs[i] and tabs[i].ActiveType > 0 then
local id = ActivityGiftManager.IsActivityTypeOpen(tabs[i].ActiveType)
if id and id > 0 then
local curActiveConfig = ConfigManager.TryGetConfigData(ConfigName.GlobalActivity,id)
if curActiveConfig and curActiveConfig.ShowArt == 3 then--3类型的活动不是限时活动里的累计充值
table.remove(tabs,i)
break
end
end
end
end
--累计充值特殊判断结束
_CurPageIndex = 0
if _index and _index > 0 then
self:CheckActOpen(_index)