|
|
@@ -3962,10 +3962,7 @@ console.log("--\x3eInput:", this.inputBox.string);
|
|
|
gData.blessingBag.adsource_id_value = this.inputBox.string;
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
-if (this.isSuccess) {
|
|
|
-this.isSuccess = !1;
|
|
|
-mk.guide.open(3);
|
|
|
-} else mk.ad.checkShowInterByChance();
|
|
|
+mk.ad.checkShowInterByChance();
|
|
|
};
|
|
|
i([ f(cc.Label) ], e.prototype, "txtBigNum", void 0);
|
|
|
i([ f(cc.Label) ], e.prototype, "txtAddEft", void 0);
|
|
|
@@ -5515,7 +5512,6 @@ if (this.success) {
|
|
|
this.success = !1;
|
|
|
gData.safeDepositBoxData.creatPacketAnim(1);
|
|
|
mk.ui.closeAllUI();
|
|
|
-mk.guide.open(3);
|
|
|
}
|
|
|
};
|
|
|
i([ s(cc.Node) ], e.prototype, "loadPart", void 0);
|
|
|
@@ -7544,7 +7540,7 @@ return e;
|
|
|
e.prototype.onLoad = function() {
|
|
|
gData.gameData.funBtns = this;
|
|
|
};
|
|
|
-e.prototype.start = function() {
|
|
|
+e.prototype.onEnable = function() {
|
|
|
this.init();
|
|
|
};
|
|
|
e.prototype.init = function() {
|
|
|
@@ -7975,8 +7971,7 @@ gData.safeDepositBoxData.richBankConfig = this.configs.RichBankTaskCfg;
|
|
|
gData.loginData.popIdentifySwitch = "1" == this.configs.ServerConfig.popIdentifySwitch;
|
|
|
gData.guideToWxData.guideToWxSwith = "1" == this.configs.ServerConfig.guideToWxSwith;
|
|
|
gData.guideToWxData.money = this.configs.ServerConfig.addfriendmoney;
|
|
|
-gData.guideToWxData.ghId = this.configs.ServerConfig.ghId;
|
|
|
-gData.guideToWxData.ghIdPath = this.configs.ServerConfig.ghIdPath;
|
|
|
+gData.guideToWxData.setGhId();
|
|
|
};
|
|
|
t.prototype.initPlayerProp = function(t) {
|
|
|
this.gameData = new c();
|
|
|
@@ -8006,6 +8001,7 @@ mk.data.setTAEventRegister();
|
|
|
mk.data.sendDataEvent("ABTest", "触发" + this.gameData.groupCode + "方案");
|
|
|
mk.data.setTAEventUserStr(0, "xy_uid", gData.loginData.uin);
|
|
|
mk.data.setTAEventUserStr(0, "regtime_app_id", gData.appData.appVersion);
|
|
|
+gData.guideToWxData.guideToWxSwith && mk.storage.setStorage("canShowGuideToWx", "1");
|
|
|
}
|
|
|
mk.data.setTAEventUserStr(0, "now_app_id", gData.appData.appVersion);
|
|
|
mk.data.setTAEventUserStr(0, "channel_id", gData.appData.umengChannel);
|
|
|
@@ -9663,6 +9659,7 @@ e.prototype.onClickGuideToWx = function() {
|
|
|
if (!mk.storage.getStorage("onClickGuideToWx")) {
|
|
|
mk.storage.setStorage("onClickGuideToWx", 1);
|
|
|
mk.data.sendDataEvent(u.DataEventId.button_click, "加我送钱icon");
|
|
|
+mk.data.sendXYEvent("onClickGuideToWx", "加我送钱");
|
|
|
}
|
|
|
};
|
|
|
i([ f({
|
|
|
@@ -10212,6 +10209,7 @@ function t() {}
|
|
|
t.prototype.open = function(t) {
|
|
|
if (3 == t) {
|
|
|
if (!gData.guideToWxData.guideToWxSwith) return;
|
|
|
+if ("1" != mk.storage.getStorage("canShowGuideToWx")) return;
|
|
|
if (!gData.gameData.getProp(a.GameProp.guideToWx)) {
|
|
|
gData.gameData.setProp(a.GameProp.guideToWx, 1);
|
|
|
gData.guideToWxData.init_state = !0;
|
|
|
@@ -10275,7 +10273,7 @@ Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
n.GuideState = void 0;
|
|
|
-var a, i = cc._decorator.ccclass, r = function() {
|
|
|
+var a, i = t("../../../before/util/Util"), r = cc._decorator.ccclass, c = function() {
|
|
|
function t() {
|
|
|
this.guideToWxSwith = !1;
|
|
|
this.guideState = a.none;
|
|
|
@@ -10287,9 +10285,31 @@ this.init_state = !1;
|
|
|
t.prototype.checkPop = function() {
|
|
|
this.guideToWxSwith && this.guideState < a.gotMoney && mk.ui.openPanel("module/guideToWx/guideToWx");
|
|
|
};
|
|
|
-return o([ i ], t);
|
|
|
+t.prototype.setGhId = function() {
|
|
|
+var t = gData.gameData.configs.ServerConfig.ghId.split(";"), e = mk.storage.getStorage("ghId"), n = t.length, o = null;
|
|
|
+if (e) {
|
|
|
+for (var a = !1, r = 0; r < n; r++) if ((o = t[r].split(","))[0] == e) {
|
|
|
+gData.guideToWxData.ghId = o[0];
|
|
|
+gData.guideToWxData.ghIdPath = o[1];
|
|
|
+a = !0;
|
|
|
+break;
|
|
|
+}
|
|
|
+if (!a) {
|
|
|
+o = t[i.default.rnd(0, n - 1)].split(",");
|
|
|
+gData.guideToWxData.ghId = o[0];
|
|
|
+gData.guideToWxData.ghIdPath = o[1];
|
|
|
+mk.storage.setStorage("ghId", gData.guideToWxData.ghId);
|
|
|
+}
|
|
|
+} else {
|
|
|
+o = t[i.default.rnd(0, n - 1)].split(",");
|
|
|
+gData.guideToWxData.ghId = o[0];
|
|
|
+gData.guideToWxData.ghIdPath = o[1];
|
|
|
+mk.storage.setStorage("ghId", gData.guideToWxData.ghId);
|
|
|
+}
|
|
|
+};
|
|
|
+return o([ r ], t);
|
|
|
}();
|
|
|
-n.default = r;
|
|
|
+n.default = c;
|
|
|
(function(t) {
|
|
|
t[t.none = 0] = "none";
|
|
|
t[t.addService = 1] = "addService";
|
|
|
@@ -10299,7 +10319,9 @@ t[t.canGetMoney = 4] = "canGetMoney";
|
|
|
t[t.gotMoney = 5] = "gotMoney";
|
|
|
})(a = n.GuideState || (n.GuideState = {}));
|
|
|
cc._RF.pop();
|
|
|
-}, {} ],
|
|
|
+}, {
|
|
|
+"../../../before/util/Util": "Util"
|
|
|
+} ],
|
|
|
GuideToWx: [ function(t, e, n) {
|
|
|
"use strict";
|
|
|
cc._RF.push(e, "af1f2INZbBBKrxGtge7v0v1", "GuideToWx");
|
|
|
@@ -10628,6 +10650,11 @@ if (gData.guideToWxData.guideState != u.GuideState.none && gData.guideToWxData.g
|
|
|
this.lastTimeSpan = Date.now();
|
|
|
mk.console.logSingle("GuideToWx lastTimeSpan ", this.lastTimeSpan);
|
|
|
s.default.WXLaunchMiniProgram(gData.guideToWxData.ghId, gData.guideToWxData.ghIdPath);
|
|
|
+if (!mk.storage.getStorage("addServer")) {
|
|
|
+mk.storage.setStorage("addServer", 1);
|
|
|
+mk.data.sendDataEvent(l.DataEventId.guideToWx, "添加客服");
|
|
|
+mk.data.sendXYEvent("addService", "添加客服");
|
|
|
+}
|
|
|
return [ 3, 4 ];
|
|
|
|
|
|
case 1:
|
|
|
@@ -13480,10 +13507,13 @@ e.sourceType = null;
|
|
|
e.yuanlabel = null;
|
|
|
e.callback = null;
|
|
|
e.nodePos = [ cc.v3(54, -63), cc.v3(313, 57), cc.v3(572, -67), cc.v3(862, -67) ];
|
|
|
+e.hasClick = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.init = function(t, e, n, o) {
|
|
|
var a = this;
|
|
|
+if (!this.hasClick) {
|
|
|
+this.hasClick = !0;
|
|
|
this.callback = n;
|
|
|
this.tixian = e;
|
|
|
this.data = t;
|
|
|
@@ -13531,11 +13561,15 @@ var s = Math.random();
|
|
|
this.scheduleOnce(function() {
|
|
|
a.node.runAction(cc.repeatForever(cc.sequence(cc.moveTo(1.5, cc.v2(a.node.x, c - 5)), cc.moveTo(1.2, cc.v2(a.node.x, a.node.y + 5)))));
|
|
|
}, s);
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.clickAdd = function() {
|
|
|
this.unscheduleAllCallbacks();
|
|
|
this.node.getChildByName("Hand").active = !1;
|
|
|
-this.callback && this.callback(this.data, this.node);
|
|
|
+if (this.callback) {
|
|
|
+this.callback(this.data, this.node);
|
|
|
+this.hasClick = !1;
|
|
|
+}
|
|
|
};
|
|
|
i([ s(cc.Label) ], e.prototype, "labDes", void 0);
|
|
|
i([ s(cc.Label) ], e.prototype, "labTime", void 0);
|
|
|
@@ -15345,7 +15379,6 @@ e.prototype.onDisable = function() {
|
|
|
if (gData.pigbank.success) {
|
|
|
gData.pigbank.success = !1;
|
|
|
gData.safeDepositBoxData.creatPacketAnim(2);
|
|
|
-mk.guide.open(3);
|
|
|
}
|
|
|
};
|
|
|
i([ d({
|
|
|
@@ -16550,7 +16583,8 @@ e.prototype.onDestroy = function() {
|
|
|
if (gData.redBagCash.success) {
|
|
|
gData.redBagCash.success = !1;
|
|
|
gData.safeDepositBoxData.creatPacketAnim(2);
|
|
|
-if (!gData.gameData.getProp(c.GameProp.guideToWx)) {
|
|
|
+var t = gData.gameData.getProp(c.GameProp.guideToWx);
|
|
|
+if (2 == gData.gameData.gameData.cashIndex && !t) {
|
|
|
mk.guide.open(3);
|
|
|
return;
|
|
|
}
|
|
|
@@ -20735,13 +20769,11 @@ mk.ad.destroyNativeAd();
|
|
|
mk.ad.checkShowInterByChance();
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-var t = !1;
|
|
|
if (gData.sign.success) {
|
|
|
gData.sign.success = !1;
|
|
|
gData.safeDepositBoxData.creatPacketAnim(2);
|
|
|
-t = mk.guide.open(3);
|
|
|
}
|
|
|
-if (!t && 1 === gData.gameData.getProp(u.GameProp.isAutoOpenPanel)) {
|
|
|
+if (1 === gData.gameData.getProp(u.GameProp.isAutoOpenPanel)) {
|
|
|
gData.guideToWxData.checkPop();
|
|
|
gData.gameData.setProp(u.GameProp.isAutoOpenPanel, 2);
|
|
|
}
|