parent
d277869800
commit
83edf3ad34
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue