购买按钮隐藏的逻辑修改
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m14s

This commit is contained in:
TJH 2026-06-11 11:15:35 +08:00
parent ef4560fe8c
commit 10562f980c
3 changed files with 5 additions and 9 deletions

View File

@ -658,7 +658,7 @@ export class SlotBar extends Component {
this.setBtnVisible(this.spinBtn, true);
this.setBtnVisible(this.stopAutoBtn, false);
this.setBtnEnable(this.spinBtn, false);
this.slotGame.showFeatureBuy(false)
this.slotGame.showFeatureBuy(this.getBet() * this.gameInfo.BuyMul > this.gameInfo.MaxBuyBet)
}

View File

@ -875,8 +875,8 @@ export class SlotGame extends Component {
}
showFeatureBuy(isShow: boolean) {
this.featureBuyNode.active = !isShow;
showFeatureBuy(isHide: boolean) {
this.featureBuyNode.active = !isHide;
}
setFeatureBuyInteractable(isInteractable: boolean) {

View File

@ -127,11 +127,7 @@ export class SlotScene extends Component {
// this.FreeSpinEnter.show(8)
// this.FreeSpinAdd.show(5)
// this.BigWinUI.show(800000, WIN_TYPE.SUPER_MEGA_WIN, 10000)
if (!this.gameInfo.CloseBuyGame) {
this.slotGame.showFeatureBuy(
this.slotBar.getBet() * this.gameInfo.BuyMul > this.gameInfo.MaxBuyBet
);
}
}
private async init() {
@ -310,7 +306,7 @@ export class SlotScene extends Component {
if (curBalance < (isFeatureBuy ? this.slotBar.getBet() * this.gameInfo.BuyMul : this.slotBar.getBet()) && !isFreeSpin && !GameDataManager.instance.frb.Ongoing) {
//余额不足不经过服务器,在客户端拦截
this.showErrorTip(2, () => { this.slotBar.onConfirmErr2() });
this.handleErrSpin();
this.handleErrSpin(true);
this.isErr2 = true;
return
}