|
|
@@ -82,9 +82,9 @@ export default class WalletCashOut extends cc.Component {
|
|
|
this.lbl_cashOut.string = `满${this.intV}元提现`;
|
|
|
|
|
|
if (data.progressRate >= 1) {
|
|
|
- this.btn_addProgress.setGray(true);
|
|
|
+ this.btn_addProgress.setGray(true, true);
|
|
|
} else {
|
|
|
- this.btn_addProgress.setGray(false);
|
|
|
+ this.btn_addProgress.setGray(false, true);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -134,10 +134,10 @@ export default class WalletCashOut extends cc.Component {
|
|
|
if (isEnough >= 0) {
|
|
|
if (this.curChooseIndex != -1) {
|
|
|
this.isCanCash = true;
|
|
|
- this.btn_cashOut.setGray(false);
|
|
|
+ this.btn_cashOut.setGray(false, true);
|
|
|
} else {
|
|
|
this.isCanCash = false;
|
|
|
- this.btn_cashOut.setGray(true);
|
|
|
+ this.btn_cashOut.setGray(true, true);
|
|
|
}
|
|
|
|
|
|
let needV = data.money / 100;
|
|
|
@@ -145,14 +145,14 @@ export default class WalletCashOut extends cc.Component {
|
|
|
this.lbl_tip.string = `需要${needV}元,当前有` + haveV;
|
|
|
} else {
|
|
|
this.isCanCash = false;
|
|
|
- this.btn_cashOut.setGray(true);
|
|
|
+ this.btn_cashOut.setGray(true, true);
|
|
|
let needV = data.money / 100;
|
|
|
let haveV = (gData.gameData.playerProp.redMoney / 1000000).toFixed(3) + '元';
|
|
|
this.lbl_tip.string = `需要${needV}元,当前只有` + haveV;
|
|
|
}
|
|
|
} else {
|
|
|
this.isCanCash = false;
|
|
|
- this.btn_cashOut.setGray(true);
|
|
|
+ this.btn_cashOut.setGray(true, true);
|
|
|
this.lbl_tip.string = '';
|
|
|
}
|
|
|
|
|
|
@@ -180,7 +180,7 @@ export default class WalletCashOut extends cc.Component {
|
|
|
if (isRemainTimes) {
|
|
|
this.curChooseIndex = -1;
|
|
|
this.isCanCash = false;
|
|
|
- this.btn_cashOut.setGray(true);
|
|
|
+ this.btn_cashOut.setGray(true, true);
|
|
|
this.lbl_tip.string = '';
|
|
|
}
|
|
|
gData.walletCashOutData.init_cashOut = false;
|
|
|
@@ -228,6 +228,8 @@ export default class WalletCashOut extends cc.Component {
|
|
|
gData.walletCashOutData.HttpCashOut2(this.curChooseIndex + 1);
|
|
|
}
|
|
|
|
|
|
+ }else{
|
|
|
+ mk.tip.pop('红包币不足');
|
|
|
}
|
|
|
}
|
|
|
|