|
|
@@ -258,8 +258,8 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-gData.adData.checkPopInter();
|
|
|
-mk.ad.showBanner();
|
|
|
+gData.adData.checkPopInter(s.InterAdType.interstitial1_click_3);
|
|
|
+mk.ad.showBanner(s.BannerAdType.banner_click_8);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -282,6 +282,7 @@ mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
if (t) {
|
|
|
gData.adClearSickData.clearSick();
|
|
|
+gData.adData.watchVideo(null);
|
|
|
var e = "";
|
|
|
switch (gData.adClearSickData.tab) {
|
|
|
case s.ProductType.nzw:
|
|
|
@@ -417,6 +418,7 @@ mk.ad.videoAdType = r.VideoAdType.video_init_11;
|
|
|
mk.ad.watchAd(function(e) {
|
|
|
mk.console.log("watchAD:" + e);
|
|
|
if (e) {
|
|
|
+gData.adData.watchVideo(null);
|
|
|
gData.adUnlockData.unlockFarm();
|
|
|
mk.ui.closePanel(t.node.name);
|
|
|
}
|
|
|
@@ -424,7 +426,7 @@ mk.ui.closePanel(t.node.name);
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-mk.ad.showBanner();
|
|
|
+mk.ad.showBanner(r.BannerAdType.banner_click_7);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -825,7 +827,7 @@ Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
o.BannerAdState = void 0;
|
|
|
-var i, r = t("../../zgSingleton"), c = t("./ATSDKMgr"), s = function(t) {
|
|
|
+var i, r = t("../../../../../game/data/GameData"), c = t("../../zgSingleton"), s = t("./ATSDKMgr"), l = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -841,7 +843,7 @@ this.ATBannerJS.init();
|
|
|
this.bannerAdState == i.Unload && this.loadBanner();
|
|
|
};
|
|
|
e.prototype.placementID = function() {
|
|
|
-return cc.sys.os === cc.sys.OS_IOS ? c.default.topon_banner_placementId : cc.sys.os === cc.sys.OS_ANDROID ? c.default.topon_banner_placementId : void 0;
|
|
|
+return cc.sys.os === cc.sys.OS_IOS ? s.default.topon_banner_placementId : cc.sys.os === cc.sys.OS_ANDROID ? s.default.topon_banner_placementId : void 0;
|
|
|
};
|
|
|
e.prototype.hasAdReady = function() {
|
|
|
return this.ATBannerJS.hasAdReady();
|
|
|
@@ -880,13 +882,15 @@ var o = JSON.parse(e);
|
|
|
gData.adData.updateADLog(7, t, o);
|
|
|
this.loadBanner();
|
|
|
};
|
|
|
-e.prototype.onBannerAdClick = function() {};
|
|
|
+e.prototype.onBannerAdClick = function() {
|
|
|
+mk.data.sendDataEvent(r.DataEventId.banner_click, mk.ad.bannerAdType);
|
|
|
+};
|
|
|
e.prototype.onBannerAdAutoRefresh = function() {};
|
|
|
e.prototype.onBannerAdAutoRefreshFail = function() {};
|
|
|
e.prototype.onBannerAdCloseButtonTapped = function() {};
|
|
|
return e;
|
|
|
-}(r.zgSingleton);
|
|
|
-o.default = s;
|
|
|
+}(c.zgSingleton);
|
|
|
+o.default = l;
|
|
|
(function(t) {
|
|
|
t[t.Unload = 0] = "Unload";
|
|
|
t[t.Loading = 1] = "Loading";
|
|
|
@@ -897,6 +901,7 @@ t[t.Close = 5] = "Close";
|
|
|
})(i = o.BannerAdState || (o.BannerAdState = {}));
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
+"../../../../../game/data/GameData": "GameData",
|
|
|
"../../zgSingleton": "zgSingleton",
|
|
|
"./ATSDKMgr": "ATSDKMgr"
|
|
|
} ],
|
|
|
@@ -1161,7 +1166,7 @@ Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
o.InterAdState = void 0;
|
|
|
-var c, s = t("../../zgSingleton"), l = t("./ATSDKMgr"), p = function(t) {
|
|
|
+var c, s = t("../../../../../game/data/GameData"), l = t("../../zgSingleton"), p = t("./ATSDKMgr"), u = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -1205,27 +1210,27 @@ e.prototype.getPlaceIDByType = function(t) {
|
|
|
var e = "";
|
|
|
switch (t) {
|
|
|
case 0:
|
|
|
-e = l.default.topon_inter_placementId;
|
|
|
+e = p.default.topon_inter_placementId;
|
|
|
break;
|
|
|
|
|
|
case 1:
|
|
|
-e = l.default.topon_fullinter_placementId;
|
|
|
+e = p.default.topon_fullinter_placementId;
|
|
|
break;
|
|
|
|
|
|
case 2:
|
|
|
-e = l.default.topon_biginter_placementId;
|
|
|
+e = p.default.topon_biginter_placementId;
|
|
|
}
|
|
|
return e;
|
|
|
};
|
|
|
e.prototype.checkPlacementIDType = function(t) {
|
|
|
if (cc.sys.os === cc.sys.OS_IOS) {
|
|
|
-if (t == l.default.topon_inter_placementId) return 0;
|
|
|
-if (t == l.default.topon_fullinter_placementId) return 1;
|
|
|
-if (t == l.default.topon_biginter_placementId) return 2;
|
|
|
+if (t == p.default.topon_inter_placementId) return 0;
|
|
|
+if (t == p.default.topon_fullinter_placementId) return 1;
|
|
|
+if (t == p.default.topon_biginter_placementId) return 2;
|
|
|
} else if (cc.sys.os === cc.sys.OS_ANDROID) {
|
|
|
-if (t == l.default.topon_inter_placementId) return 0;
|
|
|
-if (t == l.default.topon_fullinter_placementId) return 1;
|
|
|
-if (t == l.default.topon_biginter_placementId) return 2;
|
|
|
+if (t == p.default.topon_inter_placementId) return 0;
|
|
|
+if (t == p.default.topon_fullinter_placementId) return 1;
|
|
|
+if (t == p.default.topon_biginter_placementId) return 2;
|
|
|
}
|
|
|
};
|
|
|
e.prototype.hasAdReady = function(t) {
|
|
|
@@ -1267,17 +1272,23 @@ var o = this.checkPlacementIDType(t);
|
|
|
this.interAdStateArr[o] = c.Show;
|
|
|
var n = JSON.parse(e), a = 2;
|
|
|
mk.console.logSingle("ATInterstitialJS ", "onInterstitialAdShow " + o);
|
|
|
-0 == o ? a = 2 : 1 == o && (a = 9);
|
|
|
+if (0 == o) a = 2; else if (1 == o) {
|
|
|
+a = 9;
|
|
|
+mk.data.sendDataEvent(s.DataEventId.interstitial2_init, mk.ad.interFullAdType);
|
|
|
+}
|
|
|
gData.adData.updateADLog(a, t, n);
|
|
|
this.loadInter(o);
|
|
|
};
|
|
|
-e.prototype.onInterstitialAdClick = function() {};
|
|
|
+e.prototype.onInterstitialAdClick = function(t) {
|
|
|
+1 == this.checkPlacementIDType(t) ? mk.data.sendDataEvent(s.DataEventId.interstitial2_click, mk.ad.interFullAdType) : mk.data.sendDataEvent(s.DataEventId.interstitial1_click, mk.ad.interAdType);
|
|
|
+};
|
|
|
e.prototype.onInterstitialAdClose = function(t, e) {
|
|
|
var o = this.checkPlacementIDType(t);
|
|
|
this.interAdStateArr[o] = c.Close;
|
|
|
if (0 == o) ; else if (1 == o) {
|
|
|
var n = JSON.parse(e);
|
|
|
gData.adData.updateADLog(8, t, n);
|
|
|
+mk.data.sendDataEvent(s.DataEventId.interstitial2_end, mk.ad.interFullAdType);
|
|
|
}
|
|
|
};
|
|
|
e.prototype.onInterstitialAdFailedToPlayVideo = function(t, e) {
|
|
|
@@ -1285,8 +1296,8 @@ mk.console.logSingle("onInterstitialAdFailedToPlayVideo placementId >> ", t);
|
|
|
mk.console.logSingle("onInterstitialAdFailedToPlayVideo ", e);
|
|
|
};
|
|
|
return e;
|
|
|
-}(s.zgSingleton);
|
|
|
-o.default = p;
|
|
|
+}(l.zgSingleton);
|
|
|
+o.default = u;
|
|
|
(function(t) {
|
|
|
t[t.Unload = 0] = "Unload";
|
|
|
t[t.Loading = 1] = "Loading";
|
|
|
@@ -1297,6 +1308,7 @@ t[t.Close = 5] = "Close";
|
|
|
})(c = o.InterAdState || (o.InterAdState = {}));
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
+"../../../../../game/data/GameData": "GameData",
|
|
|
"../../zgSingleton": "zgSingleton",
|
|
|
"./ATSDKMgr": "ATSDKMgr"
|
|
|
} ],
|
|
|
@@ -2611,42 +2623,43 @@ t.prototype.setEcpmLevel = function() {
|
|
|
this.ecpmLevel = 1;
|
|
|
this.AutoRedMoneyMap.set(1, 20);
|
|
|
};
|
|
|
-t.prototype.checkShowFullInter = function(t) {
|
|
|
-var e = this.getPerByEcpm();
|
|
|
-if (Math.random() < e) switch (t) {
|
|
|
+t.prototype.checkShowFullInter = function(t, e) {
|
|
|
+void 0 === e && (e = null);
|
|
|
+var o = this.getPerByEcpm();
|
|
|
+if (Math.random() < o) switch (t) {
|
|
|
case 1:
|
|
|
if (-1 == this.FullScreenAdArr.indexOf(this.ecpmLevel.toString())) return;
|
|
|
-mk.ad.showInterAd(1);
|
|
|
+mk.ad.showInterAd(1, e);
|
|
|
break;
|
|
|
|
|
|
case 2:
|
|
|
-var o = gData.gameData.configs.ServerConfig.AdDelay.split(","), n = parseFloat(o[0]), a = 1e3 * (n + (parseFloat(o[1]) - n) * Math.random());
|
|
|
+var n = gData.gameData.configs.ServerConfig.AdDelay.split(","), a = parseFloat(n[0]), i = 1e3 * (a + (parseFloat(n[1]) - a) * Math.random());
|
|
|
setTimeout(function() {
|
|
|
-mk.ad.showInterAd(2);
|
|
|
-}, a);
|
|
|
+mk.ad.showInterAd(2, e);
|
|
|
+}, i);
|
|
|
break;
|
|
|
|
|
|
case 3:
|
|
|
-var i = gData.gameData.configs.ServerConfig.AdDelay.split(","), r = parseFloat(i[0]), c = parseFloat(i[1]), s = 1e3 * (r + (c - r) * Math.random()), l = 1e3 * (r + (c - r) * Math.random());
|
|
|
+var r = gData.gameData.configs.ServerConfig.AdDelay.split(","), c = parseFloat(r[0]), s = parseFloat(r[1]), l = 1e3 * (c + (s - c) * Math.random()), p = 1e3 * (c + (s - c) * Math.random());
|
|
|
setTimeout(function() {
|
|
|
-mk.ad.showInterAd(0);
|
|
|
+mk.ad.showInterAd(0, e);
|
|
|
setTimeout(function() {
|
|
|
-mk.ad.showInterAd(2);
|
|
|
+mk.ad.showInterAd(2, e);
|
|
|
+}, p);
|
|
|
}, l);
|
|
|
-}, s);
|
|
|
break;
|
|
|
|
|
|
case 4:
|
|
|
gData.moreGame.popNewOpenRedBag();
|
|
|
}
|
|
|
};
|
|
|
-t.prototype.checkPopInter = function() {
|
|
|
+t.prototype.checkPopInter = function(t) {
|
|
|
if (-1 != this.ABCInsertAdArr.indexOf(this.ecpmLevel.toString())) {
|
|
|
-for (var t = Math.random(), e = this.ABCInsertAdPercentArr.length, o = 0, n = 0; n < e; n++) if (t <= this.ABCInsertAdPercentArr[n]) {
|
|
|
-o = n + 2;
|
|
|
+for (var e = Math.random(), o = this.ABCInsertAdPercentArr.length, n = 0, a = 0; a < o; a++) if (e <= this.ABCInsertAdPercentArr[a]) {
|
|
|
+n = a + 2;
|
|
|
break;
|
|
|
}
|
|
|
-this.checkShowFullInter(o);
|
|
|
+this.checkShowFullInter(n, t);
|
|
|
}
|
|
|
};
|
|
|
t.prototype.checkPopCashFull = function() {
|
|
|
@@ -2717,6 +2730,9 @@ this.adSdk = null;
|
|
|
this.ifShowAd = !0;
|
|
|
this.videoAdType = n.VideoAdType.video_init_1;
|
|
|
this.videoAdcallBack = null;
|
|
|
+this.interFullAdType = n.InterFullAdType.interstitial2_init_1;
|
|
|
+this.interAdType = n.InterAdType.interstitial1_click_1;
|
|
|
+this.bannerAdType = n.BannerAdType.banner_click_1;
|
|
|
this.last_time_stamp = 0;
|
|
|
this.adSdk = t;
|
|
|
}
|
|
|
@@ -2770,8 +2786,9 @@ return !0;
|
|
|
}
|
|
|
return !1;
|
|
|
};
|
|
|
-t.prototype.showBanner = function() {
|
|
|
+t.prototype.showBanner = function(t) {
|
|
|
if (this.ifShowAd) {
|
|
|
+this.bannerAdType = t;
|
|
|
mk.console.logSingle("banner", "showBanner");
|
|
|
this.adSdk.showBanner();
|
|
|
}
|
|
|
@@ -2779,8 +2796,12 @@ this.adSdk.showBanner();
|
|
|
t.prototype.destoryBanner = function() {
|
|
|
this.ifShowAd && this.adSdk.destoryBanner();
|
|
|
};
|
|
|
-t.prototype.showInterAd = function(t) {
|
|
|
-this.ifShowAd && this.adSdk.showInter(t);
|
|
|
+t.prototype.showInterAd = function(t, e) {
|
|
|
+void 0 === e && (e = null);
|
|
|
+if (this.ifShowAd) {
|
|
|
+1 == t ? e && (this.interFullAdType = e) : e && (this.interAdType = e);
|
|
|
+this.adSdk.showInter(t);
|
|
|
+}
|
|
|
};
|
|
|
return t;
|
|
|
}();
|
|
|
@@ -2986,7 +3007,7 @@ mk.fly.PlayCoinAnim(1, 5, this.dogMove.node, "", null, -1, 2);
|
|
|
mk.ad.videoAdType = r.VideoAdType.video_init_10;
|
|
|
mk.ui.openPanel("module/newOpenRedBag/newOpenRedBag");
|
|
|
}
|
|
|
-gData.adData.checkShowFullInter(1);
|
|
|
+gData.adData.checkShowFullInter(1, r.InterFullAdType.interstitial2_init_3);
|
|
|
};
|
|
|
i([ l({
|
|
|
displayName: "bird_1",
|
|
|
@@ -3944,7 +3965,7 @@ Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
o.BlessingBagData = void 0;
|
|
|
-var c = function(t) {
|
|
|
+var c = t("../../../mk/data/Data"), s = t("../GameData"), l = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -4032,6 +4053,7 @@ return [ 4, mk.http.sendData("redMoneyVideoCash", t) ];
|
|
|
|
|
|
case 1:
|
|
|
if (0 != (e = o.sent()).errcode) return [ 2, null ];
|
|
|
+mk.data.sendDataEvent(s.DataEventId.Sundry, "福利大额提现成功");
|
|
|
this.isPlayAniUpdate = !1;
|
|
|
this.videoRbData = e.data.UserRedMoneyInfo;
|
|
|
return [ 2, e ];
|
|
|
@@ -4056,6 +4078,7 @@ mk.console.logSingle("'welFare/welFareCash", e);
|
|
|
if (0 != e.errcode) return [ 2, null ];
|
|
|
this.isPlayAniUpdate = !1;
|
|
|
this.videoRbData = e.data.userWelFareTaskInfo;
|
|
|
+mk.data.sendDataEvent(s.DataEventId.Sundry, "福利提现成功");
|
|
|
gData.receiptNotice.receip_rmb = gData.blessingBag.rbNum;
|
|
|
mk.ui.openPanel("module/newNotice/newNotice");
|
|
|
return [ 2, e ];
|
|
|
@@ -4085,11 +4108,12 @@ e.prototype.redPoint = function() {
|
|
|
return !1;
|
|
|
};
|
|
|
return e;
|
|
|
-}(t("../../../mk/data/Data").Data);
|
|
|
-o.BlessingBagData = c;
|
|
|
+}(c.Data);
|
|
|
+o.BlessingBagData = l;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
-"../../../mk/data/Data": "Data"
|
|
|
+"../../../mk/data/Data": "Data",
|
|
|
+"../GameData": "GameData"
|
|
|
} ],
|
|
|
BlessingBagItem: [ function(t, e, o) {
|
|
|
"use strict";
|
|
|
@@ -4653,7 +4677,10 @@ if (1 == gData.blessingBag.videoRbData.isVideo) gData.blessingBag.addProgress();
|
|
|
mk.ad.videoAdType = u.VideoAdType.video_init_15;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
-t && gData.blessingBag.addProgress();
|
|
|
+if (t) {
|
|
|
+gData.adData.watchVideo(null);
|
|
|
+gData.blessingBag.addProgress();
|
|
|
+}
|
|
|
});
|
|
|
}
|
|
|
console.log("---\x3eYou Click AdProgressBtn ", gData.blessingBag.videoRbData);
|
|
|
@@ -7914,13 +7941,11 @@ e.prototype.clickSpeedUp = function() {
|
|
|
mk.ui.openPanel("module/speedUpUI/speedUp");
|
|
|
};
|
|
|
e.prototype.onRipe = function() {
|
|
|
-this._state = s.FactroyState.Ripe;
|
|
|
this.data.state = s.FactroyState.Ripe;
|
|
|
gData.gameData.setFactoryDataMap(this.configID, this.data);
|
|
|
gData.gameData.addProductMakeTimesById(this.data.productID);
|
|
|
};
|
|
|
e.prototype.onSick = function() {
|
|
|
-this._state = s.FactroyState.Sick;
|
|
|
this.data.state = s.FactroyState.Sick;
|
|
|
gData.gameData.setFactoryDataMap(this.configID, this.data);
|
|
|
};
|
|
|
@@ -8000,6 +8025,9 @@ return this.factoryIcons[e];
|
|
|
t.prototype.btnMake = function() {
|
|
|
gData.gameData.nextMake.make(gData.gameData.nextCanProduct.picture);
|
|
|
};
|
|
|
+t.prototype.setHarvest = function() {
|
|
|
+for (var t = this.factoryIcons.length, e = 0; e < t; e++) this.factoryIcons[e].data.state == a.FactroyState.Producting && this.factoryIcons[e].countDown.riped();
|
|
|
+};
|
|
|
return n([ i ], t);
|
|
|
}();
|
|
|
o.default = r;
|
|
|
@@ -8902,7 +8930,6 @@ 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 ];
|
|
|
@@ -8910,7 +8937,6 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.onSick = function() {
|
|
|
-this._state = s.FarmState.Sick;
|
|
|
this.data.state = s.FarmState.Sick;
|
|
|
gData.gameData.setFarmDataMap(this.configID, this.data);
|
|
|
};
|
|
|
@@ -9274,6 +9300,7 @@ mk.audio.playEffect("button");
|
|
|
mk.ad.videoAdType = s.VideoAdType.video_init_6;
|
|
|
mk.ad.watchAd(function(e) {
|
|
|
if (e) {
|
|
|
+gData.adData.watchVideo(null);
|
|
|
gData.farmMapData.isStateChange = !0;
|
|
|
t.node_getBtn.active = !0;
|
|
|
t.node_ungetBtn.active = !1;
|
|
|
@@ -9406,7 +9433,7 @@ return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-mk.ad.showBanner();
|
|
|
+mk.ad.showBanner(c.BannerAdType.banner_click_4);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -9620,17 +9647,23 @@ this._currSelectFarm = e;
|
|
|
return e;
|
|
|
};
|
|
|
t.prototype.getCanPlantFarm = function() {
|
|
|
-for (var t = 0; t < this.farms.length; t++) if (this.farms[t] != this.currSelectFarm && this.farms[t].data.state == a.FarmState.Empty) {
|
|
|
+for (var t = this.farms.length, e = 0; e < t; e++) if (this.farms[e] != this.currSelectFarm && this.farms[e].data.state == a.FarmState.Empty) {
|
|
|
gData.gameData.nextCanProduct = gData.gameData.getRandomPlantConfig();
|
|
|
-gData.gameData.nextMake = this.farms[t];
|
|
|
-mk.console.logSingle("getCanPlantFarm ", this.farms[t].data);
|
|
|
-return this.farms[t];
|
|
|
+gData.gameData.nextMake = this.farms[e];
|
|
|
+mk.console.logSingle("getCanPlantFarm ", this.farms[e].data);
|
|
|
+return this.farms[e];
|
|
|
}
|
|
|
return null;
|
|
|
};
|
|
|
t.prototype.btnMake = function() {
|
|
|
gData.gameData.nextMake.plant(gData.gameData.nextCanProduct.picture);
|
|
|
};
|
|
|
+t.prototype.setHarvest = function() {
|
|
|
+for (var t = this.farms.length, e = 0; e < t; e++) if (this.farms[e].data.state == a.FarmState.Growing) {
|
|
|
+this.farms[e].process.onSpeed();
|
|
|
+this.farms[e].countDown.riped();
|
|
|
+}
|
|
|
+};
|
|
|
return n([ i ], t);
|
|
|
}();
|
|
|
o.FarmSystem = r;
|
|
|
@@ -10403,7 +10436,7 @@ void 0 === a && (a = null);
|
|
|
void 0 === i && (i = -1);
|
|
|
void 0 === s && (s = -1);
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var r, l, p, u, d, h, f, y, g;
|
|
|
+var r, l, p, u, d, h, f, y, g, m;
|
|
|
return c(this, function(c) {
|
|
|
switch (c.label) {
|
|
|
case 0:
|
|
|
@@ -10428,13 +10461,13 @@ l.angle = mk.math.random(-45, 45, !1);
|
|
|
d = (d = cc.v2(mk.math.random(-1, 1, !1), mk.math.random(-1, 1, !1))).normalize();
|
|
|
h = cc.v2(mk.math.random(10, 160, !1) * d.x, mk.math.random(10, 160, !1) * d.y);
|
|
|
f = new cc.Vec2(0, -300);
|
|
|
-if (o) {
|
|
|
-y = o.parent.convertToWorldSpaceAR(o.getPosition());
|
|
|
-f = this.node.convertToNodeSpaceAR(y);
|
|
|
+if (o) f = this.node.convertToNodeSpaceAR(o); else {
|
|
|
+g = (y = o).parent.convertToWorldSpaceAR(y.getPosition());
|
|
|
+f = this.node.convertToNodeSpaceAR(g);
|
|
|
}
|
|
|
-g = f.add(h);
|
|
|
+m = f.add(h);
|
|
|
l.setPosition(f);
|
|
|
-this.FlyIn(t, l, g, n, a, s);
|
|
|
+this.FlyIn(t, l, m, n, a, s);
|
|
|
c.label = 4;
|
|
|
|
|
|
case 4:
|
|
|
@@ -10480,7 +10513,9 @@ p = "Canvas/主界面层/game/node_ui/顶部个人信息/金猪币按钮/icon_zb
|
|
|
}
|
|
|
o = p;
|
|
|
}
|
|
|
-var u = (l = cc.find(o)).parent.convertToWorldSpaceAR(l.getPosition());
|
|
|
+l = cc.find(o);
|
|
|
+mk.console.logSingle("end ", o);
|
|
|
+var u = l.parent.convertToWorldSpaceAR(l.getPosition());
|
|
|
c = this.node.convertToNodeSpaceAR(u);
|
|
|
} else c = this.node.convertToNodeSpaceAR(o);
|
|
|
cc.tween(e).to(r, {
|
|
|
@@ -11064,7 +11099,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/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), m = t("./module/CashNormalData"), _ = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), D = t("./module/RedBagCashData"), w = t("./module/RedCodeData"), S = t("./module/RedeemData"), A = t("./module/MoreGameData"), k = t("./module/SettingData"), P = t("./module/GuideData"), O = t("./module/GuideWeakData"), I = t("./ConfigData"), R = t("./module/NewCashUIData"), T = t("../../before/view/data/ADUnlockData"), C = t("../../before/view/data/PlantData"), N = t("../../before/main/FarmSystem"), x = t("../../before/view/data/HarvestData"), j = t("../../before/view/data/ADClearSickData"), F = t("../../before/main/PastureSystem"), M = t("../../before/main/FactorySystem"), B = t("./module/FarmMapData"), L = t("./module/GradeRewardData"), E = t("./module/WalletCashOutData"), G = t("./module/LineUpUIData"), U = 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/PigBankData"), d = t("./module/TurnableData"), h = t("./module/SignData"), f = t("./module/FissionData"), y = t("./AdData"), g = t("./module/RewardData"), m = t("./module/CashNormalData"), _ = t("./module/ReceiptNoticeData"), v = t("./module/BlessingBagData"), b = t("./module/CashProData"), D = t("./module/RedBagCashData"), w = t("./module/RedCodeData"), S = t("./module/RedeemData"), A = t("./module/MoreGameData"), k = t("./module/SettingData"), P = t("./module/GuideData"), O = t("./module/GuideWeakData"), I = t("./ConfigData"), R = t("./module/NewCashUIData"), T = t("../../before/view/data/ADUnlockData"), C = t("../../before/view/data/PlantData"), N = t("../../before/main/FarmSystem"), x = t("../../before/view/data/HarvestData"), F = t("../../before/view/data/ADClearSickData"), j = t("../../before/main/PastureSystem"), M = t("../../before/main/FactorySystem"), B = t("./module/FarmMapData"), L = t("./module/GradeRewardData"), E = t("./module/WalletCashOutData"), G = t("./module/LineUpUIData"), U = function() {
|
|
|
function t() {
|
|
|
this.init();
|
|
|
}
|
|
|
@@ -11098,8 +11133,8 @@ this.newCashUiData = new R.NewCashUIData();
|
|
|
this.adUnlockData = new T.default();
|
|
|
this.plantData = new C.default();
|
|
|
this.harvestData = new x.default();
|
|
|
-this.adClearSickData = new j.default();
|
|
|
-this.pastureSystem = new F.default();
|
|
|
+this.adClearSickData = new F.default();
|
|
|
+this.pastureSystem = new j.default();
|
|
|
this.factorySystem = new M.default();
|
|
|
this.farmSystem = new N.FarmSystem();
|
|
|
this.farmMapData = new B.FarmMapData();
|
|
|
@@ -11412,7 +11447,7 @@ done: !0
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-o.FactroyState = o.AnimalState = o.ProductType = o.PastureState = o.FarmState = o.ExpAddType = o.VideoAdType = o.DataEventId = o.EVENT_TYPE = o.AUDIO_TYPE = o.RewardType = o.RewardState = o.GameProp = o.GameData = void 0;
|
|
|
+o.FactroyState = o.AnimalState = o.ProductType = o.PastureState = o.FarmState = o.ExpAddType = o.BannerAdType = o.InterAdType = o.InterFullAdType = o.VideoAdType = o.DataEventId = o.EVENT_TYPE = o.AUDIO_TYPE = o.RewardType = o.RewardState = o.GameProp = o.GameData = void 0;
|
|
|
var i, r = t("../../before/util/Util"), c = function() {
|
|
|
function t() {
|
|
|
this.dataFinish = !1;
|
|
|
@@ -12068,6 +12103,11 @@ this.setNextProduct();
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
+t.prototype.setHarvest = function() {
|
|
|
+gData.farmSystem.setHarvest();
|
|
|
+gData.pastureSystem.setHarvest();
|
|
|
+gData.factorySystem.setHarvest();
|
|
|
+};
|
|
|
return t;
|
|
|
}();
|
|
|
o.GameData = c;
|
|
|
@@ -12252,14 +12292,17 @@ t.button_click = "button_click";
|
|
|
t.video_init = "video_init";
|
|
|
t.video_click = "video_click";
|
|
|
t.video_end = "video_end";
|
|
|
+t.interstitial2_init = "interstitial2_init";
|
|
|
+t.interstitial2_click = "interstitial2_click";
|
|
|
+t.interstitial2_end = "interstitial2_end";
|
|
|
+t.interstitial1_click = "interstitial1_click";
|
|
|
+t.banner_click = "banner_click";
|
|
|
+t.splash_click = "splash_click";
|
|
|
t.fudaiFunction = "fudaiFunction";
|
|
|
t.hutuiFunction = "hutuiFunction";
|
|
|
-t.level = "level";
|
|
|
-t.commonWithDrawal = "commonWithDrawl";
|
|
|
-t.jarWithDrawal = "jarWithDrawal";
|
|
|
-t.signWithDrawal = "signWithDrawal";
|
|
|
t.ad_videoEcpm = "ad_video";
|
|
|
t.ad_openEcpm = "ad_open";
|
|
|
+t.Sundry = "Sundry";
|
|
|
})(o.DataEventId || (o.DataEventId = {}));
|
|
|
(function(t) {
|
|
|
t.video_init_1 = "农场加等级经验";
|
|
|
@@ -12283,6 +12326,27 @@ t.video_init_18 = "离开游戏领红包";
|
|
|
t.video_init_19 = "定时弹出红包";
|
|
|
})(o.VideoAdType || (o.VideoAdType = {}));
|
|
|
(function(t) {
|
|
|
+t.interstitial2_init_1 = "点击红包的关闭按钮";
|
|
|
+t.interstitial2_init_2 = "普通收获";
|
|
|
+t.interstitial2_init_3 = "点击鸟和狗";
|
|
|
+})(o.InterFullAdType || (o.InterFullAdType = {}));
|
|
|
+(function(t) {
|
|
|
+t.interstitial1_click_1 = "恭喜发财红包弹出后";
|
|
|
+t.interstitial1_click_2 = "恭喜获得弹窗弹出后";
|
|
|
+t.interstitial1_click_3 = "生虫/生病/停电弹出后";
|
|
|
+})(o.InterAdType || (o.InterAdType = {}));
|
|
|
+(function(t) {
|
|
|
+t.banner_click_1 = "恭喜获得弹窗弹出后";
|
|
|
+t.banner_click_2 = "任务红包";
|
|
|
+t.banner_click_3 = "恭喜发财红包";
|
|
|
+t.banner_click_4 = "图鉴";
|
|
|
+t.banner_click_5 = "全体加速";
|
|
|
+t.banner_click_6 = "收获弹窗";
|
|
|
+t.banner_click_7 = "拓建弹窗";
|
|
|
+t.banner_click_8 = "三个恢复弹窗";
|
|
|
+t.banner_click_9 = "抽奖";
|
|
|
+})(o.BannerAdType || (o.BannerAdType = {}));
|
|
|
+(function(t) {
|
|
|
t[t.EAT_video = 1] = "EAT_video";
|
|
|
t[t.EAT_harvest = 2] = "EAT_harvest";
|
|
|
})(o.ExpAddType || (o.ExpAddType = {}));
|
|
|
@@ -13221,7 +13285,7 @@ Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
o.GradeRewardData = void 0;
|
|
|
-var s = t("../../../mk/data/Data"), l = cc._decorator.ccclass, p = function(t) {
|
|
|
+var s = t("../../../mk/data/Data"), l = t("../GameData"), p = cc._decorator.ccclass, u = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -13245,6 +13309,7 @@ case 1:
|
|
|
o = n.sent();
|
|
|
mk.console.logSingle("农场等级提现数据=>", o);
|
|
|
if (0 != o.errcode) return [ 2, null ];
|
|
|
+mk.data.sendDataEvent(l.DataEventId.Sundry, "农场等级奖励提现成功");
|
|
|
this.changeExp = !0;
|
|
|
gData.gameData.gameData.farmGradeData = o.data.userFarmGrageRewardInfo;
|
|
|
gData.receiptNotice.receip_rmb = o.data.userFarmGrageRewardInfo.farmGradeRewardList[this.cashId - 1].money;
|
|
|
@@ -13283,12 +13348,13 @@ return [ 2 ];
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
-return i([ l ], e);
|
|
|
+return i([ p ], e);
|
|
|
}(s.Data);
|
|
|
-o.GradeRewardData = p;
|
|
|
+o.GradeRewardData = u;
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
-"../../../mk/data/Data": "Data"
|
|
|
+"../../../mk/data/Data": "Data",
|
|
|
+"../GameData": "GameData"
|
|
|
} ],
|
|
|
GradeRewardItem: [ function(t, e, o) {
|
|
|
"use strict";
|
|
|
@@ -13643,7 +13709,10 @@ if (!cc.sys.isNative || gData.loginData.isAuth) {
|
|
|
mk.ad.videoAdType = c.VideoAdType.video_init_1;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
-t && gData.farmGradeData.addGradeExp(c.ExpAddType.EAT_video);
|
|
|
+if (t) {
|
|
|
+gData.adData.watchVideo(null);
|
|
|
+gData.farmGradeData.addGradeExp(c.ExpAddType.EAT_video);
|
|
|
+}
|
|
|
});
|
|
|
} else r.default.WxAuth();
|
|
|
};
|
|
|
@@ -14718,7 +14787,7 @@ return r(this, void 0, void 0, function() {
|
|
|
var t;
|
|
|
return c(this, function() {
|
|
|
gData.harvestData.setToEmpty();
|
|
|
-gData.adData.checkShowFullInter(1);
|
|
|
+gData.adData.checkShowFullInter(1, l.InterFullAdType.interstitial2_init_2);
|
|
|
t = [ {
|
|
|
rewardType: 1,
|
|
|
rewardNum: 20
|
|
|
@@ -14796,7 +14865,7 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-mk.ad.showBanner();
|
|
|
+mk.ad.showBanner(l.BannerAdType.banner_click_6);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -15904,6 +15973,9 @@ n ? n++ : n = 1;
|
|
|
mk.storage.setStorage("ad_openEcpm", n);
|
|
|
n <= 300 && (n <= 50 ? mk.data.sendDataEventValue(a.DataEventId.ad_openEcpm, "ad_video_ecpm" + n, o.adsource_price) : n % 10 == 0 && mk.data.sendDataEventValue(a.DataEventId.ad_openEcpm, "ad_video_ecpm" + n, o.adsource_price));
|
|
|
};
|
|
|
+t.clickSplash = function() {
|
|
|
+mk.data.sendDataEvent(a.DataEventId.splash_click, "splash_click");
|
|
|
+};
|
|
|
t.getAliRiskDeviceToken = function() {
|
|
|
var t = "";
|
|
|
cc.sys.os == cc.sys.OS_ANDROID ? t = this.callStaticMethod(this._JSB_ANDROID_PATH, "getAliDeviceToken", "()Ljava/lang/String;") : cc.sys.os == cc.sys.OS_IOS && (t = this.callStaticMethod("AppController", "openWx", ""));
|
|
|
@@ -19197,6 +19269,7 @@ gData.moreGame.init_newOpenRedBag = !1;
|
|
|
this.showElectUI();
|
|
|
}
|
|
|
this.showChangePart();
|
|
|
+this.initCashOutStyle(gData.gameData.gameData.redMoney);
|
|
|
};
|
|
|
e.prototype.showElectUI = function() {
|
|
|
this.sendRecommendList();
|
|
|
@@ -19226,8 +19299,8 @@ gData.turnable.adData = null;
|
|
|
}
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-gData.adData.checkPopInter();
|
|
|
-mk.ad.showBanner();
|
|
|
+gData.adData.checkPopInter(u.InterAdType.interstitial1_click_1);
|
|
|
+mk.ad.showBanner(u.BannerAdType.banner_click_3);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -19271,7 +19344,7 @@ t && gData.adData.watchVideo(p.AdFun.bubble);
|
|
|
});
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
-gData.adData.checkShowFullInter(1);
|
|
|
+gData.adData.checkShowFullInter(1, u.InterFullAdType.interstitial2_init_1);
|
|
|
};
|
|
|
e.prototype.creatorDownLoadTask = function() {
|
|
|
if (!this.cool) {
|
|
|
@@ -19858,13 +19931,11 @@ e.prototype.clickSpeedUp = function() {
|
|
|
mk.ui.openPanel("module/speedUpUI/speedUp");
|
|
|
};
|
|
|
e.prototype.onRipe = function() {
|
|
|
-this._state = s.PastureState.Ripe;
|
|
|
this.data.state = s.PastureState.Ripe;
|
|
|
gData.gameData.setPastureDataMap(this.configID, this.data);
|
|
|
gData.gameData.addProductMakeTimesById(this.data.productID);
|
|
|
};
|
|
|
e.prototype.onSick = function() {
|
|
|
-this._state = s.PastureState.Sick;
|
|
|
this.data.state = s.PastureState.Sick;
|
|
|
gData.gameData.setPastureDataMap(this.configID, this.data);
|
|
|
};
|
|
|
@@ -19949,6 +20020,9 @@ return null;
|
|
|
t.prototype.btnMake = function() {
|
|
|
gData.gameData.nextMake.onEat();
|
|
|
};
|
|
|
+t.prototype.setHarvest = function() {
|
|
|
+for (var t = this.pastureIcons.length, e = 0; e < t; e++) this.pastureIcons[e].data.state == a.PastureState.Growing && this.pastureIcons[e].countDown.riped();
|
|
|
+};
|
|
|
return n([ r ], t);
|
|
|
}();
|
|
|
o.default = c;
|
|
|
@@ -20318,7 +20392,6 @@ this.lbl_deposit.string = t.toFixed(2) + "元";
|
|
|
e.prototype.clickCashOP = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
if (gData.gameData.gameData.isWithdrawable) if (gData.gameData.gameData.piggyBank < gData.pigbank.cash_min_limit) mk.tip.pop("满" + (gData.pigbank.cash_min_limit / 100).toFixed(2) + "元可提现"); else if (gData.loginData.isAuth) {
|
|
|
-mk.data.sendDataEvent(l.DataEventId.jarWithDrawal, "存钱罐提现成功");
|
|
|
gData.pigbank.cashOP();
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
} else s.default.WxAuth(); else mk.tip.pop("明日可提现");
|
|
|
@@ -21198,7 +21271,10 @@ mk.audio.playEffect("button");
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
mk.ad.videoAdType = r.VideoAdType.video_init_16;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
-t && gData.gameData.changeLeftTimes(parseInt(gData.gameData.configs.ServerConfig.ProductionAd));
|
|
|
+if (t) {
|
|
|
+gData.adData.watchVideo(null);
|
|
|
+gData.gameData.changeLeftTimes(parseInt(gData.gameData.configs.ServerConfig.ProductionAd));
|
|
|
+}
|
|
|
});
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
@@ -22020,7 +22096,7 @@ e.prototype.clickGuide = function(t) {
|
|
|
};
|
|
|
e.prototype.initStyle = function(t) {
|
|
|
this.item_data = t;
|
|
|
-this.lbl_red_value.string = "" + this.item_data.type_value;
|
|
|
+this.lbl_red_value.string = "" + this.item_data.redMoney;
|
|
|
var e = this.item_data.money / 100;
|
|
|
e = e > 1 ? e : parseFloat(e.toFixed(2));
|
|
|
this.lbl_rmb_value.string = e + "元";
|
|
|
@@ -22040,7 +22116,7 @@ this.node_unlock.active = !0;
|
|
|
};
|
|
|
e.prototype.clickCashOP = function() {
|
|
|
if (this.item_data.index > gData.redBagCash.cash_bar + 1) mk.tip.pop("请按顺序提现"); else {
|
|
|
-mk.data.sendDataEvent(s.DataEventId.commonWithDrawal, "常规提现-红包币提现成功");
|
|
|
+mk.data.sendDataEvent(s.DataEventId.Sundry, "红包币提现成功");
|
|
|
var t = gData.gameData.getProp(s.GameProp.cashTimes);
|
|
|
gData.gameData.setProp(s.GameProp.cashTimes, ++t);
|
|
|
t < 4 && mk.data.sendXYEvent("cash_" + t, "第" + t + "次提现");
|
|
|
@@ -22630,7 +22706,6 @@ e.isCanCash = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.start = function() {
|
|
|
-mk.ad.showBanner();
|
|
|
this.maxNum = gData.gameData.gameData.userFarmTaskInfo.taskCount;
|
|
|
this.isShowNewTask = gData.gameData.init_redBagTask;
|
|
|
if (this.isShowNewTask) this.showNewTaskUI(); else {
|
|
|
@@ -22648,7 +22723,7 @@ gData.gameData.init_redBagTask = !1;
|
|
|
gData.gameData.setProp(p.GameProp.redBagTaskRefresh, gData.gameData.init_redBagTask);
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-mk.ad.showBanner();
|
|
|
+mk.ad.showBanner(p.BannerAdType.banner_click_2);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -22775,6 +22850,7 @@ this.showNewTaskUI();
|
|
|
this.isShowNewTask = !0;
|
|
|
gData.receiptNotice.receip_rmb = e.data.cashMoney;
|
|
|
mk.ui.openPanel("module/newNotice/newNotice");
|
|
|
+mk.data.sendDataEvent(p.DataEventId.Sundry, "任务红包提现成功");
|
|
|
gData.adData.checkPopCashFull();
|
|
|
return [ 2 ];
|
|
|
}
|
|
|
@@ -23721,13 +23797,12 @@ this.lbl_reward_value.string = "0";
|
|
|
this.lbl_reward_num.string = "x0";
|
|
|
};
|
|
|
e.prototype.start = function() {
|
|
|
-mk.ad.showBanner();
|
|
|
this.initLid();
|
|
|
this.initCashOutStyle(gData.gameData.gameData.redMoney);
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-gData.adData.checkPopInter();
|
|
|
-mk.ad.showBanner();
|
|
|
+gData.adData.checkPopInter(p.InterAdType.interstitial1_click_2);
|
|
|
+mk.ad.showBanner(p.BannerAdType.banner_click_1);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -23860,7 +23935,8 @@ return [ 2 ];
|
|
|
};
|
|
|
e.prototype.clickGetReward = function() {
|
|
|
cc.log("获取奖励:", gData.reward.data);
|
|
|
-gData.reward.flyCoinAnim(this.node_hb);
|
|
|
+var t = this.node_hb.parent.convertToWorldSpaceAR(this.node_hb.getPosition());
|
|
|
+gData.reward.flyCoinAnim(t);
|
|
|
if (gData.reward.callback) {
|
|
|
gData.reward.callback();
|
|
|
gData.reward.callback = null;
|
|
|
@@ -25437,7 +25513,7 @@ mk.ad.watchAd(function(e) {
|
|
|
mk.console.log("watchAD:" + e);
|
|
|
if (e) {
|
|
|
gData.adData.watchVideo(c.AdFun.sign);
|
|
|
-gData.sign.c_sign[t].rewardType === s.RewardType.rmb && mk.data.sendDataEvent(s.DataEventId.signWithDrawal, "签到提现成功");
|
|
|
+gData.sign.c_sign[t].rewardType === s.RewardType.rmb && mk.data.sendDataEvent(s.DataEventId.Sundry, "签到提现成功");
|
|
|
mk.ad.destroyNativeAd();
|
|
|
}
|
|
|
});
|
|
|
@@ -25520,7 +25596,7 @@ e.prototype.start = function() {
|
|
|
this.initCashOutStyle(gData.gameData.gameData.redMoney);
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
-mk.ad.showBanner();
|
|
|
+mk.ad.showBanner(r.BannerAdType.banner_click_5);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
mk.ad.destoryBanner();
|
|
|
@@ -25548,9 +25624,17 @@ gData.reward.addReward();
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
};
|
|
|
e.prototype.clickWatchVideoBtn = function() {
|
|
|
+var t = this;
|
|
|
mk.audio.playEffect("button");
|
|
|
mk.ad.videoAdType = r.VideoAdType.video_init_14;
|
|
|
-mk.ad.watchAd(function() {});
|
|
|
+mk.ad.watchAd(function(e) {
|
|
|
+if (e) {
|
|
|
+gData.adData.watchVideo(null);
|
|
|
+gData.gameData.setHarvest();
|
|
|
+mk.ui.closePanel(t.node.name);
|
|
|
+mk.tip.pop("加速成功!");
|
|
|
+}
|
|
|
+});
|
|
|
};
|
|
|
e.prototype.clickCloseBtn = function() {
|
|
|
mk.audio.playEffect("closeButton");
|
|
|
@@ -27710,7 +27794,7 @@ return i > 3 && r && Object.defineProperty(e, o, r), r;
|
|
|
Object.defineProperty(o, "__esModule", {
|
|
|
value: !0
|
|
|
});
|
|
|
-var r = cc._decorator, c = r.ccclass, s = r.property, l = function(t) {
|
|
|
+var r = t("../../data/GameData"), c = cc._decorator, s = c.ccclass, l = c.property, p = function(t) {
|
|
|
a(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
@@ -27722,7 +27806,7 @@ return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {};
|
|
|
e.prototype.start = function() {
|
|
|
-mk.ad.showBanner();
|
|
|
+mk.ad.showBanner(r.BannerAdType.banner_click_9);
|
|
|
this.initCashOutStyle(gData.gameData.gameData.redMoney);
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
@@ -27732,14 +27816,14 @@ e.prototype.initCashOutStyle = function(t) {
|
|
|
void 0 === t && (t = 0);
|
|
|
var e = gData.redBagCash.cash_bar, o = gData.redBagCash.getItemDataByIndex(e);
|
|
|
if (o) {
|
|
|
-var n = t > o.type_value ? o.type_value : t;
|
|
|
+var n = t > o.redMoney ? o.redMoney : t;
|
|
|
this.lbl_reward_value.string = o.money / 100 + "元";
|
|
|
-this.lbl_progress.string = n + "/" + o.type_value;
|
|
|
-var a = n / o.type_value >= 1 ? 1 : n / o.type_value;
|
|
|
+this.lbl_progress.string = n + "/" + o.redMoney;
|
|
|
+var a = n / o.redMoney >= 1 ? 1 : n / o.redMoney;
|
|
|
cc.tween(this.spr_cash_out).to(a, {
|
|
|
fillRange: a
|
|
|
}).start();
|
|
|
-t >= o.type_value ? this.node_cash.play() : this.node_cash.stop();
|
|
|
+t >= o.redMoney ? this.node_cash.play() : this.node_cash.stop();
|
|
|
}
|
|
|
};
|
|
|
e.prototype.clickCashOut = function() {
|
|
|
@@ -27751,15 +27835,17 @@ e.prototype.onClickClose = function() {
|
|
|
mk.audio.playEffect("closeButton");
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
-i([ s(cc.Label) ], e.prototype, "lbl_reward_value", void 0);
|
|
|
-i([ s(cc.Sprite) ], e.prototype, "spr_cash_out", void 0);
|
|
|
-i([ s(cc.Label) ], e.prototype, "lbl_progress", void 0);
|
|
|
-i([ s(cc.Animation) ], e.prototype, "node_cash", void 0);
|
|
|
-return i([ c ], e);
|
|
|
+i([ l(cc.Label) ], e.prototype, "lbl_reward_value", void 0);
|
|
|
+i([ l(cc.Sprite) ], e.prototype, "spr_cash_out", void 0);
|
|
|
+i([ l(cc.Label) ], e.prototype, "lbl_progress", void 0);
|
|
|
+i([ l(cc.Animation) ], e.prototype, "node_cash", void 0);
|
|
|
+return i([ s ], e);
|
|
|
}(cc.Component);
|
|
|
-o.default = l;
|
|
|
+o.default = p;
|
|
|
cc._RF.pop();
|
|
|
-}, {} ],
|
|
|
+}, {
|
|
|
+"../../data/GameData": "GameData"
|
|
|
+} ],
|
|
|
Turnable: [ function(t, e, o) {
|
|
|
"use strict";
|
|
|
cc._RF.push(e, "c5972Si4H1MMp7ugnferq77", "Turnable");
|
|
|
@@ -29387,12 +29473,12 @@ this.btn_cashOut.setGray(!1);
|
|
|
this.isCanCash = !1;
|
|
|
this.btn_cashOut.setGray(!0);
|
|
|
}
|
|
|
-var e = t.money / 100, o = (gData.gameData.gameData.redMoney / 1e4).toFixed(2) + "元";
|
|
|
+var e = t.money / 100, o = (gData.gameData.gameData.redMoney / 1e4).toString() + "元";
|
|
|
this.lbl_tip.string = "需要" + e + "元,当前有" + o;
|
|
|
} else {
|
|
|
this.isCanCash = !1;
|
|
|
this.btn_cashOut.setGray(!0);
|
|
|
-e = t.money / 100, o = (gData.gameData.gameData.redMoney / 1e4).toFixed(2) + "元";
|
|
|
+e = t.money / 100, o = (gData.gameData.gameData.redMoney / 1e4).toString() + "元";
|
|
|
this.lbl_tip.string = "需要" + e + "元,当前只有" + o;
|
|
|
}
|
|
|
} else {
|
|
|
@@ -29447,7 +29533,10 @@ mk.audio.playEffect("button");
|
|
|
mk.ad.videoAdType = l.VideoAdType.video_init_2;
|
|
|
mk.ad.watchAd(function(t) {
|
|
|
mk.console.log("watchAD:" + t);
|
|
|
-t && gData.walletCashOutData.addProgress();
|
|
|
+if (t) {
|
|
|
+gData.adData.watchVideo(null);
|
|
|
+gData.walletCashOutData.addProgress();
|
|
|
+}
|
|
|
});
|
|
|
};
|
|
|
e.prototype.clickAddCashBtn = function() {
|