|
|
@@ -2707,6 +2707,7 @@ var e = this.AutoRedMoneyMap.get(this.ecpmLevel);
|
|
|
if (this.timeAd >= e) {
|
|
|
this.timeAd = 0;
|
|
|
mk.ad.videoAdType = c.VideoAdType.video_init_19;
|
|
|
+gData.gameData.init_hideRedBag = !0;
|
|
|
mk.ui.openPanel("module/newOpenRedBag/newOpenRedBag");
|
|
|
}
|
|
|
}
|
|
|
@@ -2815,8 +2816,8 @@ this.last_time_stamp = t.getTime();
|
|
|
};
|
|
|
t.prototype.isAdCooling = function() {
|
|
|
var t = new Date().getTime() - this.last_time_stamp;
|
|
|
-if (t <= 5e3) {
|
|
|
-var e = 6 - Math.ceil(t / 1e3);
|
|
|
+if (t <= 3e3) {
|
|
|
+var e = 4 - Math.ceil(t / 1e3);
|
|
|
mk.tip.pop("当前看视频太频繁了,请" + e + "秒后再试");
|
|
|
return !0;
|
|
|
}
|
|
|
@@ -6325,6 +6326,9 @@ e.cashPro = null;
|
|
|
e.labMoney = null;
|
|
|
return e;
|
|
|
}
|
|
|
+e.prototype.start = function() {
|
|
|
+mk.ad.destroyNativeAd();
|
|
|
+};
|
|
|
e.prototype.update = function() {
|
|
|
if (gData.cashPro.init_load) {
|
|
|
gData.cashPro.init_load = !1;
|
|
|
@@ -8031,7 +8035,7 @@ return c(this, function() {
|
|
|
switch (this.data.state) {
|
|
|
case s.FactroyState.Lock:
|
|
|
t = gData.gameData.getProductArrByType(this.tab);
|
|
|
-e = t[0].value;
|
|
|
+e = t[0].value - gData.gameData.playerProp.completeFarmTaskTimes;
|
|
|
mk.tip.pop("完成" + e + "次任务红包后解锁");
|
|
|
break;
|
|
|
|
|
|
@@ -8075,6 +8079,7 @@ gData.gameData.setFactoryDataMap(this.configID, this.data);
|
|
|
this.getComponent(l.MoveToCenter).move();
|
|
|
gData.gameData.changeLeftTimes(-1);
|
|
|
gData.adData.checkPopRed();
|
|
|
+gData.gameData.addProductMakeTimesById(this.data.productID);
|
|
|
gData.gameData.isProducting = !1;
|
|
|
gData.gameData.nextMake = null;
|
|
|
gData.gameData.setNextProduct(!1);
|
|
|
@@ -8097,7 +8102,6 @@ mk.ui.openPanel("module/speedUpUI/speedUp");
|
|
|
e.prototype.onRipe = function(t) {
|
|
|
this.data.state = s.FactroyState.Ripe;
|
|
|
gData.gameData.setFactoryDataMap(this.configID, this.data, t);
|
|
|
-gData.gameData.addProductMakeTimesById(this.data.productID);
|
|
|
};
|
|
|
e.prototype.onSick = function(t) {
|
|
|
this.data.state = s.FactroyState.Sick;
|
|
|
@@ -9766,6 +9770,7 @@ function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.chooseType = r.ProductType.nzw;
|
|
|
e.isStateChange = !1;
|
|
|
+e.isInit = !1;
|
|
|
e.init_award = !1;
|
|
|
return e;
|
|
|
}
|
|
|
@@ -11773,7 +11778,7 @@ Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
o.Fun = void 0;
|
|
|
-var n, a = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/TurnableData"), d = t("./module/SignData"), h = t("./module/FissionData"), f = t("./AdData"), y = t("./module/RewardData"), g = t("./module/CashNormalData"), m = t("./module/ReceiptNoticeData"), _ = t("./module/BlessingBagData"), v = t("./module/CashProData"), b = t("./module/RedBagCashData"), D = t("./module/RedCodeData"), w = t("./module/MoreGameData"), S = t("./module/SettingData"), A = t("./module/GuideData"), k = t("./module/GuideWeakData"), P = t("./ConfigData"), O = t("./module/NewCashUIData"), I = t("../../before/view/data/ADUnlockData"), T = t("../../before/view/data/PlantData"), R = t("../../before/main/FarmSystem"), C = t("../../before/view/data/HarvestData"), x = t("../../before/view/data/ADClearSickData"), F = t("../../before/main/PastureSystem"), N = t("../../before/main/FactorySystem"), M = t("./module/FarmMapData"), j = t("./module/GradeRewardData"), B = t("./module/WalletCashOutData"), E = t("./module/LineUpUIData"), L = function() {
|
|
|
+var n, a = t("./AppData"), i = t("./GameData"), r = t("./HttpData"), c = t("./LoginData"), s = t("./StorageData"), l = t("./WechatData"), p = t("./module/HelpData"), u = t("./module/TurnableData"), d = t("./module/SignData"), h = t("./module/FissionData"), f = t("./AdData"), y = t("./module/RewardData"), g = t("./module/CashNormalData"), m = t("./module/ReceiptNoticeData"), _ = t("./module/BlessingBagData"), v = t("./module/CashProData"), b = t("./module/RedBagCashData"), D = t("./module/RedCodeData"), w = t("./module/MoreGameData"), S = t("./module/SettingData"), A = t("./module/GuideData"), k = t("./module/GuideWeakData"), P = t("./ConfigData"), O = t("./module/NewCashUIData"), I = t("../../before/view/data/ADUnlockData"), T = t("../../before/view/data/PlantData"), R = t("../../before/main/FarmSystem"), C = t("../../before/view/data/HarvestData"), F = t("../../before/view/data/ADClearSickData"), N = t("../../before/main/PastureSystem"), x = t("../../before/main/FactorySystem"), M = t("./module/FarmMapData"), j = t("./module/GradeRewardData"), B = t("./module/WalletCashOutData"), E = t("./module/LineUpUIData"), L = function() {
|
|
|
function t() {
|
|
|
this.init();
|
|
|
}
|
|
|
@@ -11805,9 +11810,9 @@ this.newCashUiData = new O.NewCashUIData();
|
|
|
this.adUnlockData = new I.default();
|
|
|
this.plantData = new T.default();
|
|
|
this.harvestData = new C.default();
|
|
|
-this.adClearSickData = new x.default();
|
|
|
-this.pastureSystem = new F.default();
|
|
|
-this.factorySystem = new N.default();
|
|
|
+this.adClearSickData = new F.default();
|
|
|
+this.pastureSystem = new N.default();
|
|
|
+this.factorySystem = new x.default();
|
|
|
this.farmSystem = new R.FarmSystem();
|
|
|
this.farmMapData = new M.FarmMapData();
|
|
|
this.farmGradeData = new j.GradeRewardData();
|
|
|
@@ -12154,6 +12159,7 @@ this.init_expLevel = !1;
|
|
|
this.init_redBagTask = !1;
|
|
|
this.init_productTask = !1;
|
|
|
this.init_speedup = !1;
|
|
|
+this.init_hideRedBag = !1;
|
|
|
this.shareUrl = "";
|
|
|
this.shareTitle = "";
|
|
|
this.shareDes = "";
|
|
|
@@ -12510,6 +12516,7 @@ case 1:
|
|
|
n = a.sent();
|
|
|
mk.console.logSingle("refrehTask=>", n);
|
|
|
if (0 != n.errcode) return [ 2, !1 ];
|
|
|
+gData.gameData.init_task = !0;
|
|
|
this.playerProp.userFarmTaskInfo = n.data.userFarmTaskInfo;
|
|
|
if (this.playerProp.userFarmTaskInfo.completeCount >= this.playerProp.userFarmTaskInfo.taskCount) {
|
|
|
mk.ui.closeAllUI();
|
|
|
@@ -12570,6 +12577,7 @@ this._farmData[n].state == s.Sick && a++;
|
|
|
}
|
|
|
this.RawInsectCurArr[0] = a;
|
|
|
}
|
|
|
+this.setMaxProduct(10003, !0);
|
|
|
};
|
|
|
t.prototype.setProductMapFromJson = function() {
|
|
|
for (var t = this.configs.Product, e = t.length, o = null, n = "", a = [], i = 0; i < e; i++) {
|
|
|
@@ -12617,6 +12625,12 @@ this._productMakeTimesData.push(r);
|
|
|
var c = t + 1, s = this.getProductMap(t), l = this.getProductMap(c);
|
|
|
t == this.getMaxProduct(s.tab) && l && (gData.plantData.init_itemIndex = c);
|
|
|
if (l && l.tab == s.tab && c > this.getMaxProduct(s.tab) && 1 == l.unlock && l.value <= e) {
|
|
|
+this._productMakeTimesMap.set(c, 0);
|
|
|
+r = {
|
|
|
+id: c,
|
|
|
+times: 0
|
|
|
+};
|
|
|
+this._productMakeTimesData.push(r);
|
|
|
this.setMaxProduct(c);
|
|
|
this.getProductMap(c + 1) && (gData.plantData.init_lock = c + 1);
|
|
|
}
|
|
|
@@ -12648,7 +12662,7 @@ this._pastureData || (this._pastureData = []);
|
|
|
var t = this._pastureData.length;
|
|
|
if (t < 3) {
|
|
|
for (var e = this.getProductArrByType(p.dw), o = e.length, n = 30001, a = null, r = 0; r < o; r++) {
|
|
|
-a = this.playerProp.gradeLevel < e[r].value ? {
|
|
|
+a = this.playerProp.completeFarmTaskTimes < e[r].value ? {
|
|
|
id: n,
|
|
|
state: l.Lock,
|
|
|
productID: e[r].picture,
|
|
|
@@ -12696,17 +12710,20 @@ if (t < 6) {
|
|
|
for (var e = 30004, o = null, n = null, a = 0; a < 6; a++) {
|
|
|
n = this.getTabByConfigID(e);
|
|
|
var r = this.getProductArrByType(n);
|
|
|
-o = this.playerProp.completeFarmTaskTimes < r[0].value ? {
|
|
|
+if (this.playerProp.completeFarmTaskTimes < r[0].value) o = {
|
|
|
id: e,
|
|
|
state: u.Lock,
|
|
|
productID: 0,
|
|
|
growSpan: 0
|
|
|
-} : {
|
|
|
+}; else {
|
|
|
+o = {
|
|
|
id: e,
|
|
|
state: u.Empty,
|
|
|
productID: 0,
|
|
|
growSpan: 0
|
|
|
};
|
|
|
+this.setMaxProduct(r[0].picture, !0);
|
|
|
+}
|
|
|
this._factoryData.push(o);
|
|
|
this._factoryDataMap.set(e, o);
|
|
|
e++;
|
|
|
@@ -12714,9 +12731,13 @@ e++;
|
|
|
this.setProp(i.factoryData, this._factoryData);
|
|
|
} else {
|
|
|
var c = 0;
|
|
|
-for (a = 0; a < t; a++) {
|
|
|
+for (e = 30004, n = null, a = 0; a < t; a++) {
|
|
|
+n = this.getTabByConfigID(e);
|
|
|
+r = this.getProductArrByType(n);
|
|
|
this._factoryDataMap.set(this._factoryData[a].id, this._factoryData[a]);
|
|
|
this._factoryData[a].state == u.Sick && c++;
|
|
|
+this.playerProp.completeFarmTaskTimes >= r[0].value && this.setMaxProduct(r[0].picture, !0);
|
|
|
+e++;
|
|
|
}
|
|
|
this.RawInsectCurArr[2] = c;
|
|
|
}
|
|
|
@@ -12817,7 +12838,6 @@ for (var t in p) {
|
|
|
var e = p[t], o = this.getProductArrByType(e), n = o.length, a = null, r = !1;
|
|
|
switch (e) {
|
|
|
case p.nzw:
|
|
|
-this.setMaxProduct(10003, !0);
|
|
|
break;
|
|
|
|
|
|
case p.dw:
|
|
|
@@ -13491,6 +13511,7 @@ e.ani_add3 = null;
|
|
|
e.posY = 0;
|
|
|
e.lastTimeSpan = 0;
|
|
|
e.span = 0;
|
|
|
+e.isRefreshTask = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
@@ -13571,16 +13592,21 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.changeTaskUI = function() {
|
|
|
-cc.tween(this.lbl_task.node).to(.1, {
|
|
|
+var t = this;
|
|
|
+if (!this.isRefreshTask) {
|
|
|
+this.isRefreshTask = !0;
|
|
|
+cc.tween(this.lbl_task.node).delay(.6).to(.1, {
|
|
|
scale: 1.2
|
|
|
}).to(.1, {
|
|
|
scale: 1
|
|
|
-}).start();
|
|
|
+}).call(function() {
|
|
|
if (gData.gameData.playerProp.userFarmTaskInfo) {
|
|
|
-var t = gData.gameData.playerProp.userFarmTaskInfo.completeCount, e = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
|
|
|
-this.lbl_task.string = "<b><color=#8D4D32>进行" + e + "次生产</c><color=#D73D25>(" + t + "/" + e + ")</color></b>";
|
|
|
-this.node_hand.active = t >= e;
|
|
|
-gData.gameData.playerProp.completeFarmTaskTimes;
|
|
|
+var e = gData.gameData.playerProp.userFarmTaskInfo.completeCount, o = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
|
|
|
+t.lbl_task.string = "<b><color=#8D4D32>进行" + o + "次生产</c><color=#D73D25>(" + e + "/" + o + ")</color></b>";
|
|
|
+t.node_hand.active = e >= o;
|
|
|
+t.isRefreshTask = !1;
|
|
|
+}
|
|
|
+}).start();
|
|
|
}
|
|
|
gData.gameData.init_task = !1;
|
|
|
};
|
|
|
@@ -13769,14 +13795,14 @@ void 0 === t && (t = null);
|
|
|
if (t) if (this.node_taskHb && this.node_taskHb.parent) {
|
|
|
var e = this.node_taskHb.parent.convertToWorldSpaceAR(this.node_taskHb.getPosition());
|
|
|
mk.fly.PlayCoinAnim(1, 5, t, e, function() {
|
|
|
-gData.gameData.init_task = !0;
|
|
|
+console.log("dpFlyRedAni delay1-----");
|
|
|
}, .8);
|
|
|
-} else gData.gameData.init_task = !0; else if (this.node_taskHb && this.node_taskHb.parent && this.btn_product) {
|
|
|
+} else console.log("dpFlyRedAni1-----"); else if (this.node_taskHb && this.node_taskHb.parent && this.btn_product) {
|
|
|
e = this.node_taskHb.parent.convertToWorldSpaceAR(this.node_taskHb.getPosition());
|
|
|
mk.fly.PlayCoinAnim(1, 5, this.btn_product, e, function() {
|
|
|
-gData.gameData.init_task = !0;
|
|
|
+console.log("dpFlyRedAni delay2-----");
|
|
|
}, .8);
|
|
|
-} else gData.gameData.init_task = !0;
|
|
|
+} else console.log("dpFlyRedAni2-----");
|
|
|
};
|
|
|
e.prototype.doFlyExpAni = function(t, e, o) {
|
|
|
var n = this, a = this.lbl_farmLevel.node.parent.convertToWorldSpaceAR(this.lbl_farmLevel.node.getPosition());
|
|
|
@@ -15745,10 +15771,10 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-mk.ad.showBanner(l.BannerAdType.banner_click_6);
|
|
|
+mk.ad.showNative();
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-mk.ad.destoryBanner();
|
|
|
+mk.ad.destroyNativeAd();
|
|
|
};
|
|
|
e.prototype.clickClose = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
@@ -16656,7 +16682,10 @@ this.pt = o;
|
|
|
};
|
|
|
e.prototype.clickLuckBtn = function() {
|
|
|
var t = gData.gameData.getProductArrByType(this.pt);
|
|
|
-t && t.length > 0 && 2 == t[0].unlock && mk.tip.pop("完成" + t[0].value + "次任务红包后解锁");
|
|
|
+if (t && t.length > 0 && 2 == t[0].unlock) {
|
|
|
+var e = t[0].value - gData.gameData.playerProp.completeFarmTaskTimes;
|
|
|
+mk.tip.pop("完成" + e + "次任务红包后解锁");
|
|
|
+}
|
|
|
};
|
|
|
i([ l({
|
|
|
displayName: "复选组件",
|
|
|
@@ -17092,6 +17121,9 @@ e.prototype.start = function() {
|
|
|
gData.lineUpUIData.refresh = !1;
|
|
|
this.lbl_tip.string = "<color=#8A4312>提现排队中,你前面还有</c><color=#EF2417>" + gData.lineUpUIData.personCount + "</color><color=#8A4312>人</color>";
|
|
|
};
|
|
|
+e.prototype.onEnable = function() {
|
|
|
+mk.ad.showNative();
|
|
|
+};
|
|
|
e.prototype.update = function() {
|
|
|
if (gData.lineUpUIData.refresh) {
|
|
|
console.log("lineUp=====>", gData.lineUpUIData.personCount);
|
|
|
@@ -17131,6 +17163,9 @@ return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
+e.prototype.onDisable = function() {
|
|
|
+mk.ad.destroyNativeAd();
|
|
|
+};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
};
|
|
|
@@ -20323,6 +20358,7 @@ e.node_cash = null;
|
|
|
e.sp_icon = null;
|
|
|
e.node_openBtn = null;
|
|
|
e.node_getBtn = null;
|
|
|
+e.node_cashOut = null;
|
|
|
e.data = null;
|
|
|
e.cool = !1;
|
|
|
return e;
|
|
|
@@ -20369,6 +20405,10 @@ mk.ad.destoryBanner();
|
|
|
};
|
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
|
void 0 === t && (t = 0);
|
|
|
+if (gData.gameData.init_hideRedBag) {
|
|
|
+this.node_cashOut.active = !1;
|
|
|
+gData.gameData.init_hideRedBag = !1;
|
|
|
+} else {
|
|
|
0 == t && (t = gData.gameData.playerProp.redMoney);
|
|
|
t /= 100;
|
|
|
var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
@@ -20382,6 +20422,7 @@ fillRange: a
|
|
|
}).start();
|
|
|
t >= o.redMoney ? this.node_cash.play() : this.node_cash.stop();
|
|
|
}
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.showWatchAdReward = function() {
|
|
|
if (gData.reward.adData) {
|
|
|
@@ -20450,6 +20491,7 @@ i([ f(cc.Animation) ], e.prototype, "node_cash", void 0);
|
|
|
i([ f(cc.Sprite) ], e.prototype, "sp_icon", void 0);
|
|
|
i([ f(cc.Node) ], e.prototype, "node_openBtn", void 0);
|
|
|
i([ f(cc.Node) ], e.prototype, "node_getBtn", void 0);
|
|
|
+i([ f(cc.Node) ], e.prototype, "node_cashOut", void 0);
|
|
|
return i([ h ], e);
|
|
|
}(cc.Component);
|
|
|
o.default = y;
|
|
|
@@ -20965,11 +21007,14 @@ this.showGroup.removeAllChildren();
|
|
|
};
|
|
|
e.prototype.onTouch = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var t;
|
|
|
+var t, e;
|
|
|
return c(this, function() {
|
|
|
switch (this.data.state) {
|
|
|
case s.PastureState.Lock:
|
|
|
-2 == (t = gData.gameData.getProductMap(this.data.productID)).unlock ? mk.tip.pop("完成" + t.value + "次任务红包后解锁") : 1 == t.unlock && mk.tip.pop("喂食" + t.name + t.value + "次解锁");
|
|
|
+if (2 == (t = gData.gameData.getProductMap(this.data.productID)).unlock) {
|
|
|
+e = t.value - gData.gameData.playerProp.completeFarmTaskTimes;
|
|
|
+mk.tip.pop("完成" + e + "次任务红包后解锁");
|
|
|
+} else 1 == t.unlock && mk.tip.pop("喂食" + t.name + t.value + "次解锁");
|
|
|
break;
|
|
|
|
|
|
case s.PastureState.Empty:
|
|
|
@@ -22351,6 +22396,7 @@ a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.lbl_times = null;
|
|
|
+e.lbl_times2 = null;
|
|
|
e.lbl_taskTimes = null;
|
|
|
e.lbl_progress = null;
|
|
|
e.sp_taskProgress = null;
|
|
|
@@ -22362,11 +22408,13 @@ return e;
|
|
|
}
|
|
|
e.prototype.onEnable = function() {
|
|
|
var t = this;
|
|
|
+mk.ad.showNative();
|
|
|
this.lbl_times.string = "生产次数+" + gData.gameData.configs.ServerConfig.ProductionAd;
|
|
|
+this.lbl_times2.string = "生产次数+" + gData.gameData.configs.ServerConfig.ProductionAd;
|
|
|
gData.gameData.init_productTask = !1;
|
|
|
if (gData.gameData.playerProp.userFarmTaskInfo) {
|
|
|
var e = gData.gameData.playerProp.userFarmTaskInfo.completeCount, o = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
|
|
|
-if (o <= 10) {
|
|
|
+if (o - e <= 10) {
|
|
|
if (o > e) {
|
|
|
this.lbl_taskTimes.string = (o - e).toString();
|
|
|
this.node_Uncomplete.active = !0;
|
|
|
@@ -22442,6 +22490,9 @@ var t = parseInt(gData.gameData.configs.ServerConfig.ProductionAd);
|
|
|
gData.gameData.changeLeftTimes(t);
|
|
|
gData.gameData.gameStyle.playAdd(t, 2);
|
|
|
};
|
|
|
+e.prototype.onDisable = function() {
|
|
|
+mk.ad.destroyNativeAd();
|
|
|
+};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
@@ -22452,6 +22503,10 @@ displayName: "文本"
|
|
|
}) ], e.prototype, "lbl_times", void 0);
|
|
|
i([ l({
|
|
|
type: cc.Label,
|
|
|
+displayName: "文本2"
|
|
|
+}) ], e.prototype, "lbl_times2", void 0);
|
|
|
+i([ l({
|
|
|
+type: cc.Label,
|
|
|
displayName: "任务次数"
|
|
|
}) ], e.prototype, "lbl_taskTimes", void 0);
|
|
|
i([ l({
|
|
|
@@ -23418,11 +23473,11 @@ gData.gameData.init_task = !0;
|
|
|
this.node_hand.active = !1;
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-mk.ad.showBanner(u.BannerAdType.banner_click_2);
|
|
|
+mk.ad.showNative();
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ui.removeRefreshEvent(this);
|
|
|
-mk.ad.destoryBanner();
|
|
|
+mk.ad.destroyNativeAd();
|
|
|
};
|
|
|
e.prototype.update = function(t) {
|
|
|
var e = this;
|
|
|
@@ -23817,11 +23872,13 @@ var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.node_redPoint = null;
|
|
|
return e;
|
|
|
}
|
|
|
-e.prototype.start = function() {
|
|
|
-this.changeStatus();
|
|
|
-};
|
|
|
+e.prototype.start = function() {};
|
|
|
e.prototype.update = function() {
|
|
|
gData.farmMapData.isStateChange && this.changeStatus();
|
|
|
+if (gData.farmMapData.isInit) {
|
|
|
+gData.farmMapData.isInit = !1;
|
|
|
+this.changeStatus();
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.changeStatus = function() {
|
|
|
for (var t in r.ProductType) {
|
|
|
@@ -27737,6 +27794,7 @@ this.node._touchListener.swallowTouches = !1;
|
|
|
};
|
|
|
e.prototype.onTouchStart = function() {
|
|
|
gData.gameData.isTouchScreen || (gData.gameData.isTouchScreen = !0);
|
|
|
+mk.ui.openPanel("module/newNotice/lineUpUI");
|
|
|
};
|
|
|
i([ s({
|
|
|
displayName: "是否注册触摸事件"
|
|
|
@@ -29749,7 +29807,7 @@ mk.ui.openPanel("module/newNotice/lineUpUI");
|
|
|
}
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
-mk.ui.closePanel("module/newNotice/lineUpUI");
|
|
|
+mk.ui.closePanel("lineUpUI");
|
|
|
gData.gameData.playerProp.redMoneyCashPayRecordList = o.data.redMoneyCashPayRecordList;
|
|
|
this.init_cashOut = !0;
|
|
|
if (n = gData.gameData.configs.CashCfg) {
|
|
|
@@ -29818,22 +29876,28 @@ e.isCanCash = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.start = function() {
|
|
|
-this.initNoviceUI();
|
|
|
+this.initNoviceUI(!0);
|
|
|
this.initCashOutUI();
|
|
|
};
|
|
|
-e.prototype.initNoviceUI = function() {
|
|
|
-var t = gData.gameData.playerProp.userNoviceWeFareInfo;
|
|
|
-if (t) {
|
|
|
-this.lbl_noviceTitle.string = t.name + ":";
|
|
|
-this.sp_progress.fillRange = t.progressRate;
|
|
|
-var e = t.cashmoney / 100, o = this.multiply(e, t.progressRate);
|
|
|
-mk.console.logSingle("initNoviceUI=>", o);
|
|
|
-var n = o.toString().split(".");
|
|
|
-n.length >= 2 && n[1].length > 4 ? this.lbl_noviceValue.string = o.toFixed(4) + "元" : this.lbl_noviceValue.string = o.toString() + "元";
|
|
|
-this.intV = Math.round(e);
|
|
|
+e.prototype.initNoviceUI = function(t) {
|
|
|
+void 0 === t && (t = !1);
|
|
|
+var e = gData.gameData.playerProp.userNoviceWeFareInfo;
|
|
|
+if (e) {
|
|
|
+this.lbl_noviceTitle.string = e.name + ":";
|
|
|
+this.sp_progress.fillRange = e.progressRate;
|
|
|
+var o = e.cashmoney / 100, n = this.multiply(o, e.progressRate);
|
|
|
+mk.console.logSingle("initNoviceUI=>", n);
|
|
|
+var a = n.toString().split(".");
|
|
|
+a.length >= 2 && a[1].length > 4 ? this.lbl_noviceValue.string = n.toFixed(4) + "元" : this.lbl_noviceValue.string = n.toString() + "元";
|
|
|
+t || cc.tween(this.lbl_noviceValue.node).to(.1, {
|
|
|
+scale: 1.2
|
|
|
+}).to(.1, {
|
|
|
+scale: 1
|
|
|
+}).start();
|
|
|
+this.intV = Math.round(o);
|
|
|
this.lbl_tipUp.string = "进度加满后必得" + this.intV + "元现金";
|
|
|
this.lbl_cashOut.string = "满" + this.intV + "元提现";
|
|
|
-t.progressRate >= 1 ? this.btn_addProgress.setGray(!0, !0) : this.btn_addProgress.setGray(!1, !0);
|
|
|
+e.progressRate >= 1 ? this.btn_addProgress.setGray(!0, !0) : this.btn_addProgress.setGray(!1, !0);
|
|
|
}
|
|
|
};
|
|
|
e.prototype.multiply = function(t, e) {
|
|
|
@@ -29857,7 +29921,7 @@ this.initTip();
|
|
|
};
|
|
|
e.prototype.initTip = function() {
|
|
|
this.lbl_redMoney.string = (gData.gameData.playerProp.redMoney / 100).toString();
|
|
|
-this.lbl_value.string = (gData.gameData.playerProp.redMoney / 1e6).toFixed(3) + "元";
|
|
|
+this.lbl_value.string = (gData.gameData.playerProp.redMoney / 1e6).toFixed(3);
|
|
|
if (-1 != this.curChooseIndex) {
|
|
|
var t = gData.gameData.configs.CashCfg[this.curChooseIndex];
|
|
|
if (gData.gameData.playerProp.redMoney - t.redMoney >= 0) {
|