【报错修改】

dev_chengFeng
ZhangBiao 2021-07-22 11:40:13 +08:00
parent 5fa9f25c09
commit 63c2a33c84
2 changed files with 3 additions and 3 deletions

View File

@ -273,7 +273,7 @@ function this.OnPageTabChange(index)
end
if subViewList[index] and subViewList[index].config and subViewList[index].sub then
--每日每周任务页签拆分用
if tabs[index].ShopData[1][1] == -9999 then
if tabs[index].ShopData and tabs[index].ShopData[1][1] == -9999 then
CommonActPageManager.DynamicActType = tabs[index].ActId
end
subViewList[index].sub:OnShow(orginLayer)
@ -284,7 +284,7 @@ function this.OnPageTabChange(index)
subViewList[index].config = SubUIConfig[tabs[index].UIName[1]]
subViewList[index].sub = SubUIManager.Open(subViewList[index].config,this.content.transform,tabs[index],index,this)
--每日每周任务页签拆分用
if tabs[index].ShopData[1][1] == -9999 then
if tabs[index].ShopData and tabs[index].ShopData[1][1] == -9999 then
CommonActPageManager.DynamicActType = tabs[index].ActId
end
subViewList[index].sub:OnShow(orginLayer)

View File

@ -77,7 +77,7 @@ function CommonActPage:OnShow(_sortingOrder)
self.actId = self.actConfig.ActId
self.actType = self.actConfig.ActiveType
--每日每周任务页签拆分用
if self.actConfig.ShopData[1][1] == -9999 then
if self.actConfig.ShopData and self.actConfig.ShopData[1][1] == -9999 then
self.actType = 20000
end
if self.actConfig.IfBack == 1 then