充值界面
parent
30c05503c1
commit
63b9348e54
|
@ -67,5 +67,10 @@ function this.GetMoneyUnitName(mt)
|
|||
return _t2n[1]
|
||||
end
|
||||
|
||||
function this.GetMoneyUnitNameWithMoney(money)
|
||||
local formater = this.GetMoneyUnitName()
|
||||
return string.format(formater, money)
|
||||
end
|
||||
|
||||
|
||||
return MoneyUtil
|
|
@ -93,7 +93,7 @@ function WeekCard:WeekCardShow()
|
|||
else
|
||||
this.weekCardBuyBtn:GetComponent("Button").enabled=true
|
||||
this.weekCardBuyNum.text = Language[10593]..weekCardData.buyTimes.."/"..weekConFig.Limit
|
||||
Util.GetGameObject(self.weekCardBuyBtn.gameObject, "Text"):GetComponent("Text").text = MoneyUtil.GetMoneyMark()..MoneyUtil.GetMoney(weekConFig.Price)
|
||||
Util.GetGameObject(self.weekCardBuyBtn.gameObject, "Text"):GetComponent("Text").text = MoneyUtil.GetMoneyUnitNameWithMoney(weekConFig.Price)--..MoneyUtil.GetMoney(weekConFig.Price)
|
||||
end
|
||||
else
|
||||
this.weekCardBuyBtn:GetComponent("Button").enabled=false
|
||||
|
|
|
@ -91,7 +91,7 @@ function this:ShopItemAdapter(shopItem, itemData)
|
|||
local itemInfo = ShopManager.GetRechargeItemInfo(itemData.goodsId)
|
||||
icon.sprite = Util.LoadSprite(GetResourcePath(itemInfo.Resources))
|
||||
num.text = itemInfo.BaseReward[1][2]
|
||||
price.text = MoneyUtil.GetMoneyMark() .. MoneyUtil.GetMoney(itemInfo.Price)
|
||||
price.text = MoneyUtil.GetMoneyUnitNameWithMoney(itemInfo.Price)-- .. MoneyUtil.GetMoney(itemInfo.Price)
|
||||
-- 判断首充赠送
|
||||
local curBuyCount = itemData.buyTimes
|
||||
first:SetActive(curBuyCount < 1)
|
||||
|
|
|
@ -536,7 +536,7 @@ function this:RechargeShopItemAdapter(shopItem, itemData)
|
|||
local itemInfo = ShopManager.GetRechargeItemInfo(itemData.goodsId)
|
||||
icon.sprite = Util.LoadSprite(GetResourcePath(itemInfo.Resources))
|
||||
num.text = itemInfo.BaseReward[1][2]
|
||||
price.text = MoneyUtil.GetMoneyMark() .. MoneyUtil.GetMoney(itemInfo.Price)
|
||||
price.text = MoneyUtil.GetMoneyUnitNameWithMoney(itemInfo.Price) --.. MoneyUtil.GetMoney(itemInfo.Price)
|
||||
|
||||
-- 判断首充赠送
|
||||
local curBuyCount = itemData.buyTimes
|
||||
|
|
Loading…
Reference in New Issue