活动修改

onepiece_demo_new hotfix/tcx_haizei/cdn_haizeiOnline_ios/1.1.17
wangzhenxing 2024-05-31 19:51:29 +08:00
parent d277869800
commit 83edf3ad34
1 changed files with 6 additions and 0 deletions

View File

@ -105,6 +105,7 @@ function CommonActPage:OnShow(_sortingOrder)
end
end
if self.actConfig.Icon[3] and self.actConfig.Icon[3] ~= "" then
LogError("self.actConfig.Icon[3]========================="..self.actConfig.Icon[3])
self.titleBgIma.sprite = self.spLoader:LoadSprite(self.actConfig.Icon[3])
self.titleBgIma:SetNativeSize()
else
@ -196,6 +197,7 @@ function CommonActPage:OnShow(_sortingOrder)
end
--刷新数据
function CommonActPage:RefreshData(isUpdata,isTop,isAni)
self.ActData = CommonActPageManager.GetData(self.actType)
if self.actConfig.RpType > 0 then
CheckRedPointStatus(self.actConfig.RpType)
@ -208,6 +210,10 @@ function CommonActPage:RefreshActData(isTop,isAni)
self.scrollView:ForeachItemGO(function(index, go)
go.gameObject:SetActive(false)
end)
if self.ActData==nil then
LogError("没有活动类型的数据 self.actType=================================="..self.actType)
return
end
self.scrollView:SetData(self.ActData.rewards, function (index, item)
self:ShowSingleData(item, self.ActData.rewards[index],index)
end,not isTop,not isAni)