【bug】修复排行榜分页 数据刷新后会导致页面回到最上方

dev_chengFeng
gaoxin 2021-03-09 15:18:27 +08:00
parent 141e60d493
commit d2940b5a18
1 changed files with 4 additions and 4 deletions

View File

@ -109,12 +109,12 @@ function this.GetRankInfo(rankType,rankIndex)
this.istop=true
local curActivity = sData.activiteId > 0 and ActivityGiftManager.GetActivityIdByType(sData.activiteId) or nil
RankingManager.InitData(rankType,function()
this.SetRankingInfo()
this.SetRankingInfo(true, true)
end,curActivity,rankIndex)
end
---设置排名信息
function this.SetRankingInfo()
function this.SetRankingInfo(isTop, isAnim)
local rankingData,myRankData=RankingManager.GetRankingInfo()
-- LogGreen("#rankingData "..#rankingData)
this.noneImage:SetActive(#rankingData==0)
@ -162,10 +162,10 @@ function this.SetRankingInfo()
LogGreen("#db "..#db.." index "..index)
if index==#db then
RankingManager.RequestNextWarPowerPageData(function()
this.SetRankingInfo()
this.SetRankingInfo(false, false)
end)
end
end)
end, not isTop, not isAnim)
end
--显示每条数据
function this.ShowWarPowerInfo(root,data,myRankData)