基金
This commit is contained in:
parent
36c25d54bb
commit
2a3786dcb8
@ -32,8 +32,8 @@ function FundChapterComp:init()
|
||||
self.tagImgs = {}
|
||||
self.tagDescs = {}
|
||||
self.txTitle:setText(I18N:getGlobalText(I18N.GlobalConst.FUND_CHAPTER_DESC_1))
|
||||
self.txDesc:setText(I18N:getGlobalText(I18N.GlobalConst.FUND_CHAPTER_DESC_3))
|
||||
self.txDesc2:setText(I18N:getGlobalText(I18N.GlobalConst.FUND_CHAPTER_DESC_4))
|
||||
self.txDesc:setText(I18N:getGlobalText(I18N.GlobalConst.FUND_CHAPTER_DESC_4))
|
||||
-- self.txDesc2:setText(I18N:getGlobalText(I18N.GlobalConst.FUND_CHAPTER_DESC_4))
|
||||
self.txLevel:setText(I18N:getGlobalText(I18N.GlobalConst.CHAPTER_TEAM_DESC_2))
|
||||
self.txCommon:setText(I18N:getGlobalText(I18N.GlobalConst.FUND_CHAPTER_DESC_5))
|
||||
self.txPro:setText(I18N:getGlobalText(I18N.GlobalConst.FUND_CHAPTER_DESC_6))
|
||||
@ -43,6 +43,8 @@ function FundChapterComp:init()
|
||||
table.insert(self.tagImgs, uiMap["fund_chapter_comp.tags.viewport.content.tag_" .. i .. ".img"])
|
||||
table.insert(self.tagDescs, uiMap["fund_chapter_comp.tags.viewport.content.tag_" .. i .. ".img.tx_desc"])
|
||||
end
|
||||
self.rewardImg = uiMap["fund_chapter_comp.top.bg.icon"]
|
||||
self.txGetAll = uiMap["fund_chapter_comp.top.bg.tx_get_all"]
|
||||
|
||||
self.btnBuy:addClickListener(function()
|
||||
local giftId = DataManager.ChapterFundData:getProGiftId(self.curStage)
|
||||
@ -141,6 +143,24 @@ function FundChapterComp:refresh(isAuto)
|
||||
if self.curStage then
|
||||
BIReportV2:postOperation(BIReportV2.OPERATION_UI_NAME.FUND_LEVEL .. self.curStage)
|
||||
end
|
||||
|
||||
local count = 0
|
||||
for i, id in ipairs(self.cfgList) do
|
||||
local cfgFree = DataManager.ChapterFundData:getFreeRewards(id)
|
||||
local cfgPro = DataManager.ChapterFundData:getProRewards(id)
|
||||
if cfgFree then
|
||||
for _,v in ipairs(cfgFree) do
|
||||
count = count + v.num
|
||||
end
|
||||
end
|
||||
if cfgPro then
|
||||
for _,v in ipairs(cfgPro) do
|
||||
count = count + v.num
|
||||
end
|
||||
end
|
||||
end
|
||||
self.txGetAll:setText(count)
|
||||
GFunc.centerImgAndTx(self.rewardImg, self.txGetAll)
|
||||
end
|
||||
|
||||
function FundChapterComp:updateData(stage)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user