成长礼包修改提交
parent
8884dd4920
commit
053f890498
|
|
@ -242,7 +242,6 @@ function GiftPre:SetContent1()
|
|||
self.tip2_en:SetActive(false)
|
||||
self.tip3_en:SetActive(false)
|
||||
self.tip4_en:SetActive(false)
|
||||
self.btnBuy:GetComponent("Image").sprite = Util.LoadSprite("s_slbz_1anniuhuangse")
|
||||
|
||||
if self.data.DataType == DataType.Direct and self.data.buyType == DirectBuyType.DAILY_GIFT then
|
||||
self:SetType2()
|
||||
|
|
@ -332,7 +331,12 @@ function GiftPre:SetIsCanBuy()
|
|||
--如果是成长礼包 有一个1的状态 并且按钮图片有变化
|
||||
if self.data.DataType == DataType.Shop and self.data.buyType == SHOP_TYPE.VIP_GIFT then
|
||||
isCanBuy = (rechargeNum >= self.data.data.shopItemData.BuyRule[2] and 0 or 1)
|
||||
self.btnBuy:GetComponent("Image").sprite = Util.LoadSprite(isCanBuy == 0 and "s_slbz_1anniuongse" or "s_slbz_1anniuhuangse")
|
||||
LogGreen("isCanBuy:"..isCanBuy)
|
||||
if isCanBuy == 0 then
|
||||
self.btnBuy:GetComponent("Image").sprite = Util.LoadSprite("s_slbz_1anniuongse")
|
||||
else
|
||||
self.btnBuy:GetComponent("Image").sprite = Util.LoadSprite("s_slbz_1anniuhuangse")
|
||||
end
|
||||
end
|
||||
if isCanBuy == 0 then
|
||||
isCanBuy = (self.data.data.limitNum - self.data.data.boughtNum > 0) and 0 or 2
|
||||
|
|
|
|||
Loading…
Reference in New Issue