【超值基金】提交

dev_chengFeng
张彪 2022-01-24 18:09:14 +08:00
parent 8e85780697
commit e7b9c54c45
1 changed files with 3 additions and 2 deletions

View File

@ -88,7 +88,7 @@ function UpperMonthCard:BindEvent()
UIManager.OpenPanel(UIName.HelpPopup,self.actConfig.HelpId,self.helpPosition.x,self.helpPosition.y)
end)
Util.AddOnceClick(self.btnBuy, function()
if self.actInfo.value < 1 then
if self.actInfo.value < 2 then
PayManager.Pay(self.baseType, function(id)
self:RechargeSuccessFunc(id)
end)
@ -197,7 +197,8 @@ end
--- 根据是否购买了显示信息
function UpperMonthCard:SetBuyState()
if self.actInfo.value < 1 then
LogRed("value:"..tostring(self.actInfo.value))
if self.actInfo.value < 2 then
self.btnBuy.gameObject:SetActive(true)
self.btnBuyImage.sprite = self.spLoader:LoadSprite(state[0].bg)
self.textBuy.text = MoneyUtil.GetMoneyUnitNameWithMoney(chargeConfig[self.baseType].Price)