diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRankPopup.lua b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRankPopup.lua index 5bd3306604..fc10043ce7 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRankPopup.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/DeathPos/DeathPosRankPopup.lua @@ -129,7 +129,7 @@ function this.RefreshRank(index) RankingManager.InitData(curRankType,function()--RANK_TYPE.GUILD_DEATHPOS_ALLGUILD local ranks,myRankInfo = RankingManager.GetRankingInfo() this.empty:SetActive(#ranks<=0) - this.SetScrollView(ranks,curRankType) + this.SetScrollView(ranks, curRankType, true) this.scrollView:SetIndex(1) --当我的排名没数据时 this.mRSortNum:SetActive(myRankInfo.rank~=-1) @@ -143,16 +143,16 @@ function this.RefreshRank(index) end,nil,1) end -function this.SetScrollView(ranks,curRankType) +function this.SetScrollView(ranks,curRankType, isTop) this.scrollView:SetData(ranks,function(index,root) this.SetScrollPre(root,ranks[index],curRankType) if index==#ranks then RankingManager.RequestNextWarPowerPageData(function() local ranks,myRankInfo = RankingManager.GetRankingInfo() - this.SetScrollView(ranks) + this.SetScrollView(ranks, curRankType, false) end) end - end) + end, not isTop, true) end --设置每条数据 function this.SetScrollPre(root,data,curRankType)