十绝阵当我的排名为0 时报错
parent
706ee26390
commit
52e9f406aa
|
@ -276,8 +276,8 @@ function this.RefreshRank(index)
|
||||||
this.SetRankDataShow(ranks,myRankInfo,curRankType)
|
this.SetRankDataShow(ranks,myRankInfo,curRankType)
|
||||||
this.scrollView:SetIndex(1)
|
this.scrollView:SetIndex(1)
|
||||||
--当我的排名没数据时
|
--当我的排名没数据时
|
||||||
this.mRSortNum:SetActive(myRankInfo.rank~=-1)
|
this.mRSortNum:SetActive(myRankInfo.rank > 0)
|
||||||
if myRankInfo.rank==-1 then
|
if myRankInfo.rank < 1 then
|
||||||
this.mRName.text=Language[10036]
|
this.mRName.text=Language[10036]
|
||||||
this.mRHurt.text=""
|
this.mRHurt.text=""
|
||||||
return
|
return
|
||||||
|
@ -332,8 +332,8 @@ function this.SetMyRank(data,curRankType)
|
||||||
end
|
end
|
||||||
--设置名次 isMy 是否是设置我的名次
|
--设置名次 isMy 是否是设置我的名次
|
||||||
function this.SetRankingNum(root,rank,isMy)
|
function this.SetRankingNum(root,rank,isMy)
|
||||||
if rank==-1 then
|
if rank < 1 then
|
||||||
-- body
|
return
|
||||||
end
|
end
|
||||||
local sortNumTabs={}
|
local sortNumTabs={}
|
||||||
for i = 1, 4 do
|
for i = 1, 4 do
|
||||||
|
|
Loading…
Reference in New Issue