【活动】未开启的活动页签不再显示
parent
450e2b412b
commit
e8dd8f9bea
|
|
@ -62,6 +62,9 @@ end
|
|||
-- 打开,重新打开时回调
|
||||
function ActivityMainPanel:OnShow()
|
||||
orginLayer = self.sortingOrder
|
||||
if _CurPageIndex and _CurPageIndex > #tabs then
|
||||
_CurPageIndex = #tabs
|
||||
end
|
||||
this.PageTabCtrl:Init(this.tabbox.gameObject, tabs,_CurPageIndex)
|
||||
end
|
||||
|
||||
|
|
|
|||
|
|
@ -436,10 +436,12 @@ function this.GetActivityTableDataByPageInde(pageIndex)
|
|||
local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.ActivityGroups,"PageType",pageIndex)
|
||||
for i = 1 , #configs do
|
||||
if configs[i].ActiveType > 0 then
|
||||
if ActivityGiftManager.IsActivityTypeOpen(configs[i].ActiveType) then
|
||||
if not activityDic[configs[i].ActiveType] then
|
||||
activityDic[configs[i].ActiveType] = configs[i]
|
||||
table.insert(activityGroupsData,configs[i])
|
||||
end
|
||||
end
|
||||
elseif configs[i].FunType > 0 then
|
||||
if not activityDic[configs[i].FunType] then
|
||||
functionDic[configs[i].FunType] = configs[i]
|
||||
|
|
|
|||
Loading…
Reference in New Issue