充值界面

dev_chengFeng
ZhangBiao 2021-03-18 11:31:10 +08:00
parent 30c05503c1
commit 63b9348e54
4 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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