【按钮优化】限时商市 奇珍宝阁

dev_chengFeng
ZhangBiao 2021-01-28 09:50:14 +08:00
parent 7cc06d1ef1
commit 3fed23cbe0
3 changed files with 6 additions and 4 deletions

View File

@ -276,8 +276,8 @@ local _PageInfo = {--后期可以做成tableInserticon名字都去读表
[49] = 5,
[50] = 6,
[51] = 6,
[22] = 7,
[33] = 8,
[52] = 7,
[53] = 8,
[54] = 15,
}
local curActivityCount = {

View File

@ -114,15 +114,16 @@ function this.SingleDataShow(pre,value)
--local goodData = OperatingManager.GetGiftGoodsInfo(GoodsTypeDef.DirectPurchaseGift, value.Id)
local boughtNum = OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, value.Id) or 0
local shows = shopItemData.RewardShow
buyInfo:GetComponent("Text").text =Language[11454].. shopItemData.Limit-boughtNum.."/".. shopItemData.Limit..Language[10054] ..")"
if shopItemData.Limit - boughtNum > 0 then
price.text = string.format(MoneyUtil.GetMoneyUnitName(), MoneyUtil.GetMoney(shopItemData.Price))--shopItemData.Price..MoneyUtil.GetMoneyUnitName()
btnBuy:GetComponent("Button").enabled = true
Util.SetGray(btnBuy, false)
buyInfo:GetComponent("Text").text =Language[10535].. shopItemData.Limit-boughtNum..Language[10054]
else
price.text = Language[10526]
btnBuy:GetComponent("Button").enabled = false
Util.SetGray(btnBuy, true)
buyInfo:GetComponent("Text").text = ""
end
--滚动条复用重设itemview
if itemsGrid[pre] then

View File

@ -117,15 +117,16 @@ function this.SingleDataShow(pre,value)
--local goodData = OperatingManager.GetGiftGoodsInfo(GoodsTypeDef.DirectPurchaseGift, value.Id)
local boughtNum = OperatingManager.GetGoodsBuyTime(GoodsTypeDef.DirectPurchaseGift, value.Id) or 0
local shows = shopItemData.RewardShow
buyInfo:GetComponent("Text").text =Language[11454].. shopItemData.Limit-boughtNum.."/".. shopItemData.Limit..Language[10054] ..")"
if shopItemData.Limit - boughtNum > 0 then
price.text = string.format(MoneyUtil.GetMoneyUnitName(), MoneyUtil.GetMoney(shopItemData.Price))--shopItemData.Price..MoneyUtil.GetMoneyUnitName()
btnBuy:GetComponent("Button").enabled = true
Util.SetGray(btnBuy, false)
buyInfo:GetComponent("Text").text =Language[10535].. shopItemData.Limit-boughtNum..Language[10054]
else
price.text = Language[10526]
btnBuy:GetComponent("Button").enabled = false
Util.SetGray(btnBuy, true)
buyInfo:GetComponent("Text").text = ""
end
--滚动条复用重设itemview
if itemsGrid[pre] then