|
|
@@ -16,23 +16,10 @@ export class PigBankData extends Data {
|
|
|
* 数据初始化
|
|
|
*/
|
|
|
public init() {
|
|
|
- // 提现状态
|
|
|
- this.cash_enable = gData.gameData.gameData.isWithdrawable;
|
|
|
}
|
|
|
|
|
|
/** 标志位:是否需要刷新数据 */
|
|
|
public init_data: boolean = true;
|
|
|
- /** 是否可提现 */
|
|
|
- private _cash_enable: number = 0;
|
|
|
- set cash_enable(bool: number) {
|
|
|
- if (this._cash_enable != bool) {
|
|
|
- this._cash_enable = bool;
|
|
|
- this.init_data = true;
|
|
|
- }
|
|
|
- }
|
|
|
- get cash_enable(): number {
|
|
|
- return this._cash_enable;
|
|
|
- }
|
|
|
|
|
|
/** 提现最低限制 */
|
|
|
public cash_min_limit: number = 0.3;
|
|
|
@@ -59,7 +46,7 @@ export class PigBankData extends Data {
|
|
|
else if (response.CashMode == 1) {//公众号打款
|
|
|
|
|
|
}
|
|
|
- this.cash_enable = 0;
|
|
|
+ gData.gameData.gameData.isWithdrawable = 0;
|
|
|
|
|
|
}
|
|
|
}
|