每日充值活动修改
parent
286e8c0839
commit
ecaec3154e
|
|
@ -100,12 +100,20 @@ function PremiumRebatePanel:OnShow()
|
|||
FixedUpdateBeat:Add(this.OnUpdate,self)
|
||||
this.PageTabCtrl:Init(this.tabbox.gameObject, BTNS,curPage)
|
||||
end
|
||||
|
||||
local sorts={
|
||||
[1]=0,
|
||||
[0]=1,
|
||||
[2]=2,
|
||||
}
|
||||
function PremiumRebatePanel:Refresh(isTop,isAni)
|
||||
--value 累计充值天数 昨天 ,,
|
||||
this.actData = ActivityGiftManager.GetActivityTypeInfo(BTNS[curPage].actType)
|
||||
table.sort(this.actData.mission,function(a,b)
|
||||
if a.state==b.state then
|
||||
return a.missionId < b.missionId
|
||||
else
|
||||
return sorts[a.state]<sorts[b.state]
|
||||
end
|
||||
end)
|
||||
LogError("this.actData.activityId=="..this.actData.activityId)
|
||||
--this.giftData = DynamicActivityManager.GetGiftDataByType({{DataType.Direct,BTNS[curPage].goodsType,BTNS[curPage].showType}})
|
||||
|
|
@ -144,6 +152,7 @@ function PremiumRebatePanel:SetRewardShow(isTop,isAni)
|
|||
this.scrollView:SetIndex(index)
|
||||
end
|
||||
|
||||
|
||||
function PremiumRebatePanel:ShowSingleHero(go,_data,index)
|
||||
local title = Util.GetGameObject(go, "title"):GetComponent("Text")
|
||||
local grid = Util.GetGameObject(go, "Grid")
|
||||
|
|
@ -152,7 +161,7 @@ function PremiumRebatePanel:ShowSingleHero(go,_data,index)
|
|||
local btnProgressText = Util.GetGameObject(go, "btnGet/progress"):GetComponent("Text")
|
||||
local btnImg = Util.GetGameObject(go, "btnGet"):GetComponent("Image")
|
||||
local red = Util.GetGameObject(btnImg.gameObject, "red")
|
||||
LogError("_data.missionId===".._data.missionId)
|
||||
LogError("_data.missionId===".._data.missionId.." state==".._data.state)
|
||||
local missionConfigData = activityRewardConfig[_data.missionId]
|
||||
if missionConfigData then
|
||||
go.gameObject:SetActive(true)
|
||||
|
|
|
|||
Loading…
Reference in New Issue