Merge branch 'master_develop' of http://60.1.1.230/gaoxin/JL_Client into master_develop
commit
c72aa2bd21
|
|
@ -172,9 +172,22 @@ function this:SetRedPoint()
|
||||||
this.finalTrailBtnRed:SetActive(QinglongSerectTreasureManager.GetSerectTreasureTrailSingleRedPot(2))
|
this.finalTrailBtnRed:SetActive(QinglongSerectTreasureManager.GetSerectTreasureTrailSingleRedPot(2))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local state = {
|
||||||
|
[1] = 0,
|
||||||
|
[0] = 1,
|
||||||
|
[2] = 2,
|
||||||
|
}
|
||||||
--任务列表
|
--任务列表
|
||||||
function this:showTaskList(type)
|
function this:showTaskList(type)
|
||||||
local rewardData = QinglongSerectTreasureManager.GetQinglongTaskData(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.ScrollView:SetData(rewardData,function(index, rewardItem)
|
||||||
this:SingleTask(rewardItem, rewardData[index])
|
this:SingleTask(rewardItem, rewardData[index])
|
||||||
end)
|
end)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue