|
|
@@ -2104,7 +2104,7 @@ this.appId = "wxcf31f0e54f7fefda";
|
|
|
this.umengChannel = "";
|
|
|
this.deviceType = "";
|
|
|
this.androidVersion = "";
|
|
|
-this.mac = "5e:35:e1:12:b3:23,f6:60:e4:1a:b7:27";
|
|
|
+this.mac = "1e:01:e4:13:b3:23,f6:60:e4:1a:b7:27";
|
|
|
this.machineInfo = {
|
|
|
android_id: "",
|
|
|
idfa: "",
|
|
|
@@ -2801,6 +2801,9 @@ return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
+e.prototype.redPoint = function() {
|
|
|
+return !1;
|
|
|
+};
|
|
|
return e;
|
|
|
}(t("../../../mk/data/Data").Data);
|
|
|
n.BlessingBagData = c;
|
|
|
@@ -7198,6 +7201,7 @@ this.funOpenData = [];
|
|
|
this.gameData = null;
|
|
|
this.init_coin = !1;
|
|
|
this.init_head = !1;
|
|
|
+this.init_red_point = !0;
|
|
|
this.props = new Map();
|
|
|
this.pools = [ {
|
|
|
url: "game/prefab/tips",
|
|
|
@@ -7410,6 +7414,7 @@ return this._isSignInToday;
|
|
|
set: function(t) {
|
|
|
this._isSignInToday = t;
|
|
|
gData.sign.init_data = !0;
|
|
|
+gData.gameData.init_red_point = !0;
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
configurable: !0
|
|
|
@@ -7423,6 +7428,7 @@ if (this._piggyBank !== t) {
|
|
|
this._piggyBank = t;
|
|
|
gData.gameData.init_coin = !0;
|
|
|
gData.pigbank.init_data = !0;
|
|
|
+gData.gameData.init_red_point = !0;
|
|
|
}
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
@@ -7436,6 +7442,7 @@ set: function(t) {
|
|
|
if (this._isWithdrawable != t) {
|
|
|
this._isWithdrawable = t;
|
|
|
gData.pigbank.init_data = !0;
|
|
|
+gData.gameData.init_red_point = !0;
|
|
|
}
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
@@ -7448,6 +7455,7 @@ return this._redMoney;
|
|
|
set: function(t) {
|
|
|
this._redMoney = t;
|
|
|
gData.gameData.init_coin = !0;
|
|
|
+gData.gameData.init_red_point = !0;
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
configurable: !0
|
|
|
@@ -8524,6 +8532,12 @@ o = i;
|
|
|
}
|
|
|
return new cc.Vec2(e, n);
|
|
|
};
|
|
|
+t.prototype.localConvertWorldPointARCenter = function(t) {
|
|
|
+var e = cc.view.getVisibleSize(), n = t.convertToWorldSpaceAR(cc.v2(0, 0));
|
|
|
+n.x = n.x - e.width / 2;
|
|
|
+n.y = n.y - e.height / 2;
|
|
|
+return n;
|
|
|
+};
|
|
|
return t;
|
|
|
}();
|
|
|
n.default = o;
|
|
|
@@ -8666,7 +8680,44 @@ done: !0
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var s = t("../../mk/system/JsbSystem"), l = t("../component/NumberAnim"), u = t("../data/GameData"), p = t("./FunBtns"), d = cc._decorator, h = d.ccclass, f = d.property, y = function(t) {
|
|
|
+n.RedPoinNode = void 0;
|
|
|
+var s = t("../../mk/system/JsbSystem"), l = t("../component/NumberAnim"), u = t("../data/GameData"), p = t("./FunBtns"), d = cc._decorator, h = d.ccclass, f = d.property, y = function() {
|
|
|
+function t() {
|
|
|
+this.node_sign = null;
|
|
|
+this.node_pigbank = null;
|
|
|
+this.node_redbagCash = null;
|
|
|
+this.node_blessingBag = null;
|
|
|
+this.node_turnable = null;
|
|
|
+this.node_redeem = null;
|
|
|
+}
|
|
|
+a([ f({
|
|
|
+type: cc.Node,
|
|
|
+displayName: "签到"
|
|
|
+}) ], t.prototype, "node_sign", void 0);
|
|
|
+a([ f({
|
|
|
+type: cc.Node,
|
|
|
+displayName: "存钱罐"
|
|
|
+}) ], t.prototype, "node_pigbank", void 0);
|
|
|
+a([ f({
|
|
|
+type: cc.Node,
|
|
|
+displayName: "红包提现"
|
|
|
+}) ], t.prototype, "node_redbagCash", void 0);
|
|
|
+a([ f({
|
|
|
+type: cc.Node,
|
|
|
+displayName: "福袋"
|
|
|
+}) ], t.prototype, "node_blessingBag", void 0);
|
|
|
+a([ f({
|
|
|
+type: cc.Node,
|
|
|
+displayName: "转盘"
|
|
|
+}) ], t.prototype, "node_turnable", void 0);
|
|
|
+a([ f({
|
|
|
+type: cc.Node,
|
|
|
+displayName: "福利礼包"
|
|
|
+}) ], t.prototype, "node_redeem", void 0);
|
|
|
+return a([ h("RedPoinNode") ], t);
|
|
|
+}();
|
|
|
+n.RedPoinNode = y;
|
|
|
+var g = function(t) {
|
|
|
i(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -8684,6 +8735,7 @@ e.btn_start = null;
|
|
|
e.icon_hb = null;
|
|
|
e.icon_zb = null;
|
|
|
e.node_top_ui = null;
|
|
|
+e.nodeRedPoint = null;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
@@ -8702,6 +8754,7 @@ mk.guide.open(1);
|
|
|
e.prototype.update = function() {
|
|
|
gData.gameData.init_coin && this.changeInfo();
|
|
|
gData.gameData.init_head && this.initHead();
|
|
|
+gData.gameData.init_red_point && this.initRedPoint();
|
|
|
};
|
|
|
e.prototype.lateUpdate = function() {
|
|
|
gData.gameData.init_head = !1;
|
|
|
@@ -8772,6 +8825,15 @@ return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
+e.prototype.initRedPoint = function() {
|
|
|
+this.nodeRedPoint.node_sign.active = gData.sign.redPoint();
|
|
|
+this.nodeRedPoint.node_pigbank.active = gData.pigbank.redPoint();
|
|
|
+this.nodeRedPoint.node_redbagCash.active = gData.redBagCash.redPoint();
|
|
|
+this.nodeRedPoint.node_turnable.active = gData.turnable.redPoint();
|
|
|
+this.nodeRedPoint.node_blessingBag.active = gData.blessingBag.redPoint();
|
|
|
+this.nodeRedPoint.node_redeem.active = gData.redeem.redPoint();
|
|
|
+gData.gameData.init_red_point = !1;
|
|
|
+};
|
|
|
e.prototype.autoOpenPanel = function() {
|
|
|
if (!gData.gameData.isNewPlayer()) {
|
|
|
mk.ui.openPanel("module/pigBank/pigBank");
|
|
|
@@ -8846,9 +8908,13 @@ a([ f({
|
|
|
type: cc.Node,
|
|
|
displayName: "顶部ui组"
|
|
|
}) ], e.prototype, "node_top_ui", void 0);
|
|
|
+a([ f({
|
|
|
+type: y,
|
|
|
+displayName: "红点组"
|
|
|
+}) ], e.prototype, "nodeRedPoint", void 0);
|
|
|
return a([ h ], e);
|
|
|
}(cc.Component);
|
|
|
-n.default = y;
|
|
|
+n.default = g;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../mk/system/JsbSystem": "JsbSystem",
|
|
|
@@ -9306,7 +9372,7 @@ r.dialog_alignment = c.dialogAlignment;
|
|
|
r.display_rect = c.displayRect;
|
|
|
r.click_rect = c.clickRect;
|
|
|
r.finger = c.finger;
|
|
|
-r.lag_next = parseInt(c.lagNext);
|
|
|
+r.lag_next = parseFloat(c.lagNext);
|
|
|
if (o != r.id) {
|
|
|
this.data.set(o, n);
|
|
|
n = [];
|
|
|
@@ -9334,7 +9400,7 @@ cc._RF.push(e, "ccad7HVXppOw6s55udVONoH", "GuideSystem");
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var o = t("../../game/data/GameData"), i = function() {
|
|
|
+var o = t("../../game/data/GameData"), i = t("./UISystem"), a = function() {
|
|
|
function t() {}
|
|
|
t.prototype.open = function(t) {
|
|
|
this.crtGuideID = gData.gameData.getProp(o.GameProp.guideID);
|
|
|
@@ -9342,7 +9408,7 @@ cc.sys.isNative || (this.crtGuideID = 0);
|
|
|
if (this.crtGuideID >= 9999) mk.console.log("新手引导已做完"); else if (t >= this.crtGuideID && this.crtGuideID > 0) mk.console.log("当前引导已做过:" + t); else {
|
|
|
gData.guideData.crtID = t;
|
|
|
this.crtGuideID = t;
|
|
|
-mk.ui.openPanel("module/guide/guide");
|
|
|
+mk.ui.openPanel("module/guide/guide", i.OpenActionType.normal, this.ui);
|
|
|
this.setGuideID(this.crtGuideID++);
|
|
|
}
|
|
|
};
|
|
|
@@ -9358,10 +9424,11 @@ return !this.crtGuideID || 999 === this.crtGuideID;
|
|
|
};
|
|
|
return t;
|
|
|
}();
|
|
|
-n.default = i;
|
|
|
+n.default = a;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
-"../../game/data/GameData": "GameData"
|
|
|
+"../../game/data/GameData": "GameData",
|
|
|
+"./UISystem": "UISystem"
|
|
|
} ],
|
|
|
GuideVO: [ function(t, e, n) {
|
|
|
"use strict";
|
|
|
@@ -9496,12 +9563,17 @@ onTouchCancelled: null
|
|
|
});
|
|
|
this._eventManager.addListener(this._touchListener, this.node);
|
|
|
};
|
|
|
-e.prototype.onTouchStart = function() {
|
|
|
-return !0;
|
|
|
+e.prototype.onTouchStart = function(t) {
|
|
|
+var e = t.getLocation(), n = this.node.parent.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y));
|
|
|
+return this.pointInPoly(n, this.node);
|
|
|
};
|
|
|
e.prototype.onTouchEnded = function(t) {
|
|
|
this.onClickCall(t);
|
|
|
};
|
|
|
+e.prototype.pointInPoly = function(t, e) {
|
|
|
+var n = e.getPosition();
|
|
|
+return t.x >= n.x - this.node.width / 2 && t.x <= n.x + this.node.width / 2 && t.y >= n.y - this.node.height / 2 && t.y <= n.y + this.node.height / 2;
|
|
|
+};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
this._eventManager.removeListener(this._touchListener, this.node);
|
|
|
mk.event.remove("close-panel", this.onClosePanel, this);
|
|
|
@@ -9661,10 +9733,17 @@ e.node_head = null;
|
|
|
e.node_person = null;
|
|
|
e.rich_dialog = null;
|
|
|
e.widgets = [ "top", "bottom", "left", "right", "verticalCenter", "horizontalCenter" ];
|
|
|
+e._eventManager = cc.internal.eventManager;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {};
|
|
|
-e.prototype.start = function() {};
|
|
|
+e.prototype.start = function() {
|
|
|
+if (null != gData.guideData.crtID) {
|
|
|
+this.guides = gData.guideData.getGuidesByID(gData.guideData.crtID);
|
|
|
+this.crtStep = -1;
|
|
|
+this.nextStep();
|
|
|
+} else this.node.destroy();
|
|
|
+};
|
|
|
e.prototype.nextStep = function() {
|
|
|
this.crtStep++;
|
|
|
this.crtGuide = this.guides[this.crtStep];
|
|
|
@@ -9673,6 +9752,7 @@ this.updateGuide();
|
|
|
e.prototype.updateGuide = function() {
|
|
|
var t = this;
|
|
|
if (null == this.crtGuide) this.close(); else {
|
|
|
+this.node_bg.opacity = 180;
|
|
|
this.node_finger.opacity = 255;
|
|
|
this.node_dialog.opacity = 255;
|
|
|
this.targetNode = null;
|
|
|
@@ -9691,10 +9771,20 @@ n = parseInt(r[0]);
|
|
|
o = parseInt(r[1]);
|
|
|
i = parseInt(r[2]);
|
|
|
a = parseInt(r[3]);
|
|
|
+}
|
|
|
+if ("all" == this.crtGuide.click_rect) {
|
|
|
+this.node_click.x = 0;
|
|
|
+this.node_click.y = 0;
|
|
|
+this.node_click.width = this.node.width;
|
|
|
+this.node_click.height = this.node.height;
|
|
|
+this.ifThrough = !1;
|
|
|
+} else {
|
|
|
+this.event_data = this.crtGuide.id + "_" + (this.crtStep + 1);
|
|
|
this.node_click.x = n;
|
|
|
this.node_click.y = o;
|
|
|
this.node_click.width = i;
|
|
|
this.node_click.height = a;
|
|
|
+}
|
|
|
} else {
|
|
|
this.targetNode = cc.find("Canvas/" + this.crtGuide.click_rect);
|
|
|
i = this.targetNode.width;
|
|
|
@@ -9709,7 +9799,11 @@ s.component = "Guide";
|
|
|
s.handler = "clickNodeClick";
|
|
|
this.targetNode.getComponent(cc.Button).clickEvents.push(s);
|
|
|
}
|
|
|
-null != n && null != o && null != i && null != a && cc.tween(this.node_display).to(.3, {
|
|
|
+if (null != n && null != o && null != i && null != a) {
|
|
|
+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(.3, {
|
|
|
x: n,
|
|
|
y: o,
|
|
|
width: i,
|
|
|
@@ -9720,6 +9814,7 @@ t.node_bg.x = -t.node_display.x;
|
|
|
t.node_bg.y = -t.node_display.y;
|
|
|
}
|
|
|
}).start();
|
|
|
+}
|
|
|
if (null != this.crtGuide.dialog_pos && this.crtGuide.dialog_pos.length > 0) {
|
|
|
r = this.crtGuide.dialog_pos.split(":");
|
|
|
for (var l = this.node_dialog.getComponent(cc.Widget), u = 0; u < this.widgets.length; u++) l[this.widgets[u]] = "" == r[u] ? null : parseInt(r[u]);
|
|
|
@@ -9751,6 +9846,7 @@ return r(this, void 0, void 0, function() {
|
|
|
return c(this, function(t) {
|
|
|
switch (t.label) {
|
|
|
case 0:
|
|
|
+mk.audio.playEffect("button");
|
|
|
cc.Tween.stopAllByTarget(this.node_display);
|
|
|
console.log("clickNodeClick");
|
|
|
this.targetNode && this.targetNode.getComponent(cc.Button).clickEvents.pop();
|
|
|
@@ -9770,9 +9866,11 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.reset = function() {
|
|
|
-this.node_display.width = this.node.width;
|
|
|
-this.node_display.height = this.node.height;
|
|
|
-this.node_bg.x = this.node_bg.y = 0;
|
|
|
+this.node_display.width = 0;
|
|
|
+this.node_display.height = 0;
|
|
|
+this.node_bg.x = -this.node_display.x;
|
|
|
+this.node_bg.y = -this.node_display.y;
|
|
|
+this.node_bg.opacity = 0;
|
|
|
this.node_click.width = 0;
|
|
|
this.node_click.height = 0;
|
|
|
this.node_finger.opacity = 0;
|
|
|
@@ -9782,6 +9880,37 @@ e.prototype.close = function() {
|
|
|
mk.guide.close();
|
|
|
this.node.destroy();
|
|
|
};
|
|
|
+e.prototype.initTouch = function() {
|
|
|
+var t = cc.EventListener;
|
|
|
+this._touchListener = t.create({
|
|
|
+event: t.TOUCH_ONE_BY_ONE,
|
|
|
+swallowTouches: !1,
|
|
|
+owner: this.node_click,
|
|
|
+mask: null,
|
|
|
+onTouchBegan: this.onTouchStart.bind(this),
|
|
|
+onTouchMoved: null,
|
|
|
+onTouchEnded: this.onTouchEnded.bind(this),
|
|
|
+onTouchCancelled: null
|
|
|
+});
|
|
|
+this._eventManager.addListener(this._touchListener, this.node_click);
|
|
|
+};
|
|
|
+e.prototype.onTouchStart = function(t) {
|
|
|
+if (this.ifThrough) {
|
|
|
+var e = t.getLocation(), n = this.node.parent.convertToNodeSpaceAR(new cc.Vec2(e.x, e.y));
|
|
|
+return this.pointInPoly(n, this.node_click);
|
|
|
+}
|
|
|
+return !1;
|
|
|
+};
|
|
|
+e.prototype.pointInPoly = function(t, e) {
|
|
|
+var n = e.getPosition();
|
|
|
+return t.x >= n.x - this.node_click.width / 2 && t.x <= n.x + this.node_click.width / 2 && t.y >= n.y - this.node_click.height / 2 && t.y <= n.y + this.node_click.height / 2;
|
|
|
+};
|
|
|
+e.prototype.onTouchEnded = function() {
|
|
|
+this.clickNodeClick();
|
|
|
+};
|
|
|
+e.prototype.onDestroy = function() {
|
|
|
+this._eventManager.removeListener(this._touchListener, this.node_click);
|
|
|
+};
|
|
|
a([ u({
|
|
|
type: cc.Node,
|
|
|
displayName: "显示区域"
|
|
|
@@ -11292,7 +11421,7 @@ if (gData.appData.getDeviceInfoCompelete) {
|
|
|
this.login();
|
|
|
gData.appData.getDeviceInfoCompelete = !1;
|
|
|
} else if (gData.gameData.dataFinish) {
|
|
|
-gData.gameData.isNewPlayer() ? mk.ui.openPanel("module/agreementTip/agreementTip") : mk.ui.openPanel("game/prefab/game");
|
|
|
+gData.gameData.isNewPlayer() ? mk.ui.openPanel("module/login/agreementTip") : mk.ui.openPanel("game/prefab/game");
|
|
|
gData.gameData.dataFinish = !1;
|
|
|
}
|
|
|
} else gData.loginData.loadLocalRes();
|
|
|
@@ -11319,6 +11448,7 @@ return [ 4, this.checkHotUpdate() ];
|
|
|
|
|
|
case 2:
|
|
|
e.sent();
|
|
|
+mk.audio.init();
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
});
|
|
|
@@ -11695,17 +11825,21 @@ return a > 3 && r && Object.defineProperty(e, n, r), r;
|
|
|
Object.defineProperty(n, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var r = cc._decorator, c = r.ccclass, s = (r.property, function(t) {
|
|
|
+var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
|
|
|
i(e, t);
|
|
|
function e() {
|
|
|
-return null !== t && t.apply(this, arguments) || this;
|
|
|
+var e = null !== t && t.apply(this, arguments) || this;
|
|
|
+e.node_guide = null;
|
|
|
+return e;
|
|
|
}
|
|
|
e.prototype.start = function() {
|
|
|
mk.ui.openPanel("module/login/login");
|
|
|
+mk.guide.ui = this.node_guide;
|
|
|
};
|
|
|
+a([ s(cc.Node) ], e.prototype, "node_guide", void 0);
|
|
|
return a([ c ], e);
|
|
|
-}(cc.Component));
|
|
|
-n.default = s;
|
|
|
+}(cc.Component);
|
|
|
+n.default = l;
|
|
|
cc._RF.pop();
|
|
|
}, {} ],
|
|
|
MathUtil: [ function(t, e, n) {
|
|
|
@@ -12655,6 +12789,7 @@ e.btnOpen = null;
|
|
|
e.labName = null;
|
|
|
e.labDes = null;
|
|
|
e.spRed = null;
|
|
|
+e.bData = null;
|
|
|
e.data = null;
|
|
|
e.cool = !1;
|
|
|
return e;
|
|
|
@@ -12663,8 +12798,9 @@ 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;
|
|
|
-cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(this.data.icon, function(t, n) {
|
|
|
+cc.loader.load(this.data.icon, function(t, n) {
|
|
|
if (t) console.log("err:", t); else if (cc.isValid(e.iconNode)) {
|
|
|
var o = n;
|
|
|
e.iconNode.spriteFrame = new cc.SpriteFrame(o);
|
|
|
@@ -12708,7 +12844,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.data);
|
|
|
+null != t && t.progress >= 0 ? this.progressLabel.string = (t.progress / t.totalBytesReceives * 100).toFixed(1) + "%" : this.setItemData(this.bData);
|
|
|
};
|
|
|
a([ p(cc.Sprite) ], e.prototype, "iconNode", void 0);
|
|
|
a([ p(cc.Label) ], e.prototype, "progressLabel", void 0);
|
|
|
@@ -12765,7 +12901,7 @@ return e;
|
|
|
e.prototype.init = function(t) {
|
|
|
var e = this;
|
|
|
this.data = t;
|
|
|
-cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(t.banner2, function(t, n) {
|
|
|
+cc.loader.load(t.banner2, function(t, n) {
|
|
|
if (t) console.log("err:", t); else if (e.banner) {
|
|
|
var o = n;
|
|
|
e.banner.spriteFrame = new cc.SpriteFrame(o);
|
|
|
@@ -12774,13 +12910,16 @@ e.banner.spriteFrame = new cc.SpriteFrame(o);
|
|
|
this.spPro.node.active = !1;
|
|
|
this.btnStart.active = !1;
|
|
|
this.labPro.string = "";
|
|
|
-if (r.default.ifCanStartGame(t.packageName, !1)) {
|
|
|
+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")) {
|
|
|
this.spRed.active = !1;
|
|
|
this.btnStart.active = !0;
|
|
|
-} else this.spRed.active = !0;
|
|
|
+} else this.spRed.active = !0; else if (2 == t.appType) {
|
|
|
+this.spRed.active = !1;
|
|
|
+this.btnStart.active = !0;
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.creatorDownLoadTask = function() {
|
|
|
var t = this;
|
|
|
@@ -12789,9 +12928,9 @@ this.cool = !0;
|
|
|
this.scheduleOnce(function() {
|
|
|
t.cool = !1;
|
|
|
}, 3);
|
|
|
-null != gData.moreGame.createNewTask(this.data) && this.schedule(function() {
|
|
|
+1 == this.data.appType ? null != gData.moreGame.createNewTask(this.data) && this.schedule(function() {
|
|
|
t.showDownloadProgress();
|
|
|
-}, .5);
|
|
|
+}, .5) : 2 == this.data.appType && cc.sys.openURL(this.data.recommendLink);
|
|
|
}
|
|
|
};
|
|
|
e.prototype.showDownloadProgress = function() {
|
|
|
@@ -12863,7 +13002,7 @@ e.prototype.init = function() {
|
|
|
var t = this;
|
|
|
this.data = gData.moreGame.getRandomNormal();
|
|
|
if (this.data) {
|
|
|
-cc.sys.os != cc.sys.OS_WINDOWS && cc.loader.load(this.data.icon, function(e, n) {
|
|
|
+cc.loader.load(this.data.icon, function(e, n) {
|
|
|
if (e) console.log("err:", e); else {
|
|
|
var o = n;
|
|
|
t.icon.spriteFrame = new cc.SpriteFrame(o);
|
|
|
@@ -12876,7 +13015,7 @@ e.prototype.creatorDownLoadTask = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
if (!this.cool) {
|
|
|
this.cool = !0;
|
|
|
-cc.sys.isNative && !r.default.ifCanStartGame(this.data.packageName, !0) && gData.moreGame.createNewTask(this.data);
|
|
|
+1 == this.data.appType ? r.default.ifCanStartGame(this.data.packageName, !0) || gData.moreGame.createNewTask(this.data) : 2 == this.data.appType && cc.sys.openURL(this.data.recommendLink);
|
|
|
gData.moreGame.popNodeGetRedBag();
|
|
|
}
|
|
|
};
|
|
|
@@ -13407,7 +13546,9 @@ e.init_data = !0;
|
|
|
e.cash_min_limit = .3;
|
|
|
return e;
|
|
|
}
|
|
|
-e.prototype.init = function() {};
|
|
|
+e.prototype.init = function() {
|
|
|
+this.cash_min_limit = gData.gameData.configs.ServerConfig.PiggyBankCashMoney;
|
|
|
+};
|
|
|
e.prototype.cashOP = function() {
|
|
|
return a(this, void 0, void 0, function() {
|
|
|
var t;
|
|
|
@@ -13433,6 +13574,9 @@ return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
+e.prototype.redPoint = function() {
|
|
|
+return !!gData.gameData.gameData.isWithdrawable && gData.gameData.gameData.piggyBank >= this.cash_min_limit;
|
|
|
+};
|
|
|
return e;
|
|
|
}(t("../../../mk/data/Data").Data);
|
|
|
n.PigBankData = c;
|
|
|
@@ -14393,7 +14537,7 @@ function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.init_list = !1;
|
|
|
e.c_data = [];
|
|
|
-e._cash_bar = 0;
|
|
|
+e._cash_bar = 1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.init = function() {
|
|
|
@@ -14437,8 +14581,11 @@ return [ 4, mk.http.sendData("cashUsual", e) ];
|
|
|
case 1:
|
|
|
if (0 != (n = a.sent()).errcode) {
|
|
|
mk.tip.pop(n.errmsg);
|
|
|
+mk.console.logSingle("提现index", t);
|
|
|
+mk.console.logSingle("提现错误内容:", n);
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
+cc.log("红包提现成功");
|
|
|
0 == (o = n.data).CashMode || o.CashMode;
|
|
|
this.cash_bar++;
|
|
|
gData.gameData.gameData.cashIndex++;
|
|
|
@@ -14456,7 +14603,7 @@ return [ 2 ];
|
|
|
};
|
|
|
e.prototype.sortList = function() {
|
|
|
for (var t = this.c_data.length, e = 0, n = 0; n < t; n++) {
|
|
|
-if (this.c_data[e].index <= gData.redBagCash.cash_bar) {
|
|
|
+if (this.c_data[e].index < gData.redBagCash.cash_bar) {
|
|
|
var o = this.c_data.splice(e, 1);
|
|
|
this.c_data.push(o[0]);
|
|
|
e--;
|
|
|
@@ -14485,6 +14632,10 @@ this.c_data.push(n);
|
|
|
}
|
|
|
this.init_list = !0;
|
|
|
};
|
|
|
+e.prototype.redPoint = function() {
|
|
|
+for (var t = gData.gameData.gameData.redMoney, e = this.c_data.length, n = 0; n < e; n++) if (!(this.c_data[n].index < gData.redBagCash.cash_bar) && t >= this.c_data[n].type_value) return !0;
|
|
|
+return !1;
|
|
|
+};
|
|
|
return e;
|
|
|
}(c.Data);
|
|
|
n.RedBagCashData = l;
|
|
|
@@ -14664,7 +14815,7 @@ this.lbl_red_value.string = "" + this.item_data.type_value;
|
|
|
var e = this.item_data.money / 100;
|
|
|
e = e > 1 ? e : parseFloat(e.toFixed(2));
|
|
|
this.lbl_rmb_value.string = e + "元";
|
|
|
-if (this.item_data.index <= gData.redBagCash.cash_bar) {
|
|
|
+if (this.item_data.index < gData.redBagCash.cash_bar) {
|
|
|
this.node_none.active = !0;
|
|
|
this.node_lock.active = !1;
|
|
|
this.node_unlock.active = !1;
|
|
|
@@ -14679,10 +14830,7 @@ this.node_unlock.active = !1;
|
|
|
}
|
|
|
};
|
|
|
e.prototype.clickCashOP = function() {
|
|
|
-if (this.item_data.index > gData.redBagCash.cash_bar + 1) mk.tip.pop("请按顺序提现"); else {
|
|
|
-gData.redBagCash.cashOP();
|
|
|
-cc.log("红包现成功");
|
|
|
-}
|
|
|
+this.item_data.index > gData.redBagCash.cash_bar + 1 ? mk.tip.pop("请按顺序提现") : gData.redBagCash.cashOP();
|
|
|
};
|
|
|
a([ u({
|
|
|
displayName: "已领取",
|
|
|
@@ -15428,6 +15576,9 @@ return [ 2, e ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
+e.prototype.redPoint = function() {
|
|
|
+return !1;
|
|
|
+};
|
|
|
return e;
|
|
|
}(t("../../../mk/data/Data").Data);
|
|
|
n.default = c;
|
|
|
@@ -17286,6 +17437,9 @@ if (a === s.RewardState.unlock) return n;
|
|
|
}
|
|
|
return t;
|
|
|
};
|
|
|
+e.prototype.redPoint = function() {
|
|
|
+return !gData.gameData.gameData.isSignInToday && this.haveSignDay();
|
|
|
+};
|
|
|
return e;
|
|
|
}(c.Data);
|
|
|
n.SignData = l;
|
|
|
@@ -19251,6 +19405,9 @@ mk.console.log("watchAD:" + t);
|
|
|
t && gData.adData.watchVideo(s.AdFun.turntable);
|
|
|
});
|
|
|
};
|
|
|
+e.prototype.redPoint = function() {
|
|
|
+return !1;
|
|
|
+};
|
|
|
return e;
|
|
|
}(c.Data);
|
|
|
n.TurnableData = u;
|
|
|
@@ -20091,39 +20248,40 @@ mk.ui = this;
|
|
|
e.prototype.start = function() {
|
|
|
this.panelParent || (this.panelParent = this.node);
|
|
|
};
|
|
|
-e.prototype.openPanel = function(t, e) {
|
|
|
+e.prototype.openPanel = function(t, e, n) {
|
|
|
void 0 === e && (e = r.normal);
|
|
|
-var n = t.split("/"), o = n[n.length - 1], i = this;
|
|
|
-if (!i.isPanelOpening && !i.getCurOnPanel(o)) {
|
|
|
-i.isPanelOpening = !0;
|
|
|
-return new Promise(function(n, a) {
|
|
|
+void 0 === n && (n = null);
|
|
|
+var o = t.split("/"), i = o[o.length - 1], a = this;
|
|
|
+if (!a.isPanelOpening && !a.getCurOnPanel(i)) {
|
|
|
+a.isPanelOpening = !0;
|
|
|
+return new Promise(function(o, c) {
|
|
|
mk.loader.load("" + t, cc.Prefab).then(function(t) {
|
|
|
-i.isPanelOpening = !1;
|
|
|
-var a = cc.instantiate(t);
|
|
|
-i.curOnPanelDic[o] = a;
|
|
|
-i.panelParent && (i.panelParent = i.node);
|
|
|
-if (i.panelParent) {
|
|
|
-i.panelParent.addChild(a);
|
|
|
+a.isPanelOpening = !1;
|
|
|
+var c = cc.instantiate(t);
|
|
|
+a.curOnPanelDic[i] = c;
|
|
|
+a.panelParent && (a.panelParent = a.node);
|
|
|
+if (a.panelParent) {
|
|
|
+n ? c.parent = n : a.panelParent.addChild(c);
|
|
|
switch (e) {
|
|
|
case r.normal:
|
|
|
break;
|
|
|
|
|
|
case r.closeLast:
|
|
|
-i.lastOpenPanelName && i.closePanel(i.lastOpenPanelName);
|
|
|
+a.lastOpenPanelName && a.closePanel(a.lastOpenPanelName);
|
|
|
break;
|
|
|
|
|
|
case r.closeOther:
|
|
|
-for (var c = Object.keys(i.curOnPanelDic).filter(function() {}), s = 0; s < c.length; s++) {
|
|
|
-var l = c[s];
|
|
|
-i.closePanel(l);
|
|
|
+for (var s = Object.keys(a.curOnPanelDic).filter(function() {}), l = 0; l < s.length; l++) {
|
|
|
+var u = s[l];
|
|
|
+a.closePanel(u);
|
|
|
}
|
|
|
}
|
|
|
-i.lastOpenPanelName = o;
|
|
|
-n(a);
|
|
|
+a.lastOpenPanelName = i;
|
|
|
+o(c);
|
|
|
} else console.error("[UISystem] UI的父节点panelParent为null,请检查脚本挂载情况");
|
|
|
}).catch(function(t) {
|
|
|
-i.isPanelOpening = !1;
|
|
|
-a(t);
|
|
|
+a.isPanelOpening = !1;
|
|
|
+c(t);
|
|
|
});
|
|
|
});
|
|
|
}
|