|
|
@@ -2633,7 +2633,7 @@ t.prototype.checkPopCashFull = function() {
|
|
|
-1 != this.FullCsahAdArr.indexOf(this.ecpmLevel.toString()) && mk.ad.showInterAd(1);
|
|
|
};
|
|
|
t.prototype.startPopRed = function(t) {
|
|
|
-if (mk.guide.isGuiding()) this.timeAd = 0; else if (gData.gameData.isTouchScreen) {
|
|
|
+if (mk.guide.isGuiding() || mk.ui.getCurOnPanel("redBagTask") || mk.ui.getCurOnPanel("productReward2")) this.timeAd = 0; else if (gData.gameData.isTouchScreen) {
|
|
|
gData.gameData.isTouchScreen = !1;
|
|
|
this.timeAd = 0;
|
|
|
} else if (-1 != this.TimingRedMoneyArr.indexOf(this.ecpmLevel.toString())) {
|
|
|
@@ -3658,10 +3658,7 @@ this._AdaptLeftAndRight();
|
|
|
};
|
|
|
e.prototype._AdaptLeftAndRight = function() {
|
|
|
var t = this.node.getComponent(cc.Widget);
|
|
|
-if (t && this.IsBigScreenRatio()) {
|
|
|
-t.top = 65;
|
|
|
-t.bottom = 65;
|
|
|
-}
|
|
|
+t && this.IsBigScreenRatio() && (t.top = 65);
|
|
|
};
|
|
|
e.prototype.IsBigScreenRatio = function() {
|
|
|
return this.GetWinHeightWidthRatio() >= 1.86;
|
|
|
@@ -6356,14 +6353,9 @@ e.node_noChoose = null;
|
|
|
e.lbl_times = null;
|
|
|
e.lbl_value = null;
|
|
|
e.isCanNotChoose = !1;
|
|
|
-e.data = null;
|
|
|
return e;
|
|
|
}
|
|
|
-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.setShowUI = function() {};
|
|
|
e.prototype.setIsChoose = function(t) {
|
|
|
if (!this.isCanNotChoose) {
|
|
|
this.node_choose.active = t;
|
|
|
@@ -8186,6 +8178,8 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.setState = function(t) {
|
|
|
+return r(this, void 0, void 0, function() {
|
|
|
+return c(this, function() {
|
|
|
this.normalProgress.fillRange = 0;
|
|
|
this.normalCount.string = "";
|
|
|
this.normalGroup.active = !1;
|
|
|
@@ -8196,6 +8190,9 @@ this.ripedIcon.active = !1;
|
|
|
this.sickIcon.active = !1;
|
|
|
this.ripedIcon.active = !0;
|
|
|
}
|
|
|
+return [ 2 ];
|
|
|
+});
|
|
|
+});
|
|
|
};
|
|
|
e.prototype.riped = function() {
|
|
|
this.counting = !1;
|
|
|
@@ -8689,7 +8686,12 @@ this.data = gData.gameData.getFarmDataMap(this.configID);
|
|
|
this.setState(this.data.state);
|
|
|
};
|
|
|
e.prototype.setState = function(t) {
|
|
|
-if (this.state != t) {
|
|
|
+return r(this, void 0, void 0, function() {
|
|
|
+var e, o;
|
|
|
+return c(this, function(n) {
|
|
|
+switch (n.label) {
|
|
|
+case 0:
|
|
|
+if (this.state == t) return [ 3, 8 ];
|
|
|
this._state = t;
|
|
|
this.lockNode.active = !1;
|
|
|
this.canUnlockNode.active = !1;
|
|
|
@@ -8698,42 +8700,73 @@ this.countDown.node.active = !1;
|
|
|
this.process.node.active = !1;
|
|
|
switch (this.state) {
|
|
|
case s.FarmState.Lock:
|
|
|
-this.lockNode.active = !0;
|
|
|
-break;
|
|
|
+return [ 3, 1 ];
|
|
|
|
|
|
case s.FarmState.CanUnlock:
|
|
|
+return [ 3, 2 ];
|
|
|
+
|
|
|
+case s.FarmState.Empty:
|
|
|
+return [ 3, 3 ];
|
|
|
+
|
|
|
+case s.FarmState.Growing:
|
|
|
+return [ 3, 4 ];
|
|
|
+
|
|
|
+case s.FarmState.Ripe:
|
|
|
+return [ 3, 5 ];
|
|
|
+
|
|
|
+case s.FarmState.Sick:
|
|
|
+return [ 3, 7 ];
|
|
|
+}
|
|
|
+return [ 3, 8 ];
|
|
|
+
|
|
|
+case 1:
|
|
|
+this.lockNode.active = !0;
|
|
|
+return [ 3, 8 ];
|
|
|
+
|
|
|
+case 2:
|
|
|
this.lockNode.active = !0;
|
|
|
this.canUnlockNode.active = !0;
|
|
|
-break;
|
|
|
+return [ 3, 8 ];
|
|
|
|
|
|
-case s.FarmState.Empty:
|
|
|
+case 3:
|
|
|
this.idleAni && 0 == this.idleAni.active && (this.idleAni.active = !0);
|
|
|
-break;
|
|
|
+return [ 3, 8 ];
|
|
|
|
|
|
-case s.FarmState.Growing:
|
|
|
+case 4:
|
|
|
this.countDown.node.active = !0;
|
|
|
this.process.node.active = !0;
|
|
|
this.countDown.setData(this.data);
|
|
|
this.process.setData(this.data);
|
|
|
this.idleAni && 1 == this.idleAni.active && (this.idleAni.active = !1);
|
|
|
-break;
|
|
|
+return [ 3, 8 ];
|
|
|
|
|
|
-case s.FarmState.Ripe:
|
|
|
+case 5:
|
|
|
this.plantIcon.node.active = !0;
|
|
|
this.countDown.node.active = !0;
|
|
|
this.process.node.active = !0;
|
|
|
this.countDown.setState(1);
|
|
|
this.process.setData(this.data);
|
|
|
-break;
|
|
|
+return [ 4, mk.loader.load("game/prefab/ProductShow1", cc.Prefab) ];
|
|
|
|
|
|
-case s.FarmState.Sick:
|
|
|
+case 6:
|
|
|
+e = n.sent();
|
|
|
+(o = cc.instantiate(e)).name = "hb";
|
|
|
+o.parent = this.node;
|
|
|
+return [ 3, 8 ];
|
|
|
+
|
|
|
+case 7:
|
|
|
this.plantIcon.node.active = !0;
|
|
|
this.countDown.node.active = !0;
|
|
|
this.process.node.active = !0;
|
|
|
this.countDown.setState(0);
|
|
|
this.process.setData(this.data);
|
|
|
+return [ 3, 8 ];
|
|
|
+
|
|
|
+case 8:
|
|
|
+return [ 2 ];
|
|
|
}
|
|
|
-}
|
|
|
+});
|
|
|
+});
|
|
|
};
|
|
|
e.prototype.activeFram = function() {
|
|
|
this.lockNode.active = !1;
|
|
|
@@ -8786,6 +8819,8 @@ this.data.growSpan = 0;
|
|
|
gData.gameData.setFarmDataMap(this.configID, this.data);
|
|
|
gData.gameData.setNextProduct(!1);
|
|
|
gData.farmGradeData.addGradeExp(s.ExpAddType.EAT_harvest, this.node);
|
|
|
+var t = this.node.getChildByName("hb");
|
|
|
+this.node.removeChild(t);
|
|
|
};
|
|
|
e.prototype.plant = function(t) {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
@@ -8821,9 +8856,14 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.onRiped = function() {
|
|
|
+return r(this, void 0, void 0, function() {
|
|
|
+return c(this, function() {
|
|
|
this._state = s.FarmState.Ripe;
|
|
|
this.data.state = s.FarmState.Ripe;
|
|
|
gData.gameData.setFarmDataMap(this.configID, this.data);
|
|
|
+return [ 2 ];
|
|
|
+});
|
|
|
+});
|
|
|
};
|
|
|
e.prototype.onSick = function() {
|
|
|
this._state = s.FarmState.Sick;
|
|
|
@@ -10300,7 +10340,7 @@ var s = t("../../game/data/GameData"), l = cc._decorator.ccclass, p = function(t
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
-e.is_new_cb = !0;
|
|
|
+e.is_new_cbArr = [];
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
@@ -10317,6 +10357,7 @@ var r, l, p, u, d, h, f, y, g;
|
|
|
return c(this, function(c) {
|
|
|
switch (c.label) {
|
|
|
case 0:
|
|
|
+this.is_new_cbArr[t] = !0;
|
|
|
r = 0;
|
|
|
c.label = 1;
|
|
|
|
|
|
@@ -10351,7 +10392,6 @@ r++;
|
|
|
return [ 3, 1 ];
|
|
|
|
|
|
case 5:
|
|
|
-this.is_new_cb = !0;
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
});
|
|
|
@@ -10399,8 +10439,8 @@ position: cc.v3(c)
|
|
|
console.log("end_pos ", e.position);
|
|
|
-1 != a && i.showLabStrChange(a);
|
|
|
if (null != n) {
|
|
|
-i.is_new_cb && n();
|
|
|
-i.is_new_cb = !1;
|
|
|
+i.is_new_cbArr[t] && n();
|
|
|
+i.is_new_cbArr[t] = !1;
|
|
|
}
|
|
|
mk.pool.return("game/prefab/coin", e);
|
|
|
}).start();
|
|
|
@@ -11334,6 +11374,7 @@ this.gameData = null;
|
|
|
this.init_coin = !1;
|
|
|
this.updatePiggyBankValue = !1;
|
|
|
this.init_head = !1;
|
|
|
+this.init_add = !1;
|
|
|
this.init_red_point = !0;
|
|
|
this.props = new Map();
|
|
|
this.pools = [ {
|
|
|
@@ -12534,11 +12575,13 @@ e.node_taskHb = null;
|
|
|
e.btn_product = null;
|
|
|
e.lbl_farmLevel = null;
|
|
|
e.sp_levelPer = null;
|
|
|
+e.ani_add = null;
|
|
|
e.lastTimeSpan = 0;
|
|
|
e.span = 0;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
+this.ani_add.node.active = !1;
|
|
|
gData.gameData.gameStyle = this;
|
|
|
mk.ui.closePanel("login", function() {
|
|
|
mk.ui.closePanel("agreementTip");
|
|
|
@@ -12762,11 +12805,12 @@ gData.gameData.init_task = !0;
|
|
|
}
|
|
|
};
|
|
|
e.prototype.doFlyExpAni = function(t, e, o) {
|
|
|
-var n = this.lbl_farmLevel.node.parent.convertToWorldSpaceAR(this.lbl_farmLevel.node.getPosition());
|
|
|
-mk.fly.PlayCoinAnim(2, 3, e, n, function() {
|
|
|
+var n = this, a = this.lbl_farmLevel.node.parent.convertToWorldSpaceAR(this.lbl_farmLevel.node.getPosition());
|
|
|
+mk.fly.PlayCoinAnim(2, 3, e, a, function() {
|
|
|
gData.gameData.gameData.gradeLevel = o.farmLevel;
|
|
|
gData.gameData.gameData.farmExpValue = o.userExp;
|
|
|
gData.gameData.gameData.farmGradeData = o.userFarmGrageRewardInfo;
|
|
|
+n.playAdd();
|
|
|
});
|
|
|
};
|
|
|
e.prototype.registerCallBack = function() {
|
|
|
@@ -12776,6 +12820,10 @@ s.default.callBack = function() {
|
|
|
mk.ui.openPanel("module/speedUpUI/productReward2");
|
|
|
};
|
|
|
};
|
|
|
+e.prototype.playAdd = function() {
|
|
|
+this.ani_add.node.active = !0;
|
|
|
+this.ani_add.play();
|
|
|
+};
|
|
|
i([ d({
|
|
|
type: cc.Node,
|
|
|
displayName: "游戏核心玩法"
|
|
|
@@ -12844,6 +12892,10 @@ i([ d({
|
|
|
type: cc.Sprite,
|
|
|
displayName: "等级进度"
|
|
|
}) ], e.prototype, "sp_levelPer", void 0);
|
|
|
+i([ d({
|
|
|
+type: cc.Animation,
|
|
|
+displayName: "增加效果文本"
|
|
|
+}) ], e.prototype, "ani_add", void 0);
|
|
|
return i([ u ], e);
|
|
|
}(cc.Component);
|
|
|
o.default = f;
|
|
|
@@ -14465,10 +14517,6 @@ t.prototype.setAdData.call(this, e);
|
|
|
this.setToEmpty();
|
|
|
};
|
|
|
e.prototype.setToEmpty = function() {
|
|
|
-if (this.call) {
|
|
|
-this.call();
|
|
|
-this.call = null;
|
|
|
-}
|
|
|
mk.ui.closePanel("HarvestPanel");
|
|
|
};
|
|
|
return i([ c ], e);
|
|
|
@@ -14623,9 +14671,17 @@ return null !== t && t.apply(this, arguments) || this;
|
|
|
}
|
|
|
e.prototype.clickNormalBtn = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
+var t;
|
|
|
return c(this, function() {
|
|
|
gData.harvestData.setToEmpty();
|
|
|
gData.adData.checkShowFullInter(1);
|
|
|
+t = [ {
|
|
|
+rewardType: 1,
|
|
|
+rewardNum: 20
|
|
|
+} ];
|
|
|
+gData.reward.data = t;
|
|
|
+gData.reward.callback = gData.harvestData.call;
|
|
|
+mk.ui.openPanel("module/reward/reward");
|
|
|
return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
@@ -14636,16 +14692,24 @@ var t = this;
|
|
|
return c(this, function() {
|
|
|
mk.ad.watchAd(function(e) {
|
|
|
return r(t, void 0, void 0, function() {
|
|
|
-return c(this, function(t) {
|
|
|
-switch (t.label) {
|
|
|
+var t;
|
|
|
+return c(this, function(o) {
|
|
|
+switch (o.label) {
|
|
|
case 0:
|
|
|
mk.console.log("watchAD:" + e);
|
|
|
return e ? [ 4, gData.adData.watchVideo(s.AdFun.harvest) ] : [ 3, 2 ];
|
|
|
|
|
|
case 1:
|
|
|
-t.sent();
|
|
|
+o.sent();
|
|
|
gData.harvestData.setToEmpty();
|
|
|
-t.label = 2;
|
|
|
+t = [ {
|
|
|
+rewardType: 1,
|
|
|
+rewardNum: 20
|
|
|
+} ];
|
|
|
+gData.reward.data = t;
|
|
|
+gData.reward.callback = gData.harvestData.call;
|
|
|
+mk.ui.openPanel("module/reward/reward");
|
|
|
+o.label = 2;
|
|
|
|
|
|
case 2:
|
|
|
return [ 2 ];
|
|
|
@@ -17187,6 +17251,7 @@ return e;
|
|
|
e.prototype.start = function() {
|
|
|
this.canvas = cc.find("Canvas");
|
|
|
this.node.on(cc.Node.EventType.TOUCH_START, this.onMapTouchBegin, this);
|
|
|
+this.map.scale = 1.2;
|
|
|
this.node.setPosition(cc.v2(72, 348));
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
@@ -23126,6 +23191,7 @@ function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.add_redbag_value = 0;
|
|
|
e._data = [];
|
|
|
+e.callback = null;
|
|
|
e.subType = 1;
|
|
|
return e;
|
|
|
}
|
|
|
@@ -23470,6 +23536,10 @@ return [ 2 ];
|
|
|
e.prototype.clickGetReward = function() {
|
|
|
cc.log("获取奖励:", gData.reward.data);
|
|
|
gData.reward.flyCoinAnim(this.node_hb);
|
|
|
+if (gData.reward.callback) {
|
|
|
+gData.reward.callback();
|
|
|
+gData.reward.callback = null;
|
|
|
+}
|
|
|
this.onClickClose();
|
|
|
0 == gData.gameData.getProp(p.GameProp.videoTimes) && mk.data.sendXYEvent("guide_receive", "新手引导领取2500红包币");
|
|
|
};
|
|
|
@@ -24497,15 +24567,13 @@ e = gData.sign.adData;
|
|
|
return [ 4, mk.http.sendData("readyCash", {}) ];
|
|
|
|
|
|
case 2:
|
|
|
-if (0 != (o = a.sent()).errcode) {
|
|
|
-mk.tip.pop("系统异常");
|
|
|
-return [ 2 ];
|
|
|
-}
|
|
|
+0 != (o = a.sent()).errcode && mk.tip.pop("系统异常");
|
|
|
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 +27566,7 @@ done: !0
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-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) {
|
|
|
+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) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -27530,7 +27598,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(d.default), o = parseInt(gData.turnable.config[t].type);
|
|
|
+var e = this.node_items[t].getComponent(u.default), o = parseInt(gData.turnable.config[t].type);
|
|
|
this.rewardWeights[o - 1]++;
|
|
|
e.initData(o, t);
|
|
|
}
|
|
|
@@ -27539,10 +27607,10 @@ this.updateLeftTimes();
|
|
|
};
|
|
|
e.prototype.clickDraw = function() {
|
|
|
if (gData.turnable.leftTimes > 0) {
|
|
|
-mk.ad.videoAdType = u.VideoAdType.Turntable;
|
|
|
+mk.ad.videoAdType = p.VideoAdType.Turntable;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
-t && gData.adData.watchVideo(p.AdFun.turntable);
|
|
|
+t && gData.adData.watchVideo(l.AdFun.turntable);
|
|
|
});
|
|
|
}
|
|
|
};
|
|
|
@@ -27608,7 +27676,6 @@ 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);
|
|
|
@@ -27642,22 +27709,21 @@ this.playOver();
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {};
|
|
|
e.prototype.onClickClose = function() {};
|
|
|
-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);
|
|
|
+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);
|
|
|
}(cc.Component);
|
|
|
-o.default = g;
|
|
|
+o.default = y;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../component/BtnClosePanel": "BtnClosePanel",
|
|
|
-"../../component/SetGray": "SetGray",
|
|
|
"../../data/AdData": "AdData",
|
|
|
"../../data/GameData": "GameData",
|
|
|
"./TurnableItem": "TurnableItem"
|
|
|
@@ -27781,13 +27847,6 @@ 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: "公告内容"
|
|
|
@@ -28854,25 +28913,6 @@ 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;
|
|
|
@@ -28905,11 +28945,10 @@ return i > 3 && r && Object.defineProperty(e, o, r), r;
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-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) {
|
|
|
+var r = t("../../data/AdData"), c = t("../../data/GameData"), s = t("./CheckButton"), l = cc._decorator, p = l.ccclass, u = l.property, d = 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;
|
|
|
@@ -28918,16 +28957,14 @@ 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();
|
|
|
-this.initCashOutUI();
|
|
|
+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);
|
|
|
};
|
|
|
e.prototype.initNoviceUI = function() {
|
|
|
var t = gData.gameData.gameData.userNoviceWeFareInfo;
|
|
|
@@ -28941,29 +28978,6 @@ 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();
|
|
|
@@ -28977,19 +28991,15 @@ 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 = l.VideoAdType.CashOutNoviceWelfare;
|
|
|
+mk.ad.videoAdType = c.VideoAdType.CashOutNoviceWelfare;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
t && gData.walletCashOutData.addProgress();
|
|
|
@@ -28997,10 +29007,10 @@ t && gData.walletCashOutData.addProgress();
|
|
|
};
|
|
|
e.prototype.clickAddCashBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
-mk.ad.videoAdType = l.VideoAdType.CashOutNoviceWelfare;
|
|
|
+mk.ad.videoAdType = c.VideoAdType.CashOutNoviceWelfare;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
-t && gData.adData.watchVideo(s.AdFun.cashOutAddCash);
|
|
|
+t && gData.adData.watchVideo(r.AdFun.cashOutAddCash);
|
|
|
});
|
|
|
};
|
|
|
e.prototype.clickEnoughCashOutBtn = function() {
|
|
|
@@ -29017,54 +29027,47 @@ mk.audio.playEffect("closeButton");
|
|
|
e.prototype.onDisable = function() {
|
|
|
gData.adData.checkShowFullInter(4);
|
|
|
};
|
|
|
-i([ h({
|
|
|
-displayName: "公告组件",
|
|
|
-type: c.default
|
|
|
-}) ], e.prototype, "tc", void 0);
|
|
|
-i([ h({
|
|
|
+i([ u({
|
|
|
displayName: "进度条",
|
|
|
type: cc.Sprite
|
|
|
}) ], e.prototype, "sp_progress", void 0);
|
|
|
-i([ h({
|
|
|
+i([ u({
|
|
|
displayName: "红包币",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_redMoney", void 0);
|
|
|
-i([ h({
|
|
|
+i([ u({
|
|
|
displayName: "金额",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_value", void 0);
|
|
|
-i([ h({
|
|
|
+i([ u({
|
|
|
displayName: "下提示",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_tip", void 0);
|
|
|
-i([ h({
|
|
|
+i([ u({
|
|
|
displayName: "提现按钮文本",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_cashOut", void 0);
|
|
|
-i([ h({
|
|
|
+i([ u({
|
|
|
displayName: "新手描述",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_noviceTitle", void 0);
|
|
|
-i([ h({
|
|
|
+i([ u({
|
|
|
displayName: "新手金额",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_noviceValue", void 0);
|
|
|
-i([ h({
|
|
|
+i([ u({
|
|
|
displayName: "上提示",
|
|
|
type: cc.Label
|
|
|
}) ], e.prototype, "lbl_tipUp", void 0);
|
|
|
-i([ h(r.default) ], e.prototype, "btn_cashOut", void 0);
|
|
|
-i([ h({
|
|
|
+i([ u({
|
|
|
displayName: "6个选择按钮",
|
|
|
-type: p.default
|
|
|
+type: s.default
|
|
|
}) ], e.prototype, "check_button", void 0);
|
|
|
-return i([ d ], e);
|
|
|
+return i([ p ], e);
|
|
|
}(cc.Component);
|
|
|
-o.default = f;
|
|
|
+o.default = d;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
-"../../component/SetGray": "SetGray",
|
|
|
-"../../component/tween/TweenCast": "TweenCast",
|
|
|
"../../data/AdData": "AdData",
|
|
|
"../../data/GameData": "GameData",
|
|
|
"./CheckButton": "CheckButton"
|