【超值基金】是否可购买判断修改
parent
24937470ad
commit
ca9594fefc
|
|
@ -170,7 +170,9 @@ end
|
||||||
--- 根据是否购买了显示信息
|
--- 根据是否购买了显示信息
|
||||||
function UpperMonthCard:SetBuyState()
|
function UpperMonthCard:SetBuyState()
|
||||||
local isActive = VipManager.GetMonthCardOpenState()
|
local isActive = VipManager.GetMonthCardOpenState()
|
||||||
local isBought = OperatingManager.IsBaseBuy(self.chargerBaseType)
|
-- local isBought = OperatingManager.IsBaseBuy(self.chargerBaseType)
|
||||||
|
local canBuyNum = OperatingManager.GetLeftBuyTime(self.chargerBaseType, self.baseType)
|
||||||
|
local isBought = canBuyNum and canBuyNum <= 0
|
||||||
self.boughtPanel:SetActive(isBought)
|
self.boughtPanel:SetActive(isBought)
|
||||||
self.buyPanel:SetActive(not isBought)
|
self.buyPanel:SetActive(not isBought)
|
||||||
Util.SetGray(self.btnBuy, not isActive)
|
Util.SetGray(self.btnBuy, not isActive)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue