|
|
@@ -7830,7 +7830,7 @@ return a > 3 && r && Object.defineProperty(e, n, r), r;
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var r = t("./view/uiItem/CellItem"), c = t("./data/Enum"), s = t("./mgr/PoolMgr"), l = t("./data/GameConst"), u = t("./util/GameLogic"), p = t("./view/effect/BonusTip"), d = t("./mgr/DataMgr"), h = t("./mgr/EffectMgr"), f = t("./mgr/GameMgr"), y = t("../game/data/GameData"), g = cc._decorator, _ = g.ccclass, m = g.property, v = function(t) {
|
|
|
+var r = t("./view/uiItem/CellItem"), c = t("./data/Enum"), s = t("./mgr/PoolMgr"), l = t("./data/GameConst"), u = t("./util/GameLogic"), p = t("./view/effect/BonusTip"), d = t("./mgr/DataMgr"), h = t("./mgr/EffectMgr"), f = t("./mgr/GameMgr"), y = t("../game/data/GameData"), g = t("../mk/system/JsbSystem"), _ = cc._decorator, m = _.ccclass, v = _.property, b = function(t) {
|
|
|
i(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -7919,7 +7919,7 @@ this.cellItemDic[0][1] && this.cellItemDic[0][1].onClick();
|
|
|
this.cellItemDic[0][2] && this.cellItemDic[0][2].onClick();
|
|
|
this.cellItemDic[0][3] && this.cellItemDic[0][3].onClick();
|
|
|
this.cellItemDic[0][4] && this.cellItemDic[0][4].onClick();
|
|
|
-} else if ("1_6" == t) {
|
|
|
+} else if ("1_7" == t) {
|
|
|
this.cellItemDic[1][1] && this.cellItemDic[1][1].onClick();
|
|
|
this.cellItemDic[1][2] && this.cellItemDic[1][2].onClick();
|
|
|
}
|
|
|
@@ -8124,6 +8124,9 @@ e.prototype.onClickPauseBtn = function() {
|
|
|
f.default.Inst.sendEvent(f.UI_NAME.Game, "点击暂停按钮");
|
|
|
mk.ui.openPanel("game/prefab/uiPanel/PauseUI");
|
|
|
};
|
|
|
+e.prototype.onClickShare = function() {
|
|
|
+gData.loginData.isAuth ? g.default.sharePic() : g.default.WxAuth();
|
|
|
+};
|
|
|
e.prototype.onClickResetBtn = function() {
|
|
|
f.default.Inst.sendEvent(f.UI_NAME.Game, "点击重置道具按钮");
|
|
|
this.setCurSelectPropBtn(this.node_resetBtn);
|
|
|
@@ -8464,47 +8467,48 @@ for (var t = 0; t < 4; t++) this["btn_gameGetRed" + (t + 1)].active = gData.game
|
|
|
};
|
|
|
var n;
|
|
|
e.Inst = null;
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_bg", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_top", void 0);
|
|
|
-a([ m(cc.Label) ], e.prototype, "label_level", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_redPacketIcon", void 0);
|
|
|
-a([ m({
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_bg", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_top", void 0);
|
|
|
+a([ v(cc.Label) ], e.prototype, "label_level", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_redPacketIcon", void 0);
|
|
|
+a([ v({
|
|
|
type: cc.Node,
|
|
|
displayName: "气泡红包1"
|
|
|
}) ], e.prototype, "btn_gameGetRed1", void 0);
|
|
|
-a([ m({
|
|
|
+a([ v({
|
|
|
type: cc.Node,
|
|
|
displayName: "气泡红包2"
|
|
|
}) ], e.prototype, "btn_gameGetRed2", void 0);
|
|
|
-a([ m({
|
|
|
+a([ v({
|
|
|
type: cc.Node,
|
|
|
displayName: "气泡红包3"
|
|
|
}) ], e.prototype, "btn_gameGetRed3", void 0);
|
|
|
-a([ m({
|
|
|
+a([ v({
|
|
|
type: cc.Node,
|
|
|
displayName: "气泡红包3"
|
|
|
}) ], e.prototype, "btn_gameGetRed4", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_content", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_cellBg", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_pauseBtn", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_progressUI", void 0);
|
|
|
-a([ m(cc.Sprite) ], e.prototype, "spr_progress", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_resetBtn", void 0);
|
|
|
-a([ m(cc.Label) ], e.prototype, "label_resetPropNum", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_hammerBtn", void 0);
|
|
|
-a([ m(cc.Label) ], e.prototype, "label_hammerPropNum", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_changeBtn", void 0);
|
|
|
-a([ m(cc.Label) ], e.prototype, "label_changePropNum", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_changeCellItemUI", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_effectUI", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_levelRedPacketUI", void 0);
|
|
|
-a([ m(cc.Node) ], e.prototype, "node_touchListenMask", void 0);
|
|
|
-return n = a([ _ ], e);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_content", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_cellBg", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_pauseBtn", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_progressUI", void 0);
|
|
|
+a([ v(cc.Sprite) ], e.prototype, "spr_progress", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_resetBtn", void 0);
|
|
|
+a([ v(cc.Label) ], e.prototype, "label_resetPropNum", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_hammerBtn", void 0);
|
|
|
+a([ v(cc.Label) ], e.prototype, "label_hammerPropNum", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_changeBtn", void 0);
|
|
|
+a([ v(cc.Label) ], e.prototype, "label_changePropNum", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_changeCellItemUI", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_effectUI", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_levelRedPacketUI", void 0);
|
|
|
+a([ v(cc.Node) ], e.prototype, "node_touchListenMask", void 0);
|
|
|
+return n = a([ m ], e);
|
|
|
}(cc.Component);
|
|
|
-n.default = v;
|
|
|
+n.default = b;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../game/data/GameData": "GameData",
|
|
|
+"../mk/system/JsbSystem": "JsbSystem",
|
|
|
"./data/Enum": "Enum",
|
|
|
"./data/GameConst": "GameConst",
|
|
|
"./mgr/DataMgr": "DataMgr",
|
|
|
@@ -10558,7 +10562,8 @@ return jsb.fileUtils.getWritablePath();
|
|
|
};
|
|
|
t.callStaticMethod = function(t, e, n) {
|
|
|
for (var i, a = [], r = 3; r < arguments.length; r++) a[r - 3] = arguments[r];
|
|
|
-(i = jsb.reflection).callStaticMethod.apply(i, o([ t, e, n ], a));
|
|
|
+var c = (i = jsb.reflection).callStaticMethod.apply(i, o([ t, e, n ], a));
|
|
|
+return c;
|
|
|
};
|
|
|
t.backTest = function() {};
|
|
|
t.updateDeviceInfo = function(t) {
|
|
|
@@ -10627,12 +10632,13 @@ t.setAppVersion = function() {
|
|
|
cc.sys.os == cc.sys.OS_ANDROID || (cc.sys.os, cc.sys.OS_IOS);
|
|
|
};
|
|
|
t.installApk = function(t) {
|
|
|
-var e = this.getWritablePath() + t;
|
|
|
+var e = this.getWritablePath() + t + ".apk";
|
|
|
cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "installApk", "(Ljava/lang/String;)V", e) : cc.sys.os == cc.sys.OS_IOS && this.callStaticMethod("GameConfig", "installApk:", "");
|
|
|
};
|
|
|
t.ifCanStartGame = function(t, e) {
|
|
|
var n = !1;
|
|
|
-cc.sys.os == cc.sys.OS_ANDROID ? n = this.callStaticMethod(this._JSB_ANDROID_PATH, "isStartGame", "(Ljava/lang/String;Z)Z", t, e) : cc.sys.os == cc.sys.OS_IOS && (n = this.callStaticMethod("GameConfig", "installApk:", ""));
|
|
|
+if (cc.sys.os == cc.sys.OS_ANDROID) return this.callStaticMethod(this._JSB_ANDROID_PATH, "isStartGame", "(Ljava/lang/String;Z)Z", t, e);
|
|
|
+cc.sys.os == cc.sys.OS_IOS && (n = this.callStaticMethod("GameConfig", "installApk:", ""));
|
|
|
return n;
|
|
|
};
|
|
|
t.setTAEventRegister = function() {
|
|
|
@@ -12529,7 +12535,7 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.createNewTask = function(t) {
|
|
|
-var n = this, o = t.nebulaAppId + ".apk", i = t.downloadUrl, a = t.packageName;
|
|
|
+var n = this, o = t.nebulaAppId, i = t.downloadUrl, a = t.packageName;
|
|
|
if ("" != a && s.default.ifCanStartGame(a, !0)) return null;
|
|
|
if (s.default.isFileExist(o)) {
|
|
|
s.default.installApk(o);
|
|
|
@@ -12798,17 +12804,21 @@ e.btnOpen = null;
|
|
|
e.labName = null;
|
|
|
e.labDes = null;
|
|
|
e.spRed = null;
|
|
|
-e.bData = null;
|
|
|
e.data = null;
|
|
|
e.cool = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.setItemData = function(t) {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var e = this;
|
|
|
return c(this, function() {
|
|
|
-this.bData = t;
|
|
|
-this.data = t.item_data;
|
|
|
+this.setInfo(t.item_data);
|
|
|
+return [ 2 ];
|
|
|
+});
|
|
|
+});
|
|
|
+};
|
|
|
+e.prototype.setInfo = function(t) {
|
|
|
+var e = this;
|
|
|
+this.data = t;
|
|
|
cc.loader.load(this.data.icon, function(t, n) {
|
|
|
if (t) console.log("err:", t); else if (cc.isValid(e.iconNode)) {
|
|
|
var o = n;
|
|
|
@@ -12821,7 +12831,7 @@ this.spRed.active = !1;
|
|
|
if (1 == this.data.appType) if (s.default.ifCanStartGame(this.data.packageName, !1)) {
|
|
|
this.btnDown.active = !1;
|
|
|
this.btnOpen.active = !0;
|
|
|
-} else if (s.default.isFileExist(this.data.nebulaAppId + ".apk")) {
|
|
|
+} else if (s.default.isFileExist(this.data.nebulaAppId)) {
|
|
|
this.btnDown.active = !1;
|
|
|
this.btnOpen.active = !0;
|
|
|
} else {
|
|
|
@@ -12834,9 +12844,6 @@ e.showDownloadProgress();
|
|
|
this.btnDown.active = !1;
|
|
|
this.btnOpen.active = !0;
|
|
|
}
|
|
|
-return [ 2 ];
|
|
|
-});
|
|
|
-});
|
|
|
};
|
|
|
e.prototype.creatorDownLoadTask = function() {
|
|
|
var t = this;
|
|
|
@@ -12853,7 +12860,7 @@ t.showDownloadProgress();
|
|
|
};
|
|
|
e.prototype.showDownloadProgress = function() {
|
|
|
var t = gData.moreGame.getTaskInfo(this.data.nebulaAppId);
|
|
|
-null != t && t.progress >= 0 ? this.progressLabel.string = (t.progress / t.totalBytesReceives * 100).toFixed(1) + "%" : this.setItemData(this.bData);
|
|
|
+null != t && t.progress >= 0 ? this.progressLabel.string = (t.progress / t.totalBytesReceives * 100).toFixed(1) + "%" : this.setInfo(this.data);
|
|
|
};
|
|
|
a([ p(cc.Sprite) ], e.prototype, "iconNode", void 0);
|
|
|
a([ p(cc.Label) ], e.prototype, "progressLabel", void 0);
|
|
|
@@ -12922,7 +12929,7 @@ this.labPro.string = "";
|
|
|
if (1 == t.appType) if (r.default.ifCanStartGame(t.packageName, !1)) {
|
|
|
this.spRed.active = !1;
|
|
|
this.btnStart.active = !0;
|
|
|
-} else if (r.default.isFileExist(t.nebulaAppId + ".apk")) {
|
|
|
+} else if (r.default.isFileExist(t.nebulaAppId)) {
|
|
|
this.spRed.active = !1;
|
|
|
this.btnStart.active = !0;
|
|
|
} else this.spRed.active = !0; else if (2 == t.appType) {
|