|
|
@@ -895,8 +895,10 @@ mk.console.logSingle("banner ", "onBannerAdShow");
|
|
|
var o = JSON.parse(e);
|
|
|
gData.adData.updateADLog(7, t, o);
|
|
|
};
|
|
|
-e.prototype.onBannerAdClick = function() {
|
|
|
+e.prototype.onBannerAdClick = function(t, e) {
|
|
|
mk.data.sendDataEvent(r.DataEventId.Ad_click, mk.ad.bannerAdType);
|
|
|
+var o = JSON.parse(e);
|
|
|
+gData.adData.updateADLog(55, t, o);
|
|
|
};
|
|
|
e.prototype.onBannerAdAutoRefresh = function() {
|
|
|
mk.console.logSingle("banner ", "onBannerAdAutoRefresh");
|
|
|
@@ -1295,8 +1297,15 @@ mk.data.sendDataEvent(s.DataEventId.interstitial2_init, mk.ad.interFullAdType);
|
|
|
}
|
|
|
gData.adData.updateADLog(a, t, n);
|
|
|
};
|
|
|
-e.prototype.onInterstitialAdClick = function(t) {
|
|
|
-1 == this.checkPlacementIDType(t) ? mk.data.sendDataEvent(s.DataEventId.Ad_click, mk.ad.interFullAdType) : mk.data.sendDataEvent(s.DataEventId.Ad_click, mk.ad.interAdType);
|
|
|
+e.prototype.onInterstitialAdClick = function(t, e) {
|
|
|
+var o = this.checkPlacementIDType(t), n = JSON.parse(e);
|
|
|
+if (1 == o) {
|
|
|
+mk.data.sendDataEvent(s.DataEventId.Ad_click, mk.ad.interFullAdType);
|
|
|
+gData.adData.updateADLog(56, t, n);
|
|
|
+} else {
|
|
|
+mk.data.sendDataEvent(s.DataEventId.Ad_click, mk.ad.interAdType);
|
|
|
+gData.adData.updateADLog(52, t, n);
|
|
|
+}
|
|
|
};
|
|
|
e.prototype.onInterstitialAdClose = function(t, e) {
|
|
|
var o = this.checkPlacementIDType(t);
|
|
|
@@ -1571,7 +1580,9 @@ null != this.proxy && this.proxy.onNativeAdLoadFail(t, e);
|
|
|
onNativeAdShow: function(t, e) {
|
|
|
null != this.proxy && this.proxy.onNativeAdShow(t, e);
|
|
|
},
|
|
|
-onNativeAdClick: function() {},
|
|
|
+onNativeAdClick: function(t, e) {
|
|
|
+null != this.proxy && this.proxy.onNativeAdClick(t, e);
|
|
|
+},
|
|
|
onNativeAdVideoStart: function() {},
|
|
|
onNativeAdVideoEnd: function() {},
|
|
|
onNativeAdCloseButtonTapped: function() {}
|
|
|
@@ -1684,7 +1695,10 @@ this.ifLoadShow = !1;
|
|
|
var o = JSON.parse(e);
|
|
|
gData.adData.updateADLog(3, t, o);
|
|
|
};
|
|
|
-e.prototype.onNativeAdClick = function() {};
|
|
|
+e.prototype.onNativeAdClick = function(t, e) {
|
|
|
+var o = JSON.parse(e);
|
|
|
+gData.adData.updateADLog(53, t, o);
|
|
|
+};
|
|
|
return e;
|
|
|
}(r.zgSingleton);
|
|
|
o.ATNative = s;
|
|
|
@@ -1876,8 +1890,10 @@ this.canGet = !1;
|
|
|
this.reawardAdState = i.PlayEnd;
|
|
|
this.loadAd();
|
|
|
};
|
|
|
-e.prototype.onRewardedVideoAdPlayClicked = function() {
|
|
|
+e.prototype.onRewardedVideoAdPlayClicked = function(t, e) {
|
|
|
mk.data.sendDataEvent(r.DataEventId.Ad_click, mk.ad.videoAdType);
|
|
|
+var o = JSON.parse(e);
|
|
|
+gData.adData.updateADLog(51, t, o);
|
|
|
};
|
|
|
e.prototype.onReward = function() {
|
|
|
console.log("onReward ");
|
|
|
@@ -4217,7 +4233,6 @@ configurable: !0
|
|
|
e.prototype.init = function() {
|
|
|
this.isPlayAniUpdate = !1;
|
|
|
this.videoRbData = gData.gameData.playerProp.userTuCaoInfo;
|
|
|
-console.log("福袋数据----------------\x3e", this.videoRbData);
|
|
|
};
|
|
|
e.prototype.setAdData = function(e) {
|
|
|
t.prototype.setAdData.call(this, e);
|
|
|
@@ -7594,25 +7609,25 @@ return;
|
|
|
}
|
|
|
this.listeners[t].push(new i(e, o));
|
|
|
};
|
|
|
-t.prototype.remove = function(t, e, o) {
|
|
|
-var n = this.listeners[t];
|
|
|
-if (n) {
|
|
|
-for (var a = n.length, i = 0; i < a; i++) if (n[i].compare(o)) {
|
|
|
-n.splice(i, 1);
|
|
|
+t.prototype.remove = function(t, e) {
|
|
|
+var o = this.listeners[t];
|
|
|
+if (o) {
|
|
|
+for (var n = o.length, a = 0; a < n; a++) if (o[a].compare(e)) {
|
|
|
+o.splice(a, 1);
|
|
|
break;
|
|
|
}
|
|
|
-0 == n.length && delete this.listeners[t];
|
|
|
+0 == o.length && delete this.listeners[t];
|
|
|
}
|
|
|
};
|
|
|
t.prototype.emit = function(t) {
|
|
|
for (var e = [], o = 1; o < arguments.length; o++) e[o - 1] = arguments[o];
|
|
|
-var a = this.listeners[t];
|
|
|
-if (a) {
|
|
|
-for (var i = a.concat(), r = i.length, c = 0; c < r; c++) {
|
|
|
-var s = i[c];
|
|
|
-s.notify.apply(s, n(e, [ t ]));
|
|
|
+var n = this.listeners[t];
|
|
|
+if (n) {
|
|
|
+for (var a = n.concat(), i = a.length, r = 0; r < i; r++) {
|
|
|
+var c = a[r];
|
|
|
+c.notify.apply(c, e);
|
|
|
}
|
|
|
-i = null;
|
|
|
+a = null;
|
|
|
}
|
|
|
};
|
|
|
return t;
|
|
|
@@ -8124,7 +8139,6 @@ gData.gameData.addProductMakeTimesById(this.data.productID);
|
|
|
gData.gameData.isProducting = !1;
|
|
|
gData.gameData.nextMake = null;
|
|
|
gData.gameData.setNextProduct(!1);
|
|
|
-console.log("-----");
|
|
|
return [ 4, gData.gameData.updateNewTaskProgress() ];
|
|
|
|
|
|
case 1:
|
|
|
@@ -10451,9 +10465,7 @@ return [ 4, mk.http.sendData("redMoney/addRedMoneyByAnimal", t) ];
|
|
|
|
|
|
case 1:
|
|
|
if (0 != (e = r.sent()).errcode) return [ 2 ];
|
|
|
-o = e.data.redMoneyAddition;
|
|
|
-console.log("addCoinByFarmer===============>", o);
|
|
|
-if (o > 0) {
|
|
|
+if ((o = e.data.redMoneyAddition) > 0) {
|
|
|
n = Math.floor(o / 2);
|
|
|
a = o % 2;
|
|
|
if (n > 0) for (i = 0; 2 != i; ++i) mk.fly2.PlayCoinAnim(1, 1, this.fly_node, "", null, -1, n);
|
|
|
@@ -11818,7 +11830,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"), N = t("../../before/view/data/ADClearSickData"), F = t("../../before/main/PastureSystem"), x = t("../../before/main/FactorySystem"), M = t("./module/FarmMapData"), j = t("./module/GradeRewardData"), E = t("./module/WalletCashOutData"), B = 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"), E = t("./module/WalletCashOutData"), L = t("./module/LineUpUIData"), B = function() {
|
|
|
function t() {
|
|
|
this.init();
|
|
|
}
|
|
|
@@ -11857,7 +11869,7 @@ this.farmSystem = new R.FarmSystem();
|
|
|
this.farmMapData = new M.FarmMapData();
|
|
|
this.farmGradeData = new j.GradeRewardData();
|
|
|
this.walletCashOutData = new E.WalletCashOutData();
|
|
|
-this.lineUpUIData = new B.LineUpUIData();
|
|
|
+this.lineUpUIData = new L.LineUpUIData();
|
|
|
this.moduleData = new Map();
|
|
|
this.moduleData.set(n.moreGame, this.moreGame);
|
|
|
this.moduleData.set(n.turnable, this.turnable);
|
|
|
@@ -11878,7 +11890,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 B();
|
|
|
cc._RF.pop();
|
|
|
}, {
|
|
|
"../../before/main/FactorySystem": "FactorySystem",
|
|
|
@@ -11956,7 +11968,6 @@ o.config_common = cc.resources.get("game/config/common").json;
|
|
|
o.config_clockIn = cc.resources.get("game/config/clockIn").json;
|
|
|
o.config_level = cc.resources.get("game/config/level").json;
|
|
|
o.config_cashOut = cc.resources.get("game/config/cashOut").json;
|
|
|
-console.log("GameConst.config_common", o.config_common);
|
|
|
t(null);
|
|
|
});
|
|
|
});
|
|
|
@@ -13069,7 +13080,7 @@ set: function(t) {
|
|
|
this._redMoney = t;
|
|
|
gData.gameData.init_coin = !0;
|
|
|
gData.gameData.init_wallet_redMoney = !0;
|
|
|
-mk.ui.invokeRefreshEventByName("refreshCoin");
|
|
|
+mk.event.emit("refreshCoin");
|
|
|
mk.data.setTAEventUser(0, "current_redmoney_stock", this._redMoney);
|
|
|
},
|
|
|
enumerable: !1,
|
|
|
@@ -13153,6 +13164,7 @@ t.UPDATE_CashNum = "UPDATE_CashNum";
|
|
|
})(o.EVENT_TYPE || (o.EVENT_TYPE = {}));
|
|
|
(function(t) {
|
|
|
t.guide = "guide";
|
|
|
+t.guideSkip = "guideSkip";
|
|
|
t.button_click = "button_click";
|
|
|
t.video_init = "video_init";
|
|
|
t.video_end = "video_end";
|
|
|
@@ -14270,7 +14282,6 @@ this.cashId = t;
|
|
|
e = {
|
|
|
id: this.cashId
|
|
|
};
|
|
|
-console.log("农场等级提现数据=======>" + this.cashId);
|
|
|
return [ 4, mk.http.sendData("farmGrade/farmGradeCash", e) ];
|
|
|
|
|
|
case 1:
|
|
|
@@ -15151,7 +15162,7 @@ return t.x >= o.x - this.node.width / 2 && t.x <= o.x + this.node.width / 2 && t
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
this._eventManager.removeListener(this._touchListener, this.node);
|
|
|
-mk.event.remove("close-panel", this.onClosePanel, this);
|
|
|
+mk.event.remove("close-panel", this);
|
|
|
};
|
|
|
return i([ c ], e);
|
|
|
}(cc.Component));
|
|
|
@@ -15518,6 +15529,7 @@ mk.ui.closePanel(this.node.name);
|
|
|
e.prototype.clickSkip = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
mk.data.sendXYEvent("guide", "skip_" + mk.guide.crtGuideID);
|
|
|
+mk.data.sendDataEvent(s.DataEventId.guideSkip, "新手引导第" + mk.guide.crtGuideID + "步跳过");
|
|
|
this.close();
|
|
|
};
|
|
|
e.prototype.onDestroy = function() {
|
|
|
@@ -16968,6 +16980,7 @@ return r;
|
|
|
t.updateSplashAdLog = function(t) {
|
|
|
var e = t.split("#"), o = JSON.parse(e[1]);
|
|
|
gData.adData.updateADLog(6, e[0], o);
|
|
|
+this.splashADid = e[0];
|
|
|
var n = mk.storage.getStorage("ad_openEcpm");
|
|
|
n ? n++ : n = 1;
|
|
|
mk.storage.setStorage("ad_openEcpm", n);
|
|
|
@@ -16975,6 +16988,7 @@ n <= 300 && (n <= 50 ? mk.data.sendDataEventValue(a.DataEventId.ad_openEcpm, "ad
|
|
|
};
|
|
|
t.clickSplash = function() {
|
|
|
mk.data.sendDataEvent(a.DataEventId.Ad_click, "splash_click");
|
|
|
+gData.adData.updateADLog(54, this.splashADid);
|
|
|
};
|
|
|
t.getAliRiskDeviceToken = function() {
|
|
|
var t = "";
|
|
|
@@ -17003,10 +17017,20 @@ cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH_JS
|
|
|
t.ysdkAuthSuccess = function() {
|
|
|
gData.loginData.passAnti = !0;
|
|
|
};
|
|
|
+t.updateActivateLog = function(t) {
|
|
|
+console.log("test>>> updateActivateLog ", t);
|
|
|
+var e = {
|
|
|
+appId: gData.appData.appId,
|
|
|
+uin: gData.loginData.uin,
|
|
|
+sessionDuration: t
|
|
|
+};
|
|
|
+mk.http.sendData("activateLog", e);
|
|
|
+};
|
|
|
t._JSB_ANDROID_PATH = "org/cocos2dx/javascript/thirdSdk/ThirdSdkMgr";
|
|
|
t._JSB_IOS_PATH = "ThirdSdkMgr";
|
|
|
t._JSB_ANDROID_PATH_JSDK = "org/cocos2dx/javascript/thirdSdk/ysdk/YSDKMgr";
|
|
|
t.callBack = null;
|
|
|
+t.splashADid = "";
|
|
|
return t;
|
|
|
}();
|
|
|
o.default = i;
|
|
|
@@ -17636,7 +17660,6 @@ var e = mk.storage.getStorage(i.StorageKey.sessionKey);
|
|
|
this.sessionKey = e || "";
|
|
|
var o = mk.storage.getStorage(i.StorageKey.loginTicket);
|
|
|
this.loginTicket = o || "";
|
|
|
-console.log("===[LoginData] uin =" + t + " sessionKey = " + e + '"');
|
|
|
};
|
|
|
t.prototype.login = function() {
|
|
|
return n(this, void 0, void 0, function() {
|
|
|
@@ -20459,7 +20482,7 @@ this.showElectUI();
|
|
|
}
|
|
|
this.showChangePart();
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
-mk.ui.registerRefreshEvent(this, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
+mk.event.register("refreshCoin", this.initCashOutStyle.bind(this), this);
|
|
|
};
|
|
|
e.prototype.showElectUI = function() {
|
|
|
this.sendRecommendList();
|
|
|
@@ -20489,7 +20512,7 @@ gData.adData.checkPopInter(u.InterAdType.interstitial1_click_1);
|
|
|
this.showNativeAd ? mk.ad.showNative() : mk.ad.showBanner(u.BannerAdType.banner_click_3);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-mk.ui.removeRefreshEvent(this);
|
|
|
+mk.event.remove("refreshCoin", this);
|
|
|
this.showNativeAd ? mk.ad.destroyNativeAd() : mk.ad.destoryBanner();
|
|
|
};
|
|
|
e.prototype.initCashOutStyle = function(t) {
|
|
|
@@ -23555,7 +23578,7 @@ this.initTaskProgressUI();
|
|
|
this.showChangePart();
|
|
|
}
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
-mk.ui.registerRefreshEvent(this, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
+mk.event.register("refreshCoin", this.initCashOutStyle.bind(this), this);
|
|
|
}
|
|
|
};
|
|
|
e.prototype.showNewTaskUI = function() {
|
|
|
@@ -23570,7 +23593,7 @@ e.prototype.onEnable = function() {
|
|
|
mk.ad.showNative();
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-mk.ui.removeRefreshEvent(this);
|
|
|
+mk.event.remove("refreshCoin", this);
|
|
|
mk.ad.destroyNativeAd();
|
|
|
};
|
|
|
e.prototype.update = function(t) {
|
|
|
@@ -24324,7 +24347,6 @@ return [ 2 ];
|
|
|
});
|
|
|
};
|
|
|
e.prototype.clickGetReward = function() {
|
|
|
-cc.log("获取奖励:", gData.reward.data);
|
|
|
var t = this.node_hb.node.parent.convertToWorldSpaceAR(this.node_hb.node.getPosition());
|
|
|
gData.reward.flyCoinAnim(t);
|
|
|
if (gData.reward.callback) {
|
|
|
@@ -26058,13 +26080,13 @@ return e;
|
|
|
e.prototype.start = function() {
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
this.lbl_remainTimes.string = "今日剩余次数:" + gData.gameData.playerProp.speedUpLeftTimes;
|
|
|
-mk.ui.registerRefreshEvent(this, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
+mk.event.register("refreshCoin", this.initCashOutStyle.bind(this), this);
|
|
|
};
|
|
|
e.prototype.onEnable = function() {
|
|
|
mk.ad.showBanner(s.BannerAdType.banner_click_5);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-mk.ui.removeRefreshEvent(this);
|
|
|
+mk.event.remove("refreshCoin", this);
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
@@ -27780,12 +27802,9 @@ this.onInPolygon && this.onInPolygon.emit([]);
|
|
|
this.onTouchTap && this.onTouchTap.emit([]);
|
|
|
}
|
|
|
mk.audio.playEffect("button");
|
|
|
-if (this.isScaleAct) {
|
|
|
-cc.tween(this.node).to(.1, {
|
|
|
+this.isScaleAct && cc.tween(this.node).to(.1, {
|
|
|
scale: 1
|
|
|
}).start();
|
|
|
-console.log("------end" + this.name);
|
|
|
-}
|
|
|
} else this.canTouch && this.onOutPolygon && this.onOutPolygon.emit([]);
|
|
|
this.isStart = !1;
|
|
|
this.isMoved = !1;
|
|
|
@@ -27793,13 +27812,10 @@ this.isMoved = !1;
|
|
|
e.prototype.onTouchMove = function(t) {
|
|
|
if (t.getTouches().length > 1) this.isMoved = !0; else {
|
|
|
this.isMoved = cc.Vec2.distance(t.getStartLocation(), t.getLocation()) > 20;
|
|
|
-if (this.isScaleAct && this.isMoved) {
|
|
|
-console.log("------move" + this.name);
|
|
|
-cc.tween(this.node).to(.1, {
|
|
|
+this.isScaleAct && this.isMoved && cc.tween(this.node).to(.1, {
|
|
|
scale: 1
|
|
|
}).start();
|
|
|
}
|
|
|
-}
|
|
|
};
|
|
|
e.prototype.onTouchCancel = function() {
|
|
|
this.isMoved = !1;
|
|
|
@@ -27810,12 +27826,9 @@ if (this.canTouch && this.needPolygon && this.points.length >= 3) {
|
|
|
var e = t.getLocation(), o = this.node.convertToNodeSpaceAR(e);
|
|
|
this.isStart = cc.Intersection.pointInPolygon(o, this.points);
|
|
|
}
|
|
|
-if (this.isScaleAct && this.isStart) {
|
|
|
-cc.tween(this.node).to(.1, {
|
|
|
+this.isScaleAct && this.isStart && cc.tween(this.node).to(.1, {
|
|
|
scale: 1.1
|
|
|
}).start();
|
|
|
-console.log("------start" + this.name);
|
|
|
-}
|
|
|
};
|
|
|
e.prototype.pointInPoly = function(t, e) {
|
|
|
for (var o = !1, n = -1, a = e.length, i = a - 1; ++n < a; i = n) (e[n].y <= t.y && t.y < e[i].y || e[i].y <= t.y && t.y < e[n].y) && t.x < (e[i].x - e[n].x) * (t.y - e[n].y) / (e[i].y - e[n].y) + e[n].x && (o = !o);
|
|
|
@@ -28304,7 +28317,7 @@ e.prototype.onLoad = function() {};
|
|
|
e.prototype.start = function() {
|
|
|
mk.ad.showBanner(r.BannerAdType.banner_click_9);
|
|
|
this.initCashOutStyle(gData.gameData.playerProp.redMoney);
|
|
|
-mk.ui.registerRefreshEvent(this, this.initCashOutStyle.bind(this), "refreshCoin");
|
|
|
+mk.event.register("refreshCoin", this.initCashOutStyle.bind(this), this);
|
|
|
};
|
|
|
e.prototype.update = function() {
|
|
|
gData.reward.add_redbag_value && this.initCashOutStyle(gData.gameData.playerProp.redMoney + gData.reward.add_redbag_value);
|
|
|
@@ -28331,7 +28344,7 @@ gData.reward.addReward();
|
|
|
mk.ui.closePanel(this.node.name);
|
|
|
};
|
|
|
e.prototype.onDisable = function() {
|
|
|
-mk.ui.removeRefreshEvent(this);
|
|
|
+mk.event.remove("refreshCoin", this);
|
|
|
};
|
|
|
e.prototype.onClickClose = function() {
|
|
|
mk.audio.playEffect("button");
|
|
|
@@ -29106,12 +29119,10 @@ e.isPanelOpeningArr = [];
|
|
|
e.isPanelClosingArr = [];
|
|
|
e.curOnPanelDic = {};
|
|
|
e.lastOpenPanelName = "";
|
|
|
-e.registerCallBack = new Map();
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.onLoad = function() {
|
|
|
mk.ui = this;
|
|
|
-this.registerCallBack.clear();
|
|
|
};
|
|
|
e.prototype.start = function() {
|
|
|
this.panelParent || (this.panelParent = this.node);
|
|
|
@@ -29201,26 +29212,6 @@ mk.event.emit("close-panel", e);
|
|
|
mk.ad.destroyNativeAd();
|
|
|
mk.ad.destoryBanner();
|
|
|
};
|
|
|
-e.prototype.registerRefreshEvent = function(t, e, o) {
|
|
|
-void 0 === e && (e = null);
|
|
|
-void 0 === o && (o = "default");
|
|
|
-var n = this.registerCallBack.get(t);
|
|
|
-if (n) n.set(o, e); else {
|
|
|
-var a = new Map();
|
|
|
-a.set(o, e);
|
|
|
-this.registerCallBack.set(t, a);
|
|
|
-}
|
|
|
-};
|
|
|
-e.prototype.invokeRefreshEventByName = function(t) {
|
|
|
-this.registerCallBack.forEach(function(e) {
|
|
|
-e.forEach(function(e, o) {
|
|
|
-o === t && e && e();
|
|
|
-});
|
|
|
-});
|
|
|
-};
|
|
|
-e.prototype.removeRefreshEvent = function(t) {
|
|
|
-this.registerCallBack.get(t) && this.registerCallBack.delete(t);
|
|
|
-};
|
|
|
return i([ s ], e);
|
|
|
}(cc.Component));
|
|
|
o.default = l;
|