|
|
@@ -13,6 +13,8 @@ export default class PigBank extends cc.Component {
|
|
|
private lbl_deposit: cc.Label = null!;
|
|
|
@property({ type: cc.Node, displayName: '提示动画' })
|
|
|
private node_tip_anim: cc.Node = null!;
|
|
|
+ @property({ type: cc.Animation, displayName: '提现动画' })
|
|
|
+ private anim_btn_cash: cc.Animation = null!;
|
|
|
|
|
|
onLoad() {
|
|
|
|
|
|
@@ -32,13 +34,16 @@ export default class PigBank extends cc.Component {
|
|
|
if (g.pigbank.cash_enable) {
|
|
|
this.lbl_get_desc.string = '直接提现';
|
|
|
this.node_tip_anim.active = false;
|
|
|
+ this.anim_btn_cash.play();
|
|
|
} else {
|
|
|
- this.node_tip_anim.active = true;
|
|
|
if (g.pigbank.cur_cash_count >= g.pigbank.cash_min_limit) {
|
|
|
this.lbl_get_desc.string = '明日可提现';
|
|
|
} else {
|
|
|
this.lbl_get_desc.string = '满' + g.pigbank.cash_min_limit + '元可提';
|
|
|
}
|
|
|
+ this.node_tip_anim.active = true;
|
|
|
+ this.anim_btn_cash.stop();
|
|
|
+ this.anim_btn_cash.node.scale = 1;
|
|
|
}
|
|
|
this.initDeposit()
|
|
|
}
|