|
|
@@ -6356,9 +6356,14 @@ e.node_noChoose = null;
|
|
|
e.lbl_times = null;
|
|
|
e.lbl_value = null;
|
|
|
e.isCanNotChoose = !1;
|
|
|
+e.data = null;
|
|
|
return e;
|
|
|
}
|
|
|
-e.prototype.setShowUI = function() {};
|
|
|
+e.prototype.setShowUI = function(t) {
|
|
|
+this.data = t;
|
|
|
+this.lbl_times.string = t.cashFrequency.toString();
|
|
|
+this.lbl_value.string = (t.money / 100).toString();
|
|
|
+};
|
|
|
e.prototype.setIsChoose = function(t) {
|
|
|
if (!this.isCanNotChoose) {
|
|
|
this.node_choose.active = t;
|
|
|
@@ -13802,7 +13807,6 @@ function t() {}
|
|
|
t.prototype.open = function(t) {
|
|
|
this.crtGuideID = gData.gameData.getProp(n.GameProp.guideID);
|
|
|
null == this.crtGuideID && (this.crtGuideID = 0);
|
|
|
-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;
|
|
|
@@ -14282,11 +14286,7 @@ r = this.crtGuide.finger.split(":");
|
|
|
this.node_finger.x = o + parseInt(r[0]);
|
|
|
this.node_finger.y = n + parseInt(r[1]);
|
|
|
}
|
|
|
-if (3 == this.crtGuide.tr_form || 4 == this.crtGuide.tr_form) {
|
|
|
-this.node_bg.opacity = 0;
|
|
|
-this.node_click._touchListener.swallowTouches = !1;
|
|
|
-this.node_bg._touchListener.swallowTouches = !1;
|
|
|
-}
|
|
|
+3 != this.crtGuide.tr_form && 4 != this.crtGuide.tr_form || (this.node_bg.opacity = 0);
|
|
|
if (1 == this.crtGuide.tr_form || 3 == this.crtGuide.tr_form) {
|
|
|
this.node_head.node.active = !0;
|
|
|
this.node_person.active = !1;
|
|
|
@@ -14334,8 +14334,6 @@ this.node_click.width = 0;
|
|
|
this.node_click.height = 0;
|
|
|
this.node_finger.opacity = 0;
|
|
|
this.node_dialog.opacity = 0;
|
|
|
-this.node_click._touchListener.swallowTouches = !0;
|
|
|
-this.node_bg._touchListener.swallowTouches = !0;
|
|
|
};
|
|
|
e.prototype.close = function() {
|
|
|
mk.guide.close();
|
|
|
@@ -24499,13 +24497,15 @@ e = gData.sign.adData;
|
|
|
return [ 4, mk.http.sendData("readyCash", {}) ];
|
|
|
|
|
|
case 2:
|
|
|
-0 != (o = a.sent()).errcode && mk.tip.pop("系统异常");
|
|
|
+if (0 != (o = a.sent()).errcode) {
|
|
|
+mk.tip.pop("系统异常");
|
|
|
+return [ 2 ];
|
|
|
+}
|
|
|
0 == o.CashMode || o.CashMode;
|
|
|
n = Math.round(100 * e.videoRedMoney.videoRewardList[0].rewardNum);
|
|
|
gData.receiptNotice.receip_rmb = n;
|
|
|
gData.cashNormal.receip_total_rmb += gData.receiptNotice.receip_rmb;
|
|
|
mk.ui.openPanel("module/newNotice/newNotice", s.OpenActionType.closeLast);
|
|
|
-gData.cashNormal.getRecord();
|
|
|
return [ 3, 4 ];
|
|
|
|
|
|
case 3:
|
|
|
@@ -27498,7 +27498,7 @@ done: !0
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var s = t("../../component/BtnClosePanel"), l = t("../../data/AdData"), p = t("../../data/GameData"), u = t("./TurnableItem"), d = cc._decorator, h = d.ccclass, f = d.property, y = function(t) {
|
|
|
+var s = t("../../component/BtnClosePanel"), l = t("../../component/SetGray"), p = t("../../data/AdData"), u = t("../../data/GameData"), d = t("./TurnableItem"), h = cc._decorator, f = h.ccclass, y = h.property, g = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -27530,7 +27530,7 @@ this.node_turn.runAction(this.act_rotate);
|
|
|
e.prototype.initData = function() {
|
|
|
this.rewardWeights = [ 0, 0, 0 ];
|
|
|
if (gData.turnable.config) for (var t = 0; t < gData.turnable.config.length; t++) {
|
|
|
-var e = this.node_items[t].getComponent(u.default), o = parseInt(gData.turnable.config[t].type);
|
|
|
+var e = this.node_items[t].getComponent(d.default), o = parseInt(gData.turnable.config[t].type);
|
|
|
this.rewardWeights[o - 1]++;
|
|
|
e.initData(o, t);
|
|
|
}
|
|
|
@@ -27539,10 +27539,10 @@ this.updateLeftTimes();
|
|
|
};
|
|
|
e.prototype.clickDraw = function() {
|
|
|
if (gData.turnable.leftTimes > 0) {
|
|
|
-mk.ad.videoAdType = p.VideoAdType.Turntable;
|
|
|
+mk.ad.videoAdType = u.VideoAdType.Turntable;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
-t && gData.adData.watchVideo(l.AdFun.turntable);
|
|
|
+t && gData.adData.watchVideo(p.AdFun.turntable);
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
@@ -27608,6 +27608,7 @@ return [ 2 ];
|
|
|
};
|
|
|
e.prototype.updateLeftTimes = function() {
|
|
|
this.lbl_left.string = "剩余:<color=#FFED99>" + gData.turnable.leftTimes + "</color>次";
|
|
|
+this.btn_draw.setGray(!0);
|
|
|
var t = 10 - gData.turnable.leftTimes;
|
|
|
if (0 == t) this.lbl_probability.string = "<color=#FBE5D0>当前概率: 5%</color>"; else {
|
|
|
t >= 10 && (t = 9);
|
|
|
@@ -27641,21 +27642,22 @@ this.playOver();
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {};
|
|
|
e.prototype.onClickClose = function() {};
|
|
|
-i([ f(cc.Node) ], e.prototype, "node_turn", void 0);
|
|
|
-i([ f(cc.Node) ], e.prototype, "node_items", void 0);
|
|
|
-i([ f(cc.Node) ], e.prototype, "btn_draw", void 0);
|
|
|
-i([ f(cc.Sprite) ], e.prototype, "btn_close", void 0);
|
|
|
-i([ f(cc.RichText) ], e.prototype, "lbl_left", void 0);
|
|
|
-i([ f(cc.ParticleSystem) ], e.prototype, "starAni", void 0);
|
|
|
-i([ f(sp.Skeleton) ], e.prototype, "baozhaAni", void 0);
|
|
|
-i([ f(cc.RichText) ], e.prototype, "lbl_probability", void 0);
|
|
|
-i([ f(cc.Node) ], e.prototype, "node_point", void 0);
|
|
|
-return i([ h ], e);
|
|
|
+i([ y(cc.Node) ], e.prototype, "node_turn", void 0);
|
|
|
+i([ y(cc.Node) ], e.prototype, "node_items", void 0);
|
|
|
+i([ y(l.default) ], e.prototype, "btn_draw", void 0);
|
|
|
+i([ y(cc.Sprite) ], e.prototype, "btn_close", void 0);
|
|
|
+i([ y(cc.RichText) ], e.prototype, "lbl_left", void 0);
|
|
|
+i([ y(cc.ParticleSystem) ], e.prototype, "starAni", void 0);
|
|
|
+i([ y(sp.Skeleton) ], e.prototype, "baozhaAni", void 0);
|
|
|
+i([ y(cc.RichText) ], e.prototype, "lbl_probability", void 0);
|
|
|
+i([ y(cc.Node) ], e.prototype, "node_point", void 0);
|
|
|
+return i([ f ], e);
|
|
|
}(cc.Component);
|
|
|
-o.default = y;
|
|
|
+o.default = g;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../component/BtnClosePanel": "BtnClosePanel",
|
|
|
+"../../component/SetGray": "SetGray",
|
|
|
"../../data/AdData": "AdData",
|
|
|
"../../data/GameData": "GameData",
|
|
|
"./TurnableItem": "TurnableItem"
|
|
|
@@ -27779,6 +27781,13 @@ this.rich_text_2.node.y = -50;
|
|
|
this.rich_text_2.string = this.getContent();
|
|
|
}
|
|
|
};
|
|
|
+e.prototype.setMoneyArr = function(t) {
|
|
|
+this.moneys = t;
|
|
|
+if (this.isShowFirstNotice) {
|
|
|
+this.rich_text_2 || console.log("sss");
|
|
|
+this.rich_text_2.string = this.getContent();
|
|
|
+}
|
|
|
+};
|
|
|
i([ l({
|
|
|
type: cc.RichText,
|
|
|
displayName: "公告内容"
|
|
|
@@ -28845,6 +28854,25 @@ return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
+e.prototype.HttpCashOut2 = function(t) {
|
|
|
+return i(this, void 0, void 0, function() {
|
|
|
+var e, o;
|
|
|
+return r(this, function(n) {
|
|
|
+switch (n.label) {
|
|
|
+case 0:
|
|
|
+e = {
|
|
|
+index: t
|
|
|
+};
|
|
|
+return [ 4, mk.http.sendData("redMoney/cashPay", e) ];
|
|
|
+
|
|
|
+case 1:
|
|
|
+if (0 != (o = n.sent()).errcode) return [ 2, null ];
|
|
|
+mk.console.logSingle("wallet=>", o.data);
|
|
|
+return [ 2 ];
|
|
|
+}
|
|
|
+});
|
|
|
+});
|
|
|
+};
|
|
|
return e;
|
|
|
}(t("../../../mk/data/Data").Data);
|
|
|
o.WalletCashOutData = c;
|
|
|
@@ -28877,10 +28905,11 @@ return i > 3 && r && Object.defineProperty(e, o, r), r;
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var r = t("../../data/AdData"), c = t("../../data/GameData"), s = t("./CheckButton"), l = cc._decorator, p = l.ccclass, u = l.property, d = function(t) {
|
|
|
+var r = t("../../component/SetGray"), c = t("../../component/tween/TweenCast"), s = t("../../data/AdData"), l = t("../../data/GameData"), p = t("./CheckButton"), u = cc._decorator, d = u.ccclass, h = u.property, f = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
+e.tc = null;
|
|
|
e.sp_progress = null;
|
|
|
e.lbl_redMoney = null;
|
|
|
e.lbl_value = null;
|
|
|
@@ -28889,14 +28918,16 @@ e.lbl_cashOut = null;
|
|
|
e.lbl_noviceTitle = null;
|
|
|
e.lbl_noviceValue = null;
|
|
|
e.lbl_tipUp = null;
|
|
|
+e.btn_cashOut = null;
|
|
|
e.check_button = [];
|
|
|
e.curChooseIndex = 0;
|
|
|
e.intV = 0;
|
|
|
+e.isCanCash = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.start = function() {
|
|
|
this.initNoviceUI();
|
|
|
-for (var t = [ {}, {}, {}, {}, {}, {} ], e = 0; e != this.check_button.length; ++e) e < t.length ? this.check_button[e].setShowUI(t[e]) : this.check_button[e].setShowUI(null);
|
|
|
+this.initCashOutUI();
|
|
|
};
|
|
|
e.prototype.initNoviceUI = function() {
|
|
|
var t = gData.gameData.gameData.userNoviceWeFareInfo;
|
|
|
@@ -28910,6 +28941,29 @@ this.lbl_tipUp.string = "进度加满后必得" + this.intV + "元现金";
|
|
|
this.lbl_cashOut.string = "满" + this.intV + "元提现";
|
|
|
}
|
|
|
};
|
|
|
+e.prototype.initCashOutUI = function() {
|
|
|
+if (gData.gameData.configs.CashCfg) {
|
|
|
+for (var t = [], e = gData.gameData.configs.CashCfg, o = 0; o != this.check_button.length; ++o) if (o < e.length) {
|
|
|
+this.check_button[o].setShowUI(e[o]);
|
|
|
+t.push(e[o].money / 100);
|
|
|
+} else this.check_button[o].setShowUI(null);
|
|
|
+this.tc.setMoneyArr(t);
|
|
|
+this.initTip();
|
|
|
+}
|
|
|
+};
|
|
|
+e.prototype.initTip = function() {
|
|
|
+var t = gData.gameData.configs.CashCfg[this.curChooseIndex];
|
|
|
+if (gData.gameData.gameData.redMoney - t.redMoney >= 0) {
|
|
|
+this.lbl_tip.string = "可提现";
|
|
|
+this.isCanCash = !0;
|
|
|
+this.btn_cashOut.setGray(!1);
|
|
|
+} else {
|
|
|
+var e = t.money / 100, o = (gData.gameData.gameData.redMoney / 1e4).toFixed(2) + "元";
|
|
|
+this.lbl_tip.string = "需要" + e + "元,当前只有" + o;
|
|
|
+this.isCanCash = !1;
|
|
|
+this.btn_cashOut.setGray(!0);
|
|
|
+}
|
|
|
+};
|
|
|
e.prototype.update = function() {
|
|
|
if (gData.walletCashOutData.init_novice) {
|
|
|
this.initNoviceUI();
|
|
|
@@ -28923,15 +28977,19 @@ if (o != this.curChooseIndex && !this.check_button[o].getIsCanNotChoose()) {
|
|
|
this.check_button[o].setIsChoose(!0);
|
|
|
this.check_button[this.curChooseIndex].setIsChoose(!1);
|
|
|
this.curChooseIndex = o;
|
|
|
+this.initTip();
|
|
|
}
|
|
|
};
|
|
|
e.prototype.clickCashOutBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
+if (this.isCanCash) {
|
|
|
gData.adData.checkPopCashFull();
|
|
|
+gData.walletCashOutData.HttpCashOut2(this.curChooseIndex + 1);
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.clickAddProgressBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
-mk.ad.videoAdType = c.VideoAdType.CashOutNoviceWelfare;
|
|
|
+mk.ad.videoAdType = l.VideoAdType.CashOutNoviceWelfare;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
t && gData.walletCashOutData.addProgress();
|
|
|
@@ -28939,10 +28997,10 @@ t && gData.walletCashOutData.addProgress();
|
|
|
};
|
|
|
e.prototype.clickAddCashBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
-mk.ad.videoAdType = c.VideoAdType.CashOutNoviceWelfare;
|
|
|
+mk.ad.videoAdType = l.VideoAdType.CashOutNoviceWelfare;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
-t && gData.adData.watchVideo(r.AdFun.cashOutAddCash);
|
|
|
+t && gData.adData.watchVideo(s.AdFun.cashOutAddCash);
|
|
|
});
|
|
|
};
|
|
|
e.prototype.clickEnoughCashOutBtn = function() {
|
|
|
@@ -28959,47 +29017,54 @@ mk.audio.playEffect("closeButton");
|
|
|
e.prototype.onDisable = function() {
|
|
|
gData.adData.checkShowFullInter(4);
|
|
|
};
|
|
|
-i([ u({
|
|
|
+i([ h({
|
|
|
+displayName: "公告组件",
|
|
|
+type: c.default
|
|
|
+}) ], e.prototype, "tc", void 0);
|
|
|
+i([ h({
|
|
|
displayName: "进度条",
|
|
|
type: cc.Sprite
|
|
|
}) ], e.prototype, "sp_progress", void 0);
|
|
|
-i([ u({
|
|
|
+i([ h({
|
|
|
displayName: "红包币",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_redMoney", void 0);
|
|
|
-i([ u({
|
|
|
+i([ h({
|
|
|
displayName: "金额",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_value", void 0);
|
|
|
-i([ u({
|
|
|
+i([ h({
|
|
|
displayName: "下提示",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_tip", void 0);
|
|
|
-i([ u({
|
|
|
+i([ h({
|
|
|
displayName: "提现按钮文本",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_cashOut", void 0);
|
|
|
-i([ u({
|
|
|
+i([ h({
|
|
|
displayName: "新手描述",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_noviceTitle", void 0);
|
|
|
-i([ u({
|
|
|
+i([ h({
|
|
|
displayName: "新手金额",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_noviceValue", void 0);
|
|
|
-i([ u({
|
|
|
+i([ h({
|
|
|
displayName: "上提示",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_tipUp", void 0);
|
|
|
-i([ u({
|
|
|
+i([ h(r.default) ], e.prototype, "btn_cashOut", void 0);
|
|
|
+i([ h({
|
|
|
displayName: "6个选择按钮",
|
|
|
-type: s.default
|
|
|
+type: p.default
|
|
|
}) ], e.prototype, "check_button", void 0);
|
|
|
-return i([ p ], e);
|
|
|
+return i([ d ], e);
|
|
|
}(cc.Component);
|
|
|
-o.default = d;
|
|
|
+o.default = f;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
+"../../component/SetGray": "SetGray",
|
|
|
+"../../component/tween/TweenCast": "TweenCast",
|
|
|
"../../data/AdData": "AdData",
|
|
|
"../../data/GameData": "GameData",
|
|
|
"./CheckButton": "CheckButton"
|