|
|
@@ -10216,7 +10216,7 @@ if (!gData.gameData.getProp(a.GameProp.guideToWx)) {
|
|
|
gData.gameData.setProp(a.GameProp.guideToWx, 1);
|
|
|
gData.guideToWxData.init_state = !0;
|
|
|
mk.ui.closeAllUI();
|
|
|
-if (o.default.Inst.node.active) {
|
|
|
+if (o.default.Inst.node && o.default.Inst.node.active) {
|
|
|
o.default.Inst.restart();
|
|
|
o.default.Inst.node.active = !1;
|
|
|
}
|
|
|
@@ -16547,6 +16547,14 @@ e = e > 1 ? Math.floor(e) : parseFloat(e.toFixed(2));
|
|
|
this.lbl_rmb.string = "" + e;
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
+if (gData.redBagCash.success) {
|
|
|
+gData.redBagCash.success = !1;
|
|
|
+gData.safeDepositBoxData.creatPacketAnim(2);
|
|
|
+if (!gData.gameData.getProp(c.GameProp.guideToWx)) {
|
|
|
+mk.guide.open(3);
|
|
|
+return;
|
|
|
+}
|
|
|
+}
|
|
|
if (!gData.gameData.getProp(c.GameProp.isOpenBankOnCloseCash)) {
|
|
|
mk.ui.openPanel("module/pigBank/pigBank");
|
|
|
gData.gameData.setProp(c.GameProp.isOpenBankOnCloseCash, 1);
|
|
|
@@ -16555,13 +16563,6 @@ gData.gameData.setProp(c.GameProp.isOpenBankOnCloseCash, 1);
|
|
|
e.prototype.onClickClose = function() {
|
|
|
r.default.Inst && r.default.Inst.ifPass && r.default.Inst.gameCount();
|
|
|
};
|
|
|
-e.prototype.onDisable = function() {
|
|
|
-if (gData.redBagCash.success) {
|
|
|
-gData.redBagCash.success = !1;
|
|
|
-gData.safeDepositBoxData.creatPacketAnim(2);
|
|
|
-mk.guide.open(3);
|
|
|
-}
|
|
|
-};
|
|
|
i([ u({
|
|
|
displayName: "滚动视图",
|
|
|
type: cc.ScrollView
|
|
|
@@ -23181,10 +23182,13 @@ e.prototype.closePanel = function(t, e) {
|
|
|
void 0 === e && (e = null);
|
|
|
if (-1 == this.isPanelClosingArr.indexOf(t) && this.getCurOnPanel(t)) {
|
|
|
this.isPanelClosingArr.push(t);
|
|
|
-var n = this.getCurOnPanel(t), o = n.getComponent("EffectOpenAndClose");
|
|
|
+var n = this.getCurOnPanel(t);
|
|
|
+if (n) {
|
|
|
+var o = n.getComponent("EffectOpenAndClose");
|
|
|
o && o.isOpenCloseEffect ? o.hideEffect(this.destroyNode.bind(this, n, t, e)) : this.destroyNode(n, t, e);
|
|
|
mk.event.emit("close-panel", t);
|
|
|
}
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.destroyNode = function(t, e, n) {
|
|
|
void 0 === n && (n = null);
|
|
|
@@ -23196,11 +23200,17 @@ n && n();
|
|
|
};
|
|
|
e.prototype.closeAllUI = function(t) {
|
|
|
void 0 === t && (t = [ "game", "guide" ]);
|
|
|
-for (var e in this.curOnPanelDic) if (!(t && t.length > 0 && -1 != t.indexOf(e))) {
|
|
|
-var n = this.getCurOnPanel(e), o = n.getComponent("EffectOpenAndClose");
|
|
|
+for (var e in this.curOnPanelDic) if (-1 == this.isPanelClosingArr.indexOf(e)) {
|
|
|
+this.isPanelClosingArr.push(e);
|
|
|
+if (!(t && t.length > 0 && -1 != t.indexOf(e))) {
|
|
|
+var n = this.getCurOnPanel(e);
|
|
|
+if (n) {
|
|
|
+var o = n.getComponent("EffectOpenAndClose");
|
|
|
o ? o.hideEffect(this.destroyNode.bind(this, n, e)) : this.destroyNode(n, e);
|
|
|
mk.event.emit("close-panel", e);
|
|
|
}
|
|
|
+}
|
|
|
+}
|
|
|
mk.ad.destroyNativeAd();
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|