|
|
@@ -3988,11 +3988,16 @@ return i > 3 && r && Object.defineProperty(e, o, r), r;
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var r = t("../../../mk/system/JsbSystem"), c = cc._decorator.ccclass, s = function(t) {
|
|
|
+var r = t("../../../mk/system/JsbSystem"), c = cc._decorator, s = c.ccclass, l = c.property, p = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
-return null !== t && t.apply(this, arguments) || this;
|
|
|
+var e = null !== t && t.apply(this, arguments) || this;
|
|
|
+e.lbl_des = null;
|
|
|
+return e;
|
|
|
}
|
|
|
+e.prototype.start = function() {
|
|
|
+0 == gData.gameData.authUIType ? this.lbl_des.string = "红包将提现至微信,登陆后立即到账" : 1 == gData.gameData.authUIType ? this.lbl_des.string = "登陆后即可邀请微信好友一起玩" : this.lbl_des.string = "登陆后即可提现红包至微信";
|
|
|
+};
|
|
|
e.prototype.clickAuth = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
r.default.WxAuth();
|
|
|
@@ -4003,9 +4008,13 @@ mk.ad.showNative();
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destroyNativeAd();
|
|
|
};
|
|
|
-return i([ c ], e);
|
|
|
+i([ l({
|
|
|
+type: cc.Label,
|
|
|
+displayName: "描述"
|
|
|
+}) ], e.prototype, "lbl_des", void 0);
|
|
|
+return i([ s ], e);
|
|
|
}(cc.Component);
|
|
|
-o.default = s;
|
|
|
+o.default = p;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../../mk/system/JsbSystem": "JsbSystem"
|
|
|
@@ -4950,6 +4959,7 @@ this.PlayMoneyAniUpdate(t);
|
|
|
gData.blessingBag.init_videoRbData && this.UpdateInfo();
|
|
|
if (gData.blessingBag.init_openRb) {
|
|
|
if (cc.sys.isNative && !gData.loginData.isAuth) {
|
|
|
+gData.gameData.authUIType = 0;
|
|
|
mk.ui.openPanel("module/authUI/authUI");
|
|
|
return;
|
|
|
}
|
|
|
@@ -5066,7 +5076,10 @@ return [ 2 ];
|
|
|
console.log("---\x3eYou Click AdProgressBtn ", gData.blessingBag.videoRbData);
|
|
|
};
|
|
|
e.prototype.OpenRbPanel = function() {
|
|
|
-!cc.sys.isNative || gData.loginData.isAuth ? gData.blessingBag.HttpCashTask() : mk.ui.openPanel("module/authUI/authUI");
|
|
|
+if (!cc.sys.isNative || gData.loginData.isAuth) gData.blessingBag.HttpCashTask(); else {
|
|
|
+gData.gameData.authUIType = 0;
|
|
|
+mk.ui.openPanel("module/authUI/authUI");
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.CheckCashRedCode = function() {
|
|
|
var t = gData.blessingBag.videoRbData;
|
|
|
@@ -12581,6 +12594,7 @@ this.shareDes = "";
|
|
|
this.shareImgUrl = "";
|
|
|
this.RawInsectArr = [];
|
|
|
this.RawInsectCurArr = [ 0, 0, 0 ];
|
|
|
+this.authUIType = 0;
|
|
|
this._farmMapRewardData = [];
|
|
|
this._cashOutTimes = 0;
|
|
|
this._farmData = [];
|
|
|
@@ -14209,7 +14223,10 @@ mk.console.logSingle("VVVV ", "onClickSign");
|
|
|
};
|
|
|
e.prototype.onClickShare = function() {
|
|
|
mk.data.sendDataEvent(l.DataEventId.button_click, "邀请icon");
|
|
|
-gData.loginData.isAuth ? s.default.shareInviteUrl(gData.gameData.shareUrl, gData.gameData.shareTitle, gData.gameData.shareDes, gData.gameData.shareImgUrl) : mk.ui.openPanel("module/authUI/authUI");
|
|
|
+if (gData.loginData.isAuth) s.default.shareInviteUrl(gData.gameData.shareUrl, gData.gameData.shareTitle, gData.gameData.shareDes, gData.gameData.shareImgUrl); else {
|
|
|
+gData.gameData.authUIType = 1;
|
|
|
+mk.ui.openPanel("module/authUI/authUI");
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.onClickGradeReward = function() {
|
|
|
mk.data.sendDataEvent(l.DataEventId.button_click, "农场等级领奖按钮");
|
|
|
@@ -14961,7 +14978,10 @@ mk.audio.playEffect("button");
|
|
|
if (!cc.sys.isNative || gData.loginData.isAuth) {
|
|
|
gData.adData.checkPopCashFull();
|
|
|
gData.farmGradeData.HttpCashOut(this.data.id);
|
|
|
-} else mk.ui.openPanel("module/authUI/authUI");
|
|
|
+} else {
|
|
|
+gData.gameData.authUIType = 0;
|
|
|
+mk.ui.openPanel("module/authUI/authUI");
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.clickNoReachBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
@@ -15112,7 +15132,10 @@ gData.adData.watchVideo(null);
|
|
|
gData.farmGradeData.addGradeExp(r.ExpAddType.EAT_video);
|
|
|
}
|
|
|
});
|
|
|
-} else mk.ui.openPanel("module/authUI/authUI");
|
|
|
+} else {
|
|
|
+gData.gameData.authUIType = 0;
|
|
|
+mk.ui.openPanel("module/authUI/authUI");
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
@@ -24196,6 +24219,7 @@ this.btnCD = 0;
|
|
|
mk.audio.playEffect("button");
|
|
|
if (this.isCanCash) {
|
|
|
if (cc.sys.isNative && !gData.loginData.isAuth) {
|
|
|
+gData.gameData.authUIType = 0;
|
|
|
mk.ui.openPanel("module/authUI/authUI");
|
|
|
return;
|
|
|
}
|
|
|
@@ -25579,11 +25603,17 @@ 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() {
|
|
|
-gData.loginData.isAuth || mk.ui.openPanel("module/authUI/authUI");
|
|
|
+if (!gData.loginData.isAuth) {
|
|
|
+gData.gameData.authUIType = 2;
|
|
|
+mk.ui.openPanel("module/authUI/authUI");
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.onClickShare = function() {
|
|
|
mk.data.sendDataEvent(p.DataEventId.button_click, "邀请icon");
|
|
|
-gData.loginData.isAuth ? l.default.shareInviteUrl(gData.gameData.shareUrl, gData.gameData.shareTitle, gData.gameData.shareDes, gData.gameData.shareImgUrl) : mk.ui.openPanel("module/authUI/authUI");
|
|
|
+if (gData.loginData.isAuth) l.default.shareInviteUrl(gData.gameData.shareUrl, gData.gameData.shareTitle, gData.gameData.shareDes, gData.gameData.shareImgUrl); else {
|
|
|
+gData.gameData.authUIType = 1;
|
|
|
+mk.ui.openPanel("module/authUI/authUI");
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.clickRule = function(t) {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
@@ -26398,7 +26428,10 @@ gData.sign.c_sign[t].rewardType === c.RewardType.rmb && mk.data.sendDataEvent(c.
|
|
|
mk.ad.destroyNativeAd();
|
|
|
}
|
|
|
});
|
|
|
-} else mk.ui.openPanel("module/authUI/authUI");
|
|
|
+} else {
|
|
|
+gData.gameData.authUIType = 0;
|
|
|
+mk.ui.openPanel("module/authUI/authUI");
|
|
|
+}
|
|
|
}
|
|
|
};
|
|
|
e.prototype.getReward = function() {
|
|
|
@@ -30591,6 +30624,7 @@ mk.audio.playEffect("button");
|
|
|
console.log("=========>", this.isCanCash);
|
|
|
if (this.isCanCash) if (this.checkShowTip()) mk.tip.pop("请先提现完前一档次数"); else {
|
|
|
if (cc.sys.isNative && !gData.loginData.isAuth) {
|
|
|
+gData.gameData.authUIType = 0;
|
|
|
mk.ui.openPanel("module/authUI/authUI");
|
|
|
return;
|
|
|
}
|