|
|
@@ -16888,8 +16888,8 @@ e.prototype.nextStep = function() {
|
|
|
this.crtStep++;
|
|
|
this.crtGuide = this.guides[this.crtStep];
|
|
|
mk.guide.curGuideIdStr = gData.guideData.crtID + "_" + this.crtStep;
|
|
|
-mk.data.sendDataEvent(s.DataEventId.guide, "新手引导第" + gData.guideData.crtID + "_" + this.crtStep + "步完成");
|
|
|
this.updateGuide();
|
|
|
+mk.data.sendDataEvent(s.DataEventId.guide, "新手引导第" + gData.guideData.crtID + "_" + this.crtStep + "步完成");
|
|
|
};
|
|
|
e.prototype.updateGuide = function() {
|
|
|
var t = this;
|
|
|
@@ -17078,14 +17078,15 @@ this.node_dialog.opacity = 0;
|
|
|
e.prototype.close = function() {
|
|
|
mk.guide.close();
|
|
|
mk.guide.curGuideIdStr = null;
|
|
|
-mk.guide.continueCallBack = null;
|
|
|
+mk.guide.continueCallBack && (mk.guide.continueCallBack = null);
|
|
|
+console.log("closeGuide ======");
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
};
|
|
|
e.prototype.clickSkip = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
+this.close();
|
|
|
mk.data.sendXYEvent("guide", "skip_" + gData.guideData.crtID + "_" + this.crtStep);
|
|
|
mk.data.sendDataEvent(s.DataEventId.guideSkip, "新手引导第" + gData.guideData.crtID + "_" + this.crtStep + "步跳过");
|
|
|
-this.close();
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
this.node_click.off(cc.Node.EventType.TOUCH_START, this.clickNodeClick, this);
|
|
|
@@ -17799,8 +17800,10 @@ r.default.checkUpdate();
|
|
|
};
|
|
|
e.OnUpdateSucceed = function() {
|
|
|
console.log("更新成功");
|
|
|
+setTimeout(function() {
|
|
|
cc.audioEngine.stopAll();
|
|
|
cc.game.restart();
|
|
|
+}, 500);
|
|
|
};
|
|
|
r.default.init(this.manifest, e);
|
|
|
};
|
|
|
@@ -20063,8 +20066,10 @@ jsb.fileUtils.removeDirectory(r);
|
|
|
}
|
|
|
cc.sys.localStorage.removeItem("HotUpdateSearchPaths");
|
|
|
jsb.fileUtils.setSearchPaths(o);
|
|
|
+setTimeout(function() {
|
|
|
cc.audioEngine.stopAll();
|
|
|
cc.game.restart();
|
|
|
+}, 500);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -23896,7 +23901,7 @@ var t = this;
|
|
|
this.list_data = gData.plantData.productArr;
|
|
|
this.tableView.node.emit("srollview-init", this.list_data);
|
|
|
gData.plantData.productIndex > 1 && cc.tween(this).delay(.2).call(function() {
|
|
|
-t.list_data.length > 4 && (gData.plantData.productIndex <= t.list_data.length - 4 ? t.tableView.contentMoveByIndex(gData.plantData.productIndex - 1, .2) : t.tableView.contentMoveByIndex(t.list_data.length - 4, .2, !0));
|
|
|
+t.list_data.length > 4 && (gData.plantData.productIndex <= t.list_data.length - 4 ? t.tableView.contentMoveByIndex(gData.plantData.productIndex - 1, .2) : t.tableView.moveButtom());
|
|
|
}).start();
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {};
|
|
|
@@ -24497,31 +24502,22 @@ e.node_complete = null;
|
|
|
e.node_Uncomplete = null;
|
|
|
e.node_1 = null;
|
|
|
e.node_2 = null;
|
|
|
+e.btnCanClick = !0;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onEnable = function() {
|
|
|
-var t = this, e = !1;
|
|
|
+var t = this;
|
|
|
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.getProp(r.GameProp.guideID);
|
|
|
+if (gData.gameData.playerProp.userFarmTaskInfo && e >= 11) {
|
|
|
var a = gData.gameData.playerProp.userFarmTaskInfo.completeCount, o = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
|
|
|
if (o - a <= 10) {
|
|
|
if (o > a) {
|
|
|
this.lbl_taskTimes.string = (o - a).toString();
|
|
|
this.node_Uncomplete.active = !0;
|
|
|
this.node_complete.active = !1;
|
|
|
-e = !0;
|
|
|
-this.scheduleOnce(function() {
|
|
|
-var t = gData.gameData.playerProp.orderData, e = t.orderTaskList, a = gData.gameData.playerProp.copyOrderData;
|
|
|
-if (t && e && a) {
|
|
|
-for (var o = 0, n = 0; n != e.length; ++n) o += e[n].taskCount - a[n];
|
|
|
-if ("1" == gData.gameData.funOpenData[11]) {
|
|
|
-var i = "<color=8A4312>再生产" + o + "次,就可以收获\n啦,完成订单立即<color=ff0000>提现</color>!</color>";
|
|
|
-mk.guide.open(11, i);
|
|
|
-}
|
|
|
-}
|
|
|
-}, .5);
|
|
|
} else {
|
|
|
this.node_Uncomplete.active = !1;
|
|
|
this.node_complete.active = !0;
|
|
|
@@ -24542,7 +24538,25 @@ this.node_1.active = !1;
|
|
|
this.node_2.active = !0;
|
|
|
}
|
|
|
}
|
|
|
-e ? gData.gameData.getProp(r.GameProp.guideID) >= 11 && mk.ad.showNative() : mk.ad.showNative();
|
|
|
+if (e >= 11) mk.ad.showNative(); else {
|
|
|
+this.btnCanClick = !1;
|
|
|
+this.lbl_taskTimes.string = "1";
|
|
|
+this.node_Uncomplete.active = !0;
|
|
|
+this.node_complete.active = !1;
|
|
|
+this.sp_taskProgress.fillRange = .99;
|
|
|
+this.lbl_progress.string = "99%";
|
|
|
+this.scheduleOnce(function() {
|
|
|
+t.btnCanClick = !0;
|
|
|
+var e = gData.gameData.playerProp.orderData, a = e.orderTaskList, o = gData.gameData.playerProp.copyOrderData;
|
|
|
+if (e && a && o) {
|
|
|
+for (var n = 0, i = 0; i != a.length; ++i) n += a[i].taskCount - o[i];
|
|
|
+if ("1" == gData.gameData.funOpenData[11]) {
|
|
|
+var r = "<color=8A4312>再生产" + n + "次,就可以收获\n啦,完成订单立即<color=ff0000>提现</color>!</color>";
|
|
|
+mk.guide.open(11, r);
|
|
|
+}
|
|
|
+}
|
|
|
+}, .2);
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
if (gData.gameData.init_productTask) {
|
|
|
@@ -24570,6 +24584,7 @@ gData.gameData.init_productTask = !1;
|
|
|
e.prototype.clickVideoBtn = function() {
|
|
|
var t = this;
|
|
|
mk.audio.playEffect("button");
|
|
|
+if (this.btnCanClick) {
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
mk.ad.videoAdType = r.VideoAdType.video_init_16;
|
|
|
mk.ad.watchAd(function(e) {
|
|
|
@@ -24588,6 +24603,7 @@ mk.data.sendXYEvent("guide_production", "首次领取生产次数");
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.addTimes = function() {
|
|
|
var t = parseInt(gData.gameData.configs.ServerConfig.ProductionAd);
|
|
|
@@ -28987,7 +29003,7 @@ this.scrollView.scrollToOffset(new cc.Vec2(o, this.content.y), e);
|
|
|
};
|
|
|
e.prototype.moveButtom = function() {
|
|
|
var t = this.scrollView.getMaxScrollOffset();
|
|
|
-this.scrollView.scrollToOffset(t, .1);
|
|
|
+this.scrollView.scrollToOffset(t, .2);
|
|
|
};
|
|
|
e.prototype.getItemByIndexAndCount = function(t, e) {
|
|
|
for (var a = [], o = 0; o != this.itemArr.length; ++o) for (var n = t; n != t + e; ++n) if (this.itemArr[o].index == n) {
|
|
|
@@ -31343,9 +31359,8 @@ a && a();
|
|
|
};
|
|
|
e.prototype.closeAllUI = function(t) {
|
|
|
void 0 === t && (t = [ "game", "guide" ]);
|
|
|
-for (var e in this.curOnPanelDic) if (-1 == this.isPanelClosingArr.indexOf(e)) {
|
|
|
+for (var e in this.curOnPanelDic) if (!(t && t.length > 0 && -1 != t.indexOf(e)) && -1 == this.isPanelClosingArr.indexOf(e)) {
|
|
|
this.isPanelClosingArr.push(e);
|
|
|
-if (!(t && t.length > 0 && -1 != t.indexOf(e))) {
|
|
|
var a = this.getCurOnPanel(e);
|
|
|
if (a) {
|
|
|
var o = a.getComponent("EffectOpenAndClose");
|
|
|
@@ -31353,7 +31368,6 @@ o && o.isOpenCloseEffect ? o.hideEffect(this.destroyNode.bind(this, a, e)) : thi
|
|
|
mk.event.emit("close-panel", e);
|
|
|
}
|
|
|
}
|
|
|
-}
|
|
|
mk.ad.destroyNativeAd();
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|