【灵兽特惠】金钱显示兼容

dev_chengFeng
gaoxin 2021-04-08 20:40:00 +08:00
parent 4a1a95d9fd
commit eab8a42191
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,7 @@ end
function LingShowTeHui:InitComponent(gameObject)
this.time = Util.GetGameObject(gameObject, "time/times"):GetComponent("Text")
this.buyBtn = Util.GetGameObject(gameObject, "layout/buyBtn")
this.buyBtnText = Util.GetGameObject(gameObject, "layout/buyBtn/Text"):GetComponent("Text")
this.scrollItem = Util.GetGameObject(gameObject, "scroller/grid")
this.buytimes = Util.GetGameObject(gameObject, "layout/buytimes"):GetComponent("Text")
this.giftItemView = {}
@ -72,6 +73,7 @@ function LingShowTeHui:OnShowData()
local activityConfig = ConfigManager.GetConfigData(ConfigName.GlobalActivity,activityId)
rechargeConfigId = activityConfig.CanBuyRechargeId[1]
allData = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig,rechargeConfigId)
this.buyBtnText.text = MoneyUtil.GetMoneyUnitNameWithMoney(allData.Price)
if not itemsGrid then
itemsGrid = {}
end