【灵兽特惠】金钱显示兼容
parent
4a1a95d9fd
commit
eab8a42191
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue