|
|
@@ -1977,12 +1977,12 @@ proxy: null,
|
|
|
ctor: function() {
|
|
|
console.log("ATSDKMgrJS.js created! ");
|
|
|
},
|
|
|
-initATJSSDK: function(t, e) {
|
|
|
+initATJSSDK: function(t, e, o) {
|
|
|
ATJSSDK.setLogDebug(!0);
|
|
|
-ATJSSDK.initCustomMap({
|
|
|
-appCustomKey1: "appCustomValue1",
|
|
|
-appCustomKey2: "appCustomValue2"
|
|
|
-});
|
|
|
+var n = {
|
|
|
+channel: o
|
|
|
+};
|
|
|
+ATJSSDK.initCustomMap(n);
|
|
|
ATJSSDK.setPlacementCustomMap(this.placementID(), {
|
|
|
placementCustomKey1: "placementCustomValue1",
|
|
|
placementCustomKey2: "placementCustomValue2"
|
|
|
@@ -2041,7 +2041,7 @@ if (cc.sys.isNative) {
|
|
|
this.getAdvertiseChannel();
|
|
|
window.ATJSSDK.setLogDebug(!0);
|
|
|
cc.ATSDKMgrJS.proxy = this;
|
|
|
-cc.ATSDKMgrJS.initATJSSDK(o.topon_android_appId, o.topon_android_appSecret);
|
|
|
+cc.ATSDKMgrJS.initATJSSDK(o.topon_android_appId, o.topon_android_appSecret, gData.appData.umengChannel);
|
|
|
d.ATRewardVideo.getInstance().init();
|
|
|
u.ATNative.getInstance().init();
|
|
|
p.default.getInstance().init();
|
|
|
@@ -4750,24 +4750,11 @@ var s = t("../../../mk/system/JsbSystem"), l = t("../../component/SetGray"), p =
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
-e.txtBigNum = null;
|
|
|
-e.txtAddEft = null;
|
|
|
-e.txtTipAd = null;
|
|
|
-e.txtBigDelta = null;
|
|
|
-e.txtBigTask = null;
|
|
|
e.txtRemaindAdNum = null;
|
|
|
e.blassingBagItem = null;
|
|
|
e.itemContent = null;
|
|
|
-e.btnCash = null;
|
|
|
e.btnAd = null;
|
|
|
-e.aniBigAdBtn = null;
|
|
|
e.adIcon = null;
|
|
|
-e.aniBtnAd = null;
|
|
|
-e.rbOpenBtn = null;
|
|
|
-e.nodeRb = null;
|
|
|
-e.txtRbNum = null;
|
|
|
-e.testNode = null;
|
|
|
-e.inputBox = null;
|
|
|
e.node_xiabiao = null;
|
|
|
e.tableview = null;
|
|
|
e.video_btn = null;
|
|
|
@@ -4782,12 +4769,9 @@ e.curValue = 0;
|
|
|
e.curTime = 0;
|
|
|
e.totalTime = 0;
|
|
|
e.lastNum = 0;
|
|
|
-e.canOpen = !0;
|
|
|
return e;
|
|
|
}
|
|
|
-e.prototype.onLoad = function() {
|
|
|
-this.testNode.active = 1 == gData.gameData.configs.ServerConfig.VideoRedBagEmpty;
|
|
|
-};
|
|
|
+e.prototype.onLoad = function() {};
|
|
|
e.prototype.onEnable = function() {
|
|
|
this.isPlayAni = !1;
|
|
|
this.isPlayInitAni = !0;
|
|
|
@@ -4868,8 +4852,7 @@ console.log("---\x3eUpdate Time: " + t + " delta: " + this.delta + " curValue: "
|
|
|
this.isPlayAni = !0;
|
|
|
};
|
|
|
e.prototype.PlayMoneyAniUpdate = function(t) {
|
|
|
-if (this.isPlayAni) {
|
|
|
-if (this.curTime < this.totalTime) {
|
|
|
+if (this.isPlayAni) if (this.curTime < this.totalTime) {
|
|
|
this.curTime += t;
|
|
|
this.curValue += this.delta * t;
|
|
|
if (this.curValue >= this.targetProgress) {
|
|
|
@@ -4884,8 +4867,6 @@ this.curTime = this.totalTime;
|
|
|
this.curValue = this.targetProgress;
|
|
|
this.lastNum = this.targetProgress;
|
|
|
}
|
|
|
-this.txtBigNum.string = this.curValue.toFixed(2) + "元";
|
|
|
-}
|
|
|
};
|
|
|
e.prototype.Click_AdProgressBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
@@ -4941,31 +4922,6 @@ return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
-e.prototype.Click_CashOpenBtn = function() {
|
|
|
-return r(this, void 0, void 0, function() {
|
|
|
-var t = this;
|
|
|
-return c(this, function() {
|
|
|
-mk.audio.playEffect("button");
|
|
|
-if (!this.canOpen) return [ 2 ];
|
|
|
-this.canOpen = !1;
|
|
|
-if (1 == this.rbPanelType) ; else {
|
|
|
-this.rbOpenBtn.active = !1;
|
|
|
-this.aniBtnAd.node.active = !0;
|
|
|
-this.aniBtnAd.setCurrentTime(0);
|
|
|
-this.aniBtnAd.play();
|
|
|
-setTimeout(function() {
|
|
|
-t.aniBtnAd.stop();
|
|
|
-t.aniBtnAd.node.active = !1;
|
|
|
-t.rbOpenBtn.active = !0;
|
|
|
-t.nodeRb.active = !1;
|
|
|
-gData.blessingBag.HttpCashTask();
|
|
|
-t.canOpen = !0;
|
|
|
-}, 1e3);
|
|
|
-}
|
|
|
-return [ 2 ];
|
|
|
-});
|
|
|
-});
|
|
|
-};
|
|
|
e.prototype.clickHelpCallBack = function() {
|
|
|
gData.help.des = "1、观看大量视频可以快速增加提现进度。\n\n2、提现进度到100%,可以提现对应档位的红包。\n\n3、余额累计满一定金额,可以申请大额提现。";
|
|
|
};
|
|
|
@@ -4973,32 +4929,15 @@ e.prototype.Click_InitData = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
gData.blessingBag.HttpInitAdRbData();
|
|
|
};
|
|
|
-e.prototype.EditBox_End = function() {
|
|
|
-console.log("--\x3eInput:", this.inputBox.string);
|
|
|
-gData.blessingBag.adsource_id_value = this.inputBox.string;
|
|
|
-};
|
|
|
e.prototype.onClickClose = function() {};
|
|
|
e.prototype.onDisable = function() {
|
|
|
gData.adData.checkShowFullInter(4);
|
|
|
};
|
|
|
-i([ f(cc.Label) ], e.prototype, "txtBigNum", void 0);
|
|
|
-i([ f(cc.Label) ], e.prototype, "txtAddEft", void 0);
|
|
|
-i([ f(cc.RichText) ], e.prototype, "txtTipAd", void 0);
|
|
|
-i([ f(cc.RichText) ], e.prototype, "txtBigDelta", void 0);
|
|
|
-i([ f(cc.RichText) ], e.prototype, "txtBigTask", void 0);
|
|
|
i([ f(cc.RichText) ], e.prototype, "txtRemaindAdNum", void 0);
|
|
|
i([ f(cc.Prefab) ], e.prototype, "blassingBagItem", void 0);
|
|
|
i([ f(cc.Node) ], e.prototype, "itemContent", void 0);
|
|
|
-i([ f(cc.Node) ], e.prototype, "btnCash", void 0);
|
|
|
i([ f(cc.Node) ], e.prototype, "btnAd", void 0);
|
|
|
-i([ f(cc.Animation) ], e.prototype, "aniBigAdBtn", void 0);
|
|
|
i([ f(cc.Node) ], e.prototype, "adIcon", void 0);
|
|
|
-i([ f(cc.Animation) ], e.prototype, "aniBtnAd", void 0);
|
|
|
-i([ f(cc.Node) ], e.prototype, "rbOpenBtn", void 0);
|
|
|
-i([ f(cc.Node) ], e.prototype, "nodeRb", void 0);
|
|
|
-i([ f(cc.Label) ], e.prototype, "txtRbNum", void 0);
|
|
|
-i([ f(cc.Node) ], e.prototype, "testNode", void 0);
|
|
|
-i([ f(cc.EditBox) ], e.prototype, "inputBox", void 0);
|
|
|
i([ f(cc.Node) ], e.prototype, "node_xiabiao", void 0);
|
|
|
i([ f(p.default) ], e.prototype, "tableview", void 0);
|
|
|
i([ f(cc.Button) ], e.prototype, "video_btn", void 0);
|
|
|
@@ -6408,7 +6347,7 @@ return r(this, void 0, void 0, function() {
|
|
|
return c(this, function(t) {
|
|
|
switch (t.label) {
|
|
|
case 0:
|
|
|
-return [ 4, mk.time.WaitForSeconds(3) ];
|
|
|
+return [ 4, mk.time.WaitForSeconds(1.5) ];
|
|
|
|
|
|
case 1:
|
|
|
t.sent();
|
|
|
@@ -6772,7 +6711,7 @@ e.prototype.clickVideoBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
};
|
|
|
i([ s({
|
|
|
displayName: "植物图标",
|
|
|
@@ -8510,7 +8449,7 @@ void 0 === t && (t = !0);
|
|
|
this.counting = !1;
|
|
|
this.normalGroup.active = !1;
|
|
|
var e = !1;
|
|
|
-if (gData.gameData.playerProp.completeFarmTaskTimes >= 1 && Math.random() < .2) if (this.productConfig.tab == l.ProductType.nzw) {
|
|
|
+if (gData.gameData.playerProp.completeFarmTaskTimes >= 1 && Math.random() < parseFloat(gData.gameData.configs.ServerConfig.StopProduction)) if (this.productConfig.tab == l.ProductType.nzw) {
|
|
|
if (gData.gameData.RawInsectCurArr[0] < parseInt(gData.gameData.RawInsectArr[0])) {
|
|
|
e = !0;
|
|
|
gData.gameData.RawInsectCurArr[0]++;
|
|
|
@@ -11380,7 +11319,7 @@ this.scroll_view.node.emit("srollview-init", n);
|
|
|
}
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
};
|
|
|
i([ s({
|
|
|
displayName: "滚动视图",
|
|
|
@@ -11544,7 +11483,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"), N = t("../../before/main/PastureSystem"), F = 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"), N = t("../../before/view/data/ADClearSickData"), F = t("../../before/main/PastureSystem"), x = t("../../before/main/FactorySystem"), M = t("./module/FarmMapData"), j = t("./module/GradeRewardData"), B = t("./module/WalletCashOutData"), L = t("./module/LineUpUIData"), E = function() {
|
|
|
function t() {
|
|
|
this.init();
|
|
|
}
|
|
|
@@ -11576,14 +11515,14 @@ 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 N.default();
|
|
|
-this.factorySystem = new F.default();
|
|
|
+this.adClearSickData = new N.default();
|
|
|
+this.pastureSystem = new F.default();
|
|
|
+this.factorySystem = new x.default();
|
|
|
this.farmSystem = new R.FarmSystem();
|
|
|
this.farmMapData = new M.FarmMapData();
|
|
|
this.farmGradeData = new j.GradeRewardData();
|
|
|
this.walletCashOutData = new B.WalletCashOutData();
|
|
|
-this.lineUpUIData = new E.LineUpUIData();
|
|
|
+this.lineUpUIData = new L.LineUpUIData();
|
|
|
this.moduleData = new Map();
|
|
|
this.moduleData.set(n.moreGame, this.moreGame);
|
|
|
this.moduleData.set(n.turnable, this.turnable);
|
|
|
@@ -11604,7 +11543,7 @@ t[t.sign = 6] = "sign";
|
|
|
t[t.cashNormal = 7] = "cashNormal";
|
|
|
t[t.redBagCash = 8] = "redBagCash";
|
|
|
})(n = o.Fun || (o.Fun = {}));
|
|
|
-window.gData = new L();
|
|
|
+window.gData = new E();
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../before/main/FactorySystem": "FactorySystem",
|
|
|
@@ -12223,6 +12162,7 @@ return [ 3, 6 ];
|
|
|
return [ 3, 8 ];
|
|
|
|
|
|
case 1:
|
|
|
+mk.tip.pop("农场已满,无法继续生产");
|
|
|
this.checkCanHarvest() || this.checkCanClearSick() || this.checkCanSpeedUp(!0);
|
|
|
t = !1;
|
|
|
return [ 3, 8 ];
|
|
|
@@ -12276,7 +12216,10 @@ case 0:
|
|
|
if (this.playerProp.userFarmTaskInfo) {
|
|
|
t = this.playerProp.userFarmTaskInfo.completeCount;
|
|
|
e = this.playerProp.userFarmTaskInfo.taskCount;
|
|
|
-if (t >= e) return [ 2, !1 ];
|
|
|
+if (t >= e) {
|
|
|
+mk.tip.pop("任务红包进度已满,快去提现");
|
|
|
+return [ 2, !1 ];
|
|
|
+}
|
|
|
}
|
|
|
o = {};
|
|
|
return [ 4, mk.http.sendData("farmTask/updateUserFarmTaskInfo", o) ];
|
|
|
@@ -13260,6 +13203,7 @@ e.ani_add = null;
|
|
|
e.node_hand = null;
|
|
|
e.sp_gradeName = null;
|
|
|
e.ani_add2 = null;
|
|
|
+e.ani_add3 = null;
|
|
|
e.posY = 0;
|
|
|
e.lastTimeSpan = 0;
|
|
|
e.span = 0;
|
|
|
@@ -13497,8 +13441,9 @@ mk.data.sendDataEvent(l.DataEventId.button_click, "任务红包icon");
|
|
|
};
|
|
|
e.prototype.onClickPlant = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-return c(this, function(t) {
|
|
|
-switch (t.label) {
|
|
|
+var t, e, o;
|
|
|
+return c(this, function(n) {
|
|
|
+switch (n.label) {
|
|
|
case 0:
|
|
|
mk.audio.playEffect("button");
|
|
|
if (gData.gameData.leftTimes <= 0) {
|
|
|
@@ -13512,7 +13457,24 @@ return [ 2 ];
|
|
|
return [ 4, gData.gameData.makeProduct() ];
|
|
|
|
|
|
case 1:
|
|
|
-t.sent() && this.dpFlyRedAni();
|
|
|
+if (n.sent()) {
|
|
|
+if (gData.gameData.playerProp.userFarmTaskInfo) {
|
|
|
+t = gData.gameData.playerProp.userFarmTaskInfo.completeCount;
|
|
|
+e = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
|
|
|
+(o = cc.instantiate(this.ani_add3)).parent = this.ani_add3.parent;
|
|
|
+o.getComponent(cc.Label).string = "百元红包:" + t + "/" + e;
|
|
|
+cc.tween(o).call(function() {
|
|
|
+o.opacity = 255;
|
|
|
+}).by(.8, {
|
|
|
+y: 100
|
|
|
+}).to(.4, {
|
|
|
+opacity: 0
|
|
|
+}).call(function() {
|
|
|
+o.destroy();
|
|
|
+}).start();
|
|
|
+}
|
|
|
+this.dpFlyRedAni();
|
|
|
+}
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
});
|
|
|
@@ -13652,6 +13614,10 @@ i([ d({
|
|
|
type: cc.Node,
|
|
|
displayName: "增加效果文本2"
|
|
|
}) ], e.prototype, "ani_add2", void 0);
|
|
|
+i([ d({
|
|
|
+type: cc.Node,
|
|
|
+displayName: "增加效果文本3"
|
|
|
+}) ], e.prototype, "ani_add3", void 0);
|
|
|
return i([ u ], e);
|
|
|
}(cc.Component);
|
|
|
o.default = f;
|
|
|
@@ -14344,7 +14310,7 @@ gData.farmGradeData.addGradeExp(c.ExpAddType.EAT_video);
|
|
|
} else r.default.WxAuth();
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
gData.adData.checkShowFullInter(4);
|
|
|
@@ -16218,7 +16184,7 @@ e.prototype.onClickCashOutBtn = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
};
|
|
|
e.prototype.onKeyDown = function(t) {
|
|
|
if (t.keyCode == cc.macro.KEY.up) {
|
|
|
@@ -16745,7 +16711,7 @@ gData.adData.watchVideo(null);
|
|
|
});
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
};
|
|
|
i([ s(cc.Label) ], e.prototype, "lbl_tip", void 0);
|
|
|
return i([ c ], e);
|
|
|
@@ -19705,7 +19671,7 @@ r.default.setClipboard(this.lbl_redeem_code.string);
|
|
|
mk.tip.pop("复制成功");
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
mk.audio.setResumeMusic();
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {};
|
|
|
@@ -20436,6 +20402,7 @@ e.eatNode = null;
|
|
|
e.countDown = null;
|
|
|
e.showGroup = null;
|
|
|
e.idleAni = null;
|
|
|
+e.node_ani = null;
|
|
|
e.animalsArr = new Array();
|
|
|
e.configID = 0;
|
|
|
e.sortID = 0;
|
|
|
@@ -20612,9 +20579,9 @@ return [ 2 ];
|
|
|
};
|
|
|
e.prototype.onEat = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var t, e, o;
|
|
|
-return c(this, function(n) {
|
|
|
-switch (n.label) {
|
|
|
+var t, e, o, n, a, i;
|
|
|
+return c(this, function(r) {
|
|
|
+switch (r.label) {
|
|
|
case 0:
|
|
|
if (gData.gameData.leftTimes <= 0) {
|
|
|
mk.ui.openPanel("module/speedUpUI/productReward");
|
|
|
@@ -20635,11 +20602,26 @@ gData.gameData.isProducting = !1;
|
|
|
return [ 4, gData.gameData.updateNewTaskProgress() ];
|
|
|
|
|
|
case 1:
|
|
|
-if (n.sent()) {
|
|
|
-o = this.eatNode.parent.convertToWorldSpaceAR(this.eatNode.getPosition());
|
|
|
-gData.gameData.gameStyle.dpFlyRedAni(o);
|
|
|
+if (r.sent()) {
|
|
|
+if (gData.gameData.playerProp.userFarmTaskInfo) {
|
|
|
+o = gData.gameData.playerProp.userFarmTaskInfo.completeCount;
|
|
|
+n = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
|
|
|
+(a = cc.instantiate(this.node_ani)).parent = this.node_ani.parent;
|
|
|
+a.getComponent(cc.Label).string = "百元红包:" + o + "/" + n;
|
|
|
+cc.tween(a).call(function() {
|
|
|
+a.opacity = 255;
|
|
|
+}).by(.8, {
|
|
|
+y: 100
|
|
|
+}).to(.4, {
|
|
|
+opacity: 0
|
|
|
+}).call(function() {
|
|
|
+a.destroy();
|
|
|
+}).start();
|
|
|
}
|
|
|
-n.label = 2;
|
|
|
+i = this.eatNode.parent.convertToWorldSpaceAR(this.eatNode.getPosition());
|
|
|
+gData.gameData.gameStyle.dpFlyRedAni(i);
|
|
|
+}
|
|
|
+r.label = 2;
|
|
|
|
|
|
case 2:
|
|
|
return [ 2 ];
|
|
|
@@ -20697,6 +20679,10 @@ i([ g({
|
|
|
type: cc.Node,
|
|
|
tooltip: "闲置动画"
|
|
|
}) ], e.prototype, "idleAni", void 0);
|
|
|
+i([ g({
|
|
|
+type: cc.Node,
|
|
|
+tooltip: "文字动画"
|
|
|
+}) ], e.prototype, "node_ani", void 0);
|
|
|
return i([ y ], e);
|
|
|
}(cc.Component);
|
|
|
o.default = m;
|
|
|
@@ -20968,6 +20954,7 @@ e.labUnlock = null;
|
|
|
e.lbl_progress = null;
|
|
|
e.node_plant = null;
|
|
|
e.node_product = null;
|
|
|
+e.node_ani = null;
|
|
|
e.data = null;
|
|
|
return e;
|
|
|
}
|
|
|
@@ -21048,9 +21035,9 @@ return [ 2 ];
|
|
|
};
|
|
|
e.prototype.clickMake = function() {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var t;
|
|
|
-return c(this, function(e) {
|
|
|
-switch (e.label) {
|
|
|
+var t, e, o, n;
|
|
|
+return c(this, function(a) {
|
|
|
+switch (a.label) {
|
|
|
case 0:
|
|
|
mk.audio.playEffect("button");
|
|
|
if (gData.gameData.leftTimes <= 0) {
|
|
|
@@ -21069,9 +21056,24 @@ gData.gameData.setNextProduct(!1);
|
|
|
return [ 4, gData.gameData.updateNewTaskProgress(!0) ];
|
|
|
|
|
|
case 1:
|
|
|
-if (e.sent()) {
|
|
|
-t = this.nameIcon.node.parent.convertToWorldSpaceAR(this.nameIcon.node.getPosition());
|
|
|
-gData.gameData.gameStyle.dpFlyRedAni(t);
|
|
|
+if (a.sent()) {
|
|
|
+if (gData.gameData.playerProp.userFarmTaskInfo) {
|
|
|
+t = gData.gameData.playerProp.userFarmTaskInfo.completeCount;
|
|
|
+e = gData.gameData.playerProp.userFarmTaskInfo.taskCount;
|
|
|
+(o = cc.instantiate(this.node_ani)).parent = this.node_ani.parent;
|
|
|
+o.getComponent(cc.Label).string = "百元红包:" + t + "/" + e;
|
|
|
+cc.tween(o).delay(.7).call(function() {
|
|
|
+o.opacity = 255;
|
|
|
+}).by(.8, {
|
|
|
+y: 100
|
|
|
+}).to(.4, {
|
|
|
+opacity: 0
|
|
|
+}).call(function() {
|
|
|
+o.destroy();
|
|
|
+}).start();
|
|
|
+}
|
|
|
+n = this.nameIcon.node.parent.convertToWorldSpaceAR(this.nameIcon.node.getPosition());
|
|
|
+gData.gameData.gameStyle.dpFlyRedAni(n);
|
|
|
}
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
@@ -21137,6 +21139,10 @@ type: cc.Node
|
|
|
i([ d({
|
|
|
type: cc.Node
|
|
|
}) ], e.prototype, "node_product", void 0);
|
|
|
+i([ d({
|
|
|
+type: cc.Node,
|
|
|
+tooltip: "文字动画"
|
|
|
+}) ], e.prototype, "node_ani", void 0);
|
|
|
return i([ u ], e);
|
|
|
}(cc.Component);
|
|
|
o.default = h;
|
|
|
@@ -21725,7 +21731,7 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
};
|
|
|
e.prototype.clickExitBtn = function() {
|
|
|
l.default.systemExit();
|
|
|
@@ -21834,6 +21840,9 @@ this.node_complete.active = !0;
|
|
|
}
|
|
|
this.lbl_progress.string = t + "/" + e;
|
|
|
this.sp_taskProgress.fillRange = t / e;
|
|
|
+} else {
|
|
|
+this.node_1.active = !1;
|
|
|
+this.node_2.active = !0;
|
|
|
}
|
|
|
}
|
|
|
gData.gameData.init_productTask = !1;
|
|
|
@@ -21863,7 +21872,7 @@ gData.gameData.changeLeftTimes(t);
|
|
|
gData.gameData.gameStyle.playAdd(t, 2);
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
};
|
|
|
i([ l({
|
|
|
@@ -23001,7 +23010,7 @@ gData.reward.addReward();
|
|
|
mk.ui.openPanel("module/newCashUI/walletCashOut");
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
};
|
|
|
i([ f({
|
|
|
displayName: "数字组",
|
|
|
@@ -23603,7 +23612,7 @@ mk.ui.closePanel(this.node.name);
|
|
|
mk.ui.openPanel("module/redBagCash/redBagCash");
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
-this.cur_stage === s.none && mk.audio.playEffect("closeButton");
|
|
|
+this.cur_stage === s.none && mk.audio.playEffect("button");
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -25388,7 +25397,7 @@ return [ 2 ];
|
|
|
} else mk.tip.pop("没有可加速的物品");
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
};
|
|
|
i([ u(cc.Label) ], e.prototype, "lbl_reward_value", void 0);
|
|
|
i([ u(cc.Sprite) ], e.prototype, "spr_cash_out", void 0);
|
|
|
@@ -27587,7 +27596,7 @@ e.prototype.onDisable = function() {
|
|
|
mk.ui.removeRefreshEvent(this);
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
i([ l(cc.Label) ], e.prototype, "lbl_reward_value", void 0);
|
|
|
@@ -29369,7 +29378,7 @@ gData.walletCashOutData.HttpCashOut(e);
|
|
|
} else mk.tip.pop("满" + this.intV + "元提现");
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-mk.audio.playEffect("closeButton");
|
|
|
+mk.audio.playEffect("button");
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
gData.adData.checkShowFullInter(4);
|