【主题活动】点击页签打开,第一个活动不是选中状态

dev_chengFeng
ZhangBiao 2020-12-28 10:56:02 +08:00
parent 10156d63e6
commit 9d3b560c50
1 changed files with 5 additions and 1 deletions

View File

@ -277,7 +277,11 @@ function DynamicActivityPanel:OnShow()
this.tabList:SetActive(true)
this.bottomBar:SetActive(true)
this.mask:SetActive(false)
if _CurPageIndex then
if _CurPageIndex and _CurPageIndex == 1 then
local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.DynamicAct)
_CurPageIndex = GlobalActConfig[id].ShowArt
this.PageTabCtrl:ChangeTab(_CurPageIndex)
elseif _CurPageIndex then
this.PageTabCtrl:ChangeTab(_CurPageIndex)
end
end