|
|
@@ -18,11 +18,11 @@ export default class WalletCashOut extends cc.Component {
|
|
|
@property({ displayName: '下提示', type: cc.Label })
|
|
|
private lbl_tip: cc.Label = null;
|
|
|
|
|
|
- @property({displayName: '提现按钮文本', type: cc.Label})
|
|
|
+ @property({ displayName: '提现按钮文本', type: cc.Label })
|
|
|
private lbl_cashOut: cc.Label = null;
|
|
|
- @property({displayName: '新手描述', type: cc.Label})
|
|
|
+ @property({ displayName: '新手描述', type: cc.Label })
|
|
|
private lbl_noviceTitle: cc.Label = null;
|
|
|
- @property({displayName: '新手金额', type: cc.Label})
|
|
|
+ @property({ displayName: '新手金额', type: cc.Label })
|
|
|
private lbl_noviceValue: cc.Label = null;
|
|
|
@property({ displayName: '上提示', type: cc.Label })
|
|
|
private lbl_tipUp: cc.Label = null;
|
|
|
@@ -49,11 +49,9 @@ export default class WalletCashOut extends cc.Component {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private initNoviceUI()
|
|
|
- {
|
|
|
+ private initNoviceUI() {
|
|
|
let data = gData.gameData.gameData.userNoviceWeFareInfo;
|
|
|
- if(data)
|
|
|
- {
|
|
|
+ if (data) {
|
|
|
this.lbl_noviceTitle.string = data.name + ':';
|
|
|
this.sp_progress.fillRange = data.progressRate;
|
|
|
let value = data.cashmoney / 100;
|
|
|
@@ -64,10 +62,8 @@ export default class WalletCashOut extends cc.Component {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- update(dt)
|
|
|
- {
|
|
|
- if(gData.walletCashOutData.init_novice)
|
|
|
- {
|
|
|
+ update(dt) {
|
|
|
+ if (gData.walletCashOutData.init_novice) {
|
|
|
this.initNoviceUI();
|
|
|
gData.walletCashOutData.init_novice = false;
|
|
|
}
|
|
|
@@ -98,7 +94,7 @@ export default class WalletCashOut extends cc.Component {
|
|
|
|
|
|
private clickCashOutBtn() {
|
|
|
mk.audio.playEffect("button");
|
|
|
-
|
|
|
+ gData.adData.checkPopCashFull();
|
|
|
//this.check_button[this.curChooseIndex].setIsCanNotChoose();
|
|
|
}
|
|
|
|
|
|
@@ -137,12 +133,10 @@ export default class WalletCashOut extends cc.Component {
|
|
|
mk.audio.playEffect("button");
|
|
|
|
|
|
let data = gData.gameData.gameData.userNoviceWeFareInfo;
|
|
|
- if(data)
|
|
|
- {
|
|
|
- if(data.progressRate >= 1)
|
|
|
- {
|
|
|
+ if (data) {
|
|
|
+ if (data.progressRate >= 1) {
|
|
|
gData.walletCashOutData.HttpCashOut(this.intV);
|
|
|
- }else{
|
|
|
+ } else {
|
|
|
mk.tip.pop(`满${this.intV}元提现`);
|
|
|
}
|
|
|
|