【达人排行榜】 达人排行榜底部显示问题

dev_chengFeng
zhangqiang 2020-11-02 12:54:36 +08:00
parent 9b65cbba0f
commit 148b068c79
1 changed files with 6 additions and 5 deletions

View File

@ -172,10 +172,10 @@ function ExpertRewardSortPanel:ActivitySortRewardShow()
RankingManager.InitData(rankKingList[9].rankType, function() RankingManager.InitData(rankKingList[9].rankType, function()
this.SetGoldExperSortInfo() this.SetGoldExperSortInfo()
end,ActivityGiftManager.GetActivityIdByType(rankKingList[9].activiteId)) end,ActivityGiftManager.GetActivityIdByType(rankKingList[9].activiteId))
elseif activeIndext == 27 then elseif activeIndext == 26 then
RankingManager.InitData(rankKingList[12].rankType, function() RankingManager.InitData(rankKingList[12].rankType, function()
this.SetGoldExperSortInfo() this.SetGoldExperSortInfo()
end,ActivityGiftManager.GetActivityIdByType(rankKingList[12].activiteId)) end,ActivityGiftManager.GetActivityIdByType(rankKingList[10].activiteId))
end end
end end
function this.SetGoldExperSortInfo() function this.SetGoldExperSortInfo()
@ -186,13 +186,14 @@ function this.SetGoldExperSortInfo()
end end
local data,myData=RankingManager.GetRankingInfo() local data,myData=RankingManager.GetRankingInfo()
local rewardData = nil local rewardData = nil
if not myData.myRank or myData.myRank < 0 then if not myData.rank or myData.rank < 0 then
Util.GetGameObject(sortNumTabs[4], "TitleText"):GetComponent("Text").text = Language[10041] Util.GetGameObject(this.myActivityRewardGo, "Text"):GetComponent("Text").text = Language[10041]
else else
Util.GetGameObject(this.myActivityRewardGo, "Text"):GetComponent("Text").text = "保持排名可获得"
rewardData = {} rewardData = {}
for i, v in ConfigPairs(ConfigManager.GetConfig(ConfigName.ActivityRankingReward)) do for i, v in ConfigPairs(ConfigManager.GetConfig(ConfigName.ActivityRankingReward)) do
if v.ActivityId == activeId then if v.ActivityId == activeId then
if myData.myRank >= v.MinRank and myData.myRank >= v.MaxRank then if myData.rank >= v.MinRank and myData.rank >= v.MaxRank then
rewardData = v rewardData = v
end end
end end