|
|
@@ -6594,7 +6594,7 @@ return a > 3 && r && Object.defineProperty(e, n, r), r;
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var r = t("../../../before/util/Util"), c = t("../../../mk/system/JsbSystem"), s = t("../../data/AppData"), l = t("../../data/GameData"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
|
|
|
+var r = t("../../../mk/system/JsbSystem"), c = t("../../data/AppData"), s = t("../../data/GameData"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
|
|
|
i(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -6615,9 +6615,18 @@ mk.audio.playEffect("ef_button_click");
|
|
|
this.btnSure.active = !1;
|
|
|
this.btnCancel.active = !1;
|
|
|
this.fileProgress.node.parent.active = !0;
|
|
|
-var e = gData.appData.installUrl, n = e.split("/"), o = n[n.length - 1], i = r.default.checkHasApk(o);
|
|
|
-"" != i ? c.default.installApk(i) : c.default.downFile2Local(e, o, function(t) {
|
|
|
-c.default.installApk(t);
|
|
|
+var e = gData.appData.installUrl, n = e.split("/"), o = n[n.length - 1];
|
|
|
+console.log("apkName ", o);
|
|
|
+var i = o.replace(".apk", "");
|
|
|
+if (r.default.isFileExist(i)) {
|
|
|
+console.log("installUrl ", i);
|
|
|
+r.default.installApk(i);
|
|
|
+return null;
|
|
|
+}
|
|
|
+r.default.downFile2Local(e, o, function() {
|
|
|
+setTimeout(function() {
|
|
|
+r.default.installApk(i);
|
|
|
+}, 1);
|
|
|
}, function() {
|
|
|
mk.tip.pop("下载失败,请检查网络后重试");
|
|
|
t.fileProgress.node.parent.active = !1;
|
|
|
@@ -6635,26 +6644,25 @@ this.labPro.string = Math.floor(100 * t) + "%";
|
|
|
this.fileProgress.fillRange = t;
|
|
|
};
|
|
|
e.prototype.clickSkip = function() {
|
|
|
-mk.audio.playEffect(l.AUDIO_TYPE.button);
|
|
|
+mk.audio.playEffect(s.AUDIO_TYPE.button);
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
-gData.appData.updateState = s.UpdateState.ForceUpdateFinish;
|
|
|
+gData.appData.updateState = c.UpdateState.ForceUpdateFinish;
|
|
|
};
|
|
|
e.prototype.setText = function() {
|
|
|
this.labUpdate.string = gData.appData.updateDes;
|
|
|
this.labFix.string = gData.appData.fixDes;
|
|
|
};
|
|
|
-a([ d(cc.Label) ], e.prototype, "labUpdate", void 0);
|
|
|
-a([ d(cc.Label) ], e.prototype, "labFix", void 0);
|
|
|
-a([ d(cc.Node) ], e.prototype, "btnSure", void 0);
|
|
|
-a([ d(cc.Node) ], e.prototype, "btnCancel", void 0);
|
|
|
-a([ d(cc.Sprite) ], e.prototype, "fileProgress", void 0);
|
|
|
-a([ d(cc.Label) ], e.prototype, "labPro", void 0);
|
|
|
-return a([ p ], e);
|
|
|
+a([ p(cc.Label) ], e.prototype, "labUpdate", void 0);
|
|
|
+a([ p(cc.Label) ], e.prototype, "labFix", void 0);
|
|
|
+a([ p(cc.Node) ], e.prototype, "btnSure", void 0);
|
|
|
+a([ p(cc.Node) ], e.prototype, "btnCancel", void 0);
|
|
|
+a([ p(cc.Sprite) ], e.prototype, "fileProgress", void 0);
|
|
|
+a([ p(cc.Label) ], e.prototype, "labPro", void 0);
|
|
|
+return a([ u ], e);
|
|
|
}(cc.Component);
|
|
|
-n.default = h;
|
|
|
+n.default = d;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
-"../../../before/util/Util": "Util",
|
|
|
"../../../mk/system/JsbSystem": "JsbSystem",
|
|
|
"../../data/AppData": "AppData",
|
|
|
"../../data/GameData": "GameData"
|
|
|
@@ -9852,6 +9860,7 @@ return e;
|
|
|
e.prototype.onLoad = function() {};
|
|
|
e.prototype.start = function() {
|
|
|
if (null != gData.guideData.crtID) {
|
|
|
+this.reset();
|
|
|
this.guides = gData.guideData.getGuidesByID(gData.guideData.crtID);
|
|
|
this.crtStep = -1;
|
|
|
this.nextStep();
|
|
|
@@ -9912,7 +9921,7 @@ if (null != n && null != o && null != i && null != a) if (0 == this.crtGuide.dis
|
|
|
this.node_bg.x = this.node_bg.y = this.node_display.x = this.node_display.y = 0;
|
|
|
this.node_display.width = this.node.width;
|
|
|
this.node_display.height = this.node.height;
|
|
|
-cc.tween(this.node_display).to(.1, {
|
|
|
+cc.tween(this.node_display).to(.2, {
|
|
|
x: n,
|
|
|
y: o,
|
|
|
width: i,
|
|
|
@@ -9928,7 +9937,7 @@ this.node_bg.x = this.node_display.x = n;
|
|
|
this.node_bg.y = this.node_display.y = o;
|
|
|
this.node_display.width = this.node_display.height = this.node_bg.width = this.node_bg.height = 2 * this.node.height;
|
|
|
var l = this.crtGuide.display_type;
|
|
|
-cc.tween(this.node_display).to(.1, {
|
|
|
+cc.tween(this.node_display).to(.2, {
|
|
|
width: l,
|
|
|
height: l
|
|
|
}).start();
|
|
|
@@ -9937,7 +9946,8 @@ if (null != this.crtGuide.dialog_pos && this.crtGuide.dialog_pos.length > 0) {
|
|
|
r = this.crtGuide.dialog_pos.split(":");
|
|
|
for (var u = this.node_dialog.getComponent(cc.Widget), p = 0; p < this.widgets.length; p++) u[this.widgets[p]] = "" == r[p] ? null : parseInt(r[p]);
|
|
|
} else {
|
|
|
-r = this.crtGuide.dialog_pos1.split(",");
|
|
|
+for (r = this.crtGuide.dialog_pos1.split(","), u = this.node_dialog.getComponent(cc.Widget),
|
|
|
+p = 0; p < this.widgets.length; p++) u[this.widgets[p]] = null;
|
|
|
this.node_dialog.x = n + parseInt(r[0]);
|
|
|
this.node_dialog.y = o + parseInt(r[1]);
|
|
|
}
|
|
|
@@ -11607,9 +11617,9 @@ return c(this, function(n) {
|
|
|
switch (n.label) {
|
|
|
case 0:
|
|
|
t = {
|
|
|
-appId: "wxcf31f0e54f7fefda",
|
|
|
-channel: "1",
|
|
|
-version: "1.0.0"
|
|
|
+appId: gData.appData.appId,
|
|
|
+channel: gData.appData.tfChannel,
|
|
|
+version: gData.appData.appVersion
|
|
|
};
|
|
|
return [ 4, mk.http.sendRequest("getForceVersionInfo", "POST", JSON.stringify(t), !1, !1) ];
|
|
|
|
|
|
@@ -12709,7 +12719,7 @@ var t = mk.math.random(0, this.moreGameList.normal.length - 1);
|
|
|
return this.moreGameList.normal[t];
|
|
|
};
|
|
|
e.prototype.popMoreGamePopNode = function() {
|
|
|
-mk.guide.isGuiding || Math.random() <= gData.gameData.configs.ServerConfig.popMoreGame && mk.ui.openPanel("module/moreGame/moreGamePopNode");
|
|
|
+mk.guide.isGuiding || mk.ui.getCurOnPanel("reward") || Math.random() <= gData.gameData.configs.ServerConfig.popMoreGame && mk.ui.openPanel("module/moreGame/moreGamePopNode");
|
|
|
};
|
|
|
e.prototype.popNodeGetRedBag = function() {
|
|
|
return a(this, void 0, void 0, function() {
|
|
|
@@ -17230,7 +17240,7 @@ done: !0
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var s = t("../../../mk/system/JsbSystem"), l = cc._decorator, u = l.ccclass, p = l.property, d = function(t) {
|
|
|
+var s = t("../../../before/util/Util"), l = t("../../../mk/system/JsbSystem"), u = cc._decorator, p = u.ccclass, d = u.property, h = function(t) {
|
|
|
i(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -17259,6 +17269,7 @@ console.log("=== gData.wechatData.unionid", gData.wechatData.unionid);
|
|
|
console.log("=== gData.wechatData.nickName", gData.wechatData.nickName);
|
|
|
this.lbl_id.string = "ID:" + mk.string.getNewLimitStr(gData.wechatData.unionid, 10);
|
|
|
this.lbl_nickname.string = gData.wechatData.nickName;
|
|
|
+this.lbl_version.string = gData.appData.appVersion;
|
|
|
t = "module/setting/texture/" + (mk.audio.getSwitchMusic() ? "on" : "off");
|
|
|
e = "module/setting/texture/" + (mk.audio.getSwitchEffect() ? "on" : "off");
|
|
|
n = this.img_music;
|
|
|
@@ -17285,7 +17296,7 @@ return [ 2 ];
|
|
|
};
|
|
|
e.prototype.clickCopy = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
-s.default.setClipboard(gData.wechatData.unionid);
|
|
|
+l.default.setClipboard(gData.wechatData.unionid);
|
|
|
mk.tip.pop("复制成功");
|
|
|
};
|
|
|
e.prototype.clickMusic = function() {
|
|
|
@@ -17326,11 +17337,15 @@ return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
-e.prototype.clickUpdate = function() {};
|
|
|
+e.prototype.clickUpdate = function() {
|
|
|
+mk.audio.playEffect("button");
|
|
|
+var t = gData.appData.installVersion;
|
|
|
+s.default.versionCompareHandle(gData.appData.appVersion, t) < 0 ? mk.ui.openPanel("module/forceUpdate/forceUpdate") : mk.tip.pop("当前已是最新版本");
|
|
|
+};
|
|
|
e.prototype.onClickWxAuth = function() {
|
|
|
if (!gData.loginData.isAuth) {
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
-s.default.WxAuth();
|
|
|
+l.default.WxAuth();
|
|
|
this.onClickClose();
|
|
|
}
|
|
|
};
|
|
|
@@ -17348,35 +17363,36 @@ e.prototype.onClickClose = function() {
|
|
|
mk.ad.destroyNativeAd();
|
|
|
mk.ad.checkShowInterByChance();
|
|
|
};
|
|
|
-a([ p({
|
|
|
+a([ d({
|
|
|
type: cc.Sprite,
|
|
|
displayName: "头像"
|
|
|
}) ], e.prototype, "img_head", void 0);
|
|
|
-a([ p({
|
|
|
+a([ d({
|
|
|
type: cc.Label,
|
|
|
displayName: "昵称"
|
|
|
}) ], e.prototype, "lbl_nickname", void 0);
|
|
|
-a([ p({
|
|
|
+a([ d({
|
|
|
type: cc.Label,
|
|
|
displayName: "ID"
|
|
|
}) ], e.prototype, "lbl_id", void 0);
|
|
|
-a([ p({
|
|
|
+a([ d({
|
|
|
type: cc.Sprite,
|
|
|
displayName: "音乐开关"
|
|
|
}) ], e.prototype, "img_music", void 0);
|
|
|
-a([ p({
|
|
|
+a([ d({
|
|
|
type: cc.Sprite,
|
|
|
displayName: "音效开关"
|
|
|
}) ], e.prototype, "img_effect", void 0);
|
|
|
-a([ p({
|
|
|
+a([ d({
|
|
|
type: cc.Label,
|
|
|
displayName: "版本号"
|
|
|
}) ], e.prototype, "lbl_version", void 0);
|
|
|
-return a([ u ], e);
|
|
|
+return a([ p ], e);
|
|
|
}(cc.Component);
|
|
|
-n.default = d;
|
|
|
+n.default = h;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
+"../../../before/util/Util": "Util",
|
|
|
"../../../mk/system/JsbSystem": "JsbSystem"
|
|
|
} ],
|
|
|
SignData: [ function(t, e, n) {
|