Merge branch 'master_develop' of http://60.1.1.230/gaoxin/JL_Client into master_develop

dev_chengFeng
ZhangBiao 2020-08-31 16:32:36 +08:00
commit c72aa2bd21
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)