薛鸿潇 5 лет назад
Родитель
Сommit
d810107f52

+ 1 - 1
assets/script/game/data/GameData.ts

@@ -190,7 +190,7 @@ type PlayerInfoType = {
     /** 存钱罐??? */
     piggyBank: number,
     /** 存钱罐能否提现 */
-    isWithdrawable: number,
+    isWithdrawable: boolean,
     /** 存钱罐每日提现次数 */
     piggyBankCashTimes: number,
     /** 累计存钱罐每日提现次数 */

+ 3 - 3
assets/script/game/data/module/PigBankData.ts

@@ -16,8 +16,8 @@ export class PigBankData extends Data {
      * 数据初始化
      */
     public init() {
-        // let piggyBank = gData.gameData.gameData.piggyBank;
-        // cc.log(piggyBank);
+        // 提现状态
+        this.cash_enable = gData.gameData.gameData.isWithdrawable;
     }
 
     /** 标志位:是否需要刷新数据 */
@@ -35,7 +35,7 @@ export class PigBankData extends Data {
     }
 
     /** 当前存款 */
-    private _cur_cash_count: number = 0.36;
+    private _cur_cash_count: number = 0;
     set cur_cash_count(value: number) {
         if (this._cur_cash_count != value) {
             this._cur_cash_count = value;

+ 1 - 0
assets/script/game/module/module/pigBank/PigBank.ts

@@ -65,6 +65,7 @@ export default class PigBank extends cc.Component {
      * 提现操作
      */
     private clickCashOP() {
+        if (!gData.pigbank.cash_enable) return;
         gData.pigbank.cashOP();
         mk.ui.closePanel(this.node.name);
     }

+ 0 - 2
assets/script/game/module/module/sign/Sign.ts

@@ -17,8 +17,6 @@ export default class Sign extends cc.Component {
     private scroll_view: cc.ScrollView = null!;
     @property({ type: cc.Animation, displayName: '按钮_动画' })
     private anim_btn: cc.Animation = null!;
-    @property({ type: cc.Integer, displayName: '11111' })
-    private anim_btn2: number[] = [];
 
     onLoad() {