|
|
@@ -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",
|
|
|
@@ -10628,16 +10632,12 @@ 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;
|
|
|
-if (cc.sys.os == cc.sys.OS_ANDROID) {
|
|
|
-n = this.callStaticMethod(this._JSB_ANDROID_PATH, "isStartGame", "(Ljava/lang/String;Z)Z", t, e);
|
|
|
-console.log("aaaaaaaaaaa >>> ", n);
|
|
|
-return n;
|
|
|
-}
|
|
|
+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;
|
|
|
};
|
|
|
@@ -12535,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);
|
|
|
@@ -12828,13 +12828,10 @@ e.iconNode.spriteFrame = new cc.SpriteFrame(o);
|
|
|
this.labName.string = this.data.title;
|
|
|
this.labDes.string = this.data.introduction;
|
|
|
this.spRed.active = !1;
|
|
|
-if (1 == this.data.appType) {
|
|
|
-console.log("aaaaaa this.data.packageName ", this.data.packageName);
|
|
|
-console.log("aaaaaa ", s.default.ifCanStartGame(this.data.packageName, !1));
|
|
|
-if (s.default.ifCanStartGame(this.data.packageName, !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 {
|
|
|
@@ -12843,7 +12840,6 @@ this.btnOpen.active = !1;
|
|
|
null != gData.moreGame.getTaskInfo(this.data.nebulaAppId) ? this.schedule(function() {
|
|
|
e.showDownloadProgress();
|
|
|
}, .5) : this.progressLabel.string = "下载";
|
|
|
-}
|
|
|
} else if (2 == this.data.appType) {
|
|
|
this.btnDown.active = !1;
|
|
|
this.btnOpen.active = !0;
|
|
|
@@ -12933,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) {
|