|
@@ -43,7 +43,7 @@ export default class PigBank extends cc.Component {
|
|
|
* 提现描述展示
|
|
* 提现描述展示
|
|
|
*/
|
|
*/
|
|
|
private initCashDesc() {
|
|
private initCashDesc() {
|
|
|
- if (gData.pigbank.cash_enable) {
|
|
|
|
|
|
|
+ if (gData.gameData.gameData.isWithdrawable) {
|
|
|
this.lbl_get_desc.string = '直接提现';
|
|
this.lbl_get_desc.string = '直接提现';
|
|
|
this.node_tip_anim.active = false;
|
|
this.node_tip_anim.active = false;
|
|
|
this.anim_btn_cash.play();
|
|
this.anim_btn_cash.play();
|
|
@@ -74,7 +74,7 @@ export default class PigBank extends cc.Component {
|
|
|
*/
|
|
*/
|
|
|
private clickCashOP() {
|
|
private clickCashOP() {
|
|
|
mk.audio.playEffect("button");
|
|
mk.audio.playEffect("button");
|
|
|
- if (!gData.pigbank.cash_enable) {
|
|
|
|
|
|
|
+ if (!gData.gameData.gameData.isWithdrawable) {
|
|
|
mk.tip.pop('明日可提现')
|
|
mk.tip.pop('明日可提现')
|
|
|
return;
|
|
return;
|
|
|
} else if (gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit) {
|
|
} else if (gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit) {
|