From 89694f03b588a1379c0a47a2c3c982736a41d62e Mon Sep 17 00:00:00 2001 From: gaoxin Date: Fri, 26 Mar 2021 11:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8D=81=E7=BB=9D=E9=98=B5=E3=80=91?= =?UTF-8?q?=E6=8E=92=E5=90=8D=E6=95=B0=E6=8D=AE=E8=B6=85=E8=BF=8720?= =?UTF-8?q?=EF=BC=8C=E6=BB=91=E5=8A=A8=E6=97=B6=E6=98=BE=E7=A4=BA=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Guild/DeathPos/DeathPosRankPopup.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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)