【灵脉秘境】排行错误提交
parent
425d4934b8
commit
d688ae8ab9
|
@ -32,8 +32,8 @@ function this:OnShow(_parent)
|
|||
self.data = LingMaiMiJingManager.recordData
|
||||
if #self.data > 0 then
|
||||
self.empty:SetActive(false)
|
||||
for i = 1, #this.recordData do
|
||||
if this.recordData[i].time == 1 then
|
||||
for i = 1, #self.data do
|
||||
if self.data[i].time == 1 then
|
||||
PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[1].time)
|
||||
break
|
||||
end
|
||||
|
|
|
@ -75,10 +75,10 @@ function LingMaiMiJingPanel:BindEvent()
|
|||
LingMaiMiJingManager.OpenRecord()
|
||||
end)
|
||||
Util.AddOnceClick(self.rewardBtn, function()
|
||||
NetManager.RequestRankInfo(RANK_TYPE.LINGMAIMIJING_RANK, function (msg)--请求数据
|
||||
LogYellow("我的排名:"..tostring(msg.myRankInfo.rank))
|
||||
UIManager.OpenPanel(UIName.GeneralRankRewardPanel,5,msg.myRankInfo.rank)--需要活动id,和我的排名
|
||||
end,0,1,0)
|
||||
RankingManager.InitData(RANK_TYPE.LINGMAIMIJING_RANK, function(msg)
|
||||
local data,myData=RankingManager.GetRankingInfo()
|
||||
UIManager.OpenPanel(UIName.GeneralRankRewardPanel,5,myData.rank)--需要活动id,和我的排名
|
||||
end)
|
||||
end)
|
||||
Util.AddOnceClick(self.sortBtn, function()
|
||||
UIManager.OpenPanel(UIName.RankingSingleListPanel,rankKingList[33])
|
||||
|
|
Loading…
Reference in New Issue