@@ -9,6 +9,8 @@
* @author
*/
export class PigBankData {
+ /** 标志位:是否需要刷新数据 */
+ public init_cash_data: boolean = true;
/** 是否可提现 */
public cash_enable: boolean = true;
/** 当前存款 */
@@ -24,8 +24,12 @@ export default class PigBank extends cc.Component {
this.initCashDesc();
}
- // update(dt) {
- // }
+ update(dt) {
+ if (g.pigbank.init_cash_data) {
+ g.pigbank.init_cash_data = false;
+ this.initCashDesc();
+ }
/**
* 提现描述展示