【累计充值红点】主题活动中累计充值的红点会显示在限时活动入口
parent
916b4e2eae
commit
52e6cdd917
|
@ -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")
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue