累计充值修改提交

jiaoyangna 2020-11-04 05:30:12 +08:00
parent 0f5faff70f
commit 565ed0cc34
1 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ local this=LeiJiChongZhiPage
local parent
local endtime = 0
local rechargeNum
local type = 0
local curtype = 0
function LeiJiChongZhiPage:ctor(mainPanel, gameObject)
self.mainPanel = mainPanel
self.gameObject = gameObject
@ -46,7 +46,7 @@ end
--界面打开或者重新打开后,界面刷新时调用(用于子类重写)
function LeiJiChongZhiPage:OnShow(_sortingOrder,_parent,_type)
type = _type
curtype = _type
rechargeNum= VipManager.GetChargedNum()--已经充值的金额
sortingOrder = _sortingOrder
parent = _parent
@ -79,9 +79,9 @@ function LeiJiChongZhiPage:SetTime()
end
function LeiJiChongZhiPage:OnShowData()
allData =OperatingManager.InitLeiJiChongZhiData(type)
allData =OperatingManager.InitLeiJiChongZhiData(curtype)
if allData then
endtime = ActivityGiftManager.GetTaskEndTime(type)
endtime = ActivityGiftManager.GetTaskEndTime(curtype)
this.SortData(allData)
this.ScrollView:SetData(allData, function (index, go)
this.SingleDataShow(go, allData[index])
@ -161,7 +161,7 @@ function this.SingleDataShow(pre,value)
Util.AddOnceClick(lingquButton, function()
if state == 2 then
local curActivityId = ActivityGiftManager.GetActivityIdByType(type)
local curActivityId = ActivityGiftManager.GetActivityIdByType(curtype)
NetManager.GetActivityRewardRequest(sConFigData.id, curActivityId,function(drop)
UIManager.OpenPanel(UIName.RewardItemPopup, drop, 1)
this.Refresh()