|
|
@@ -1979,14 +1979,13 @@ return this.ATRewardVideoJS.hasAdReady();
|
|
|
};
|
|
|
e.prototype.loadAd = function() {
|
|
|
console.log("ATRewardVideo ", c[this.reawardAdState]);
|
|
|
-if (this.reawardAdState != c.Loading) {
|
|
|
+this.reawardAdState == c.Loading && mk.tip.pop("广告加载中,请稍后再试");
|
|
|
console.log("ATRewardVideo loadAd ", c[this.reawardAdState]);
|
|
|
this.reawardAdState = c.Loading;
|
|
|
this.ATRewardVideoJS.loadAd(gData.loginData.uin, "userDataKey");
|
|
|
-} else mk.tip.pop("广告加载中,请稍后再试");
|
|
|
};
|
|
|
e.prototype.showAd = function() {
|
|
|
-if (this.reawardAdState == c.LoadSuccess) this.ATRewardVideoJS.showAd(); else {
|
|
|
+if (this.hasAdReady()) this.ATRewardVideoJS.showAd(); else if (this.reawardAdState != c.LoadSuccess) {
|
|
|
this.ifLoadShow = !0;
|
|
|
this.loadAd();
|
|
|
}
|
|
|
@@ -17697,9 +17696,14 @@ this.gameOver();
|
|
|
};
|
|
|
e.prototype.gameOver = function() {
|
|
|
mk.data.setTAEventUser(1, "video_play_time", 1);
|
|
|
+if (mk.ui.getCurOnPanel("newOpenRedBag")) {
|
|
|
+console.log("没有弹通关红包");
|
|
|
+this.nextLevel();
|
|
|
+} else {
|
|
|
mk.ad.videoAdType = f.VideoAdType.video_init_23;
|
|
|
gData.adData.curRedBagAdFun = m.AdFun.settlement;
|
|
|
mk.ui.openPanel("module/newOpenRedBag/newOpenRedBag");
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.checkBonusNum = function(t) {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
@@ -18054,6 +18058,7 @@ e.pro_tixian = null;
|
|
|
e.lbl_cashPro = null;
|
|
|
e.pro_bank = null;
|
|
|
e.lbl_bankPro = null;
|
|
|
+e.btn_safebox = null;
|
|
|
e.posY = 0;
|
|
|
e.lastTimeSpan = 0;
|
|
|
e.span = 0;
|
|
|
@@ -18088,6 +18093,40 @@ this.node_showCash.active = !1;
|
|
|
this.node_showRedMoney.active = !0;
|
|
|
}
|
|
|
gData.gameData.playerProp.orderData ? this.initOrderUI() : mk.event.register("initOrderUi", this.initOrderUI.bind(this), this);
|
|
|
+var t = gData.gameData.getProp(d.GameProp.plantTimes);
|
|
|
+console.log("cashTimes======" + t);
|
|
|
+null == t && (t = 0);
|
|
|
+if (t < gData.gameData.showRichBankIconLimit) {
|
|
|
+this.btn_safebox.active = !1;
|
|
|
+mk.event.register("showRichBankIcon", this.showRichBankIcon.bind(this), this);
|
|
|
+}
|
|
|
+};
|
|
|
+e.prototype.showRichBankIcon = function() {
|
|
|
+return r(this, void 0, void 0, function() {
|
|
|
+var t, e;
|
|
|
+return c(this, function(a) {
|
|
|
+switch (a.label) {
|
|
|
+case 0:
|
|
|
+this.btn_safebox.active = !0;
|
|
|
+mk.event.remove("showRichBankIcon", this);
|
|
|
+return gData.safeDepositBoxData.currentRichBankCashTaskIndex ? [ 3, 2 ] : [ 4, mk.http.sendData("newrichbank/getRichBankInfo", {}) ];
|
|
|
+
|
|
|
+case 1:
|
|
|
+if ((t = a.sent()) && 0 == t.errcode) {
|
|
|
+e = t.data;
|
|
|
+gData.safeDepositBoxData.currentRichBankCashTaskIndex = e.currentRichBankCashTaskIndex;
|
|
|
+gData.safeDepositBoxData.isStartBankTask = e.isStartRichBankTask;
|
|
|
+gData.safeDepositBoxData.richbankLoginDays = e.richbankLoginDays;
|
|
|
+console.log("currentRichBankCashTaskIndex 11======== " + e.currentRichBankCashTaskIndex);
|
|
|
+console.log("richBankDailyTotelVideoTimes 11======== " + e.richBankDailyTotelVideoTimes);
|
|
|
+}
|
|
|
+a.label = 2;
|
|
|
+
|
|
|
+case 2:
|
|
|
+return [ 2 ];
|
|
|
+}
|
|
|
+});
|
|
|
+});
|
|
|
};
|
|
|
e.prototype.start = function() {
|
|
|
this.initMusic();
|
|
|
@@ -19343,6 +19382,10 @@ i([ y({
|
|
|
displayName: "富翁银行文本",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_bankPro", void 0);
|
|
|
+i([ y({
|
|
|
+displayName: "富翁银行按钮",
|
|
|
+type: cc.Node
|
|
|
+}) ], e.prototype, "btn_safebox", void 0);
|
|
|
return i([ f ], e);
|
|
|
}(cc.Component);
|
|
|
a.default = m;
|
|
|
@@ -27322,7 +27365,6 @@ rewardType: 1,
|
|
|
rewardNum: t.data.freeRedMoney
|
|
|
} ];
|
|
|
gData.reward.callback = gData.harvestData.call;
|
|
|
-gData.gameData.gameStyle.doCropFlyLogic(gData.harvestData.plantID);
|
|
|
mk.ui.openPanel("module/reward/reward");
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
return [ 2 ];
|