青龙秘宝试炼排序提交
parent
c981f24ed0
commit
0ab3d69773
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue