青龙秘宝试炼排序提交

jiaoyangna 2020-09-07 16:09:29 +08:00
parent c981f24ed0
commit 0ab3d69773
1 changed files with 13 additions and 0 deletions

View File

@ -172,9 +172,22 @@ function this:SetRedPoint()
this.finalTrailBtnRed:SetActive(QinglongSerectTreasureManager.GetSerectTreasureTrailSingleRedPot(2))
end
local state = {
[1] = 0,
[0] = 1,
[2] = 2,
}
--任务列表
function this:showTaskList(type)
local rewardData = QinglongSerectTreasureManager.GetQinglongTaskData(type)
table.sort(rewardData,function(a,b)
if state[a.state] == state[b.state] then
return a.id > b.id
else
return a.state > b.state
end
end)
this.ScrollView:SetData(rewardData,function(index, rewardItem)
this:SingleTask(rewardItem, rewardData[index])
end)