|
|
@@ -10502,7 +10502,8 @@ return jsb.fileUtils.getWritablePath();
|
|
|
};
|
|
|
t.callStaticMethod = function(t, e, n) {
|
|
|
for (var i, a = [], r = 3; r < arguments.length; r++) a[r - 3] = arguments[r];
|
|
|
-(i = jsb.reflection).callStaticMethod.apply(i, o([ t, e, n ], a));
|
|
|
+var c = (i = jsb.reflection).callStaticMethod.apply(i, o([ t, e, n ], a));
|
|
|
+return c;
|
|
|
};
|
|
|
t.backTest = function() {};
|
|
|
t.updateDeviceInfo = function(t) {
|
|
|
@@ -10571,7 +10572,12 @@ cc.sys.os == cc.sys.OS_ANDROID ? this.callStaticMethod(this._JSB_ANDROID_PATH, "
|
|
|
};
|
|
|
t.ifCanStartGame = function(t, e) {
|
|
|
var n = !1;
|
|
|
-cc.sys.os == cc.sys.OS_ANDROID ? n = this.callStaticMethod(this._JSB_ANDROID_PATH, "isStartGame", "(Ljava/lang/String;Z)Z", t, e) : cc.sys.os == cc.sys.OS_IOS && (n = this.callStaticMethod("GameConfig", "installApk:", ""));
|
|
|
+if (cc.sys.os == cc.sys.OS_ANDROID) {
|
|
|
+n = this.callStaticMethod(this._JSB_ANDROID_PATH, "isStartGame", "(Ljava/lang/String;Z)Z", t, e);
|
|
|
+console.log("aaaaaaaaaaa >>> ", n);
|
|
|
+return n;
|
|
|
+}
|
|
|
+cc.sys.os == cc.sys.OS_IOS && (n = this.callStaticMethod("GameConfig", "installApk:", ""));
|
|
|
return n;
|
|
|
};
|
|
|
t.setTAEventRegister = function() {
|
|
|
@@ -12741,17 +12747,21 @@ e.btnOpen = null;
|
|
|
e.labName = null;
|
|
|
e.labDes = null;
|
|
|
e.spRed = null;
|
|
|
-e.bData = null;
|
|
|
e.data = null;
|
|
|
e.cool = !1;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.setItemData = function(t) {
|
|
|
return r(this, void 0, void 0, function() {
|
|
|
-var e = this;
|
|
|
return c(this, function() {
|
|
|
-this.bData = t;
|
|
|
-this.data = t.item_data;
|
|
|
+this.setInfo(t.item_data);
|
|
|
+return [ 2 ];
|
|
|
+});
|
|
|
+});
|
|
|
+};
|
|
|
+e.prototype.setInfo = function(t) {
|
|
|
+var e = this;
|
|
|
+this.data = t;
|
|
|
cc.loader.load(this.data.icon, function(t, n) {
|
|
|
if (t) console.log("err:", t); else if (cc.isValid(e.iconNode)) {
|
|
|
var o = n;
|
|
|
@@ -12761,7 +12771,10 @@ e.iconNode.spriteFrame = new cc.SpriteFrame(o);
|
|
|
this.labName.string = this.data.title;
|
|
|
this.labDes.string = this.data.introduction;
|
|
|
this.spRed.active = !1;
|
|
|
-if (1 == this.data.appType) if (s.default.ifCanStartGame(this.data.packageName, !1)) {
|
|
|
+if (1 == this.data.appType) {
|
|
|
+console.log("aaaaaa this.data.packageName ", this.data.packageName);
|
|
|
+console.log("aaaaaa ", s.default.ifCanStartGame(this.data.packageName, !1));
|
|
|
+if (s.default.ifCanStartGame(this.data.packageName, !1)) {
|
|
|
this.btnDown.active = !1;
|
|
|
this.btnOpen.active = !0;
|
|
|
} else if (s.default.isFileExist(this.data.nebulaAppId + ".apk")) {
|
|
|
@@ -12773,13 +12786,11 @@ this.btnOpen.active = !1;
|
|
|
null != gData.moreGame.getTaskInfo(this.data.nebulaAppId) ? this.schedule(function() {
|
|
|
e.showDownloadProgress();
|
|
|
}, .5) : this.progressLabel.string = "下载";
|
|
|
+}
|
|
|
} else if (2 == this.data.appType) {
|
|
|
this.btnDown.active = !1;
|
|
|
this.btnOpen.active = !0;
|
|
|
}
|
|
|
-return [ 2 ];
|
|
|
-});
|
|
|
-});
|
|
|
};
|
|
|
e.prototype.creatorDownLoadTask = function() {
|
|
|
var t = this;
|
|
|
@@ -12796,7 +12807,7 @@ t.showDownloadProgress();
|
|
|
};
|
|
|
e.prototype.showDownloadProgress = function() {
|
|
|
var t = gData.moreGame.getTaskInfo(this.data.nebulaAppId);
|
|
|
-null != t && t.progress >= 0 ? this.progressLabel.string = (t.progress / t.totalBytesReceives * 100).toFixed(1) + "%" : this.setItemData(this.bData);
|
|
|
+null != t && t.progress >= 0 ? this.progressLabel.string = (t.progress / t.totalBytesReceives * 100).toFixed(1) + "%" : this.setInfo(this.data);
|
|
|
};
|
|
|
a([ p(cc.Sprite) ], e.prototype, "iconNode", void 0);
|
|
|
a([ p(cc.Label) ], e.prototype, "progressLabel", void 0);
|
|
|
@@ -13495,7 +13506,7 @@ i(e, t);
|
|
|
function e() {
|
|
|
var e = null !== t && t.apply(this, arguments) || this;
|
|
|
e.init_data = !0;
|
|
|
-e.cash_min_limit = .3;
|
|
|
+e.cash_min_limit = 30;
|
|
|
return e;
|
|
|
}
|
|
|
e.prototype.init = function() {
|
|
|
@@ -13702,7 +13713,7 @@ this.lbl_get_desc.string = "直接提现";
|
|
|
this.node_tip_anim.active = !1;
|
|
|
this.anim_btn_cash.play();
|
|
|
} else {
|
|
|
-gData.gameData.gameData.piggyBank >= gData.pigbank.cash_min_limit ? this.lbl_get_desc.string = "明日可提现" : this.lbl_get_desc.string = "满" + gData.pigbank.cash_min_limit + "元可提";
|
|
|
+gData.gameData.gameData.piggyBank >= gData.pigbank.cash_min_limit ? this.lbl_get_desc.string = "明日可提现" : this.lbl_get_desc.string = "满" + (gData.pigbank.cash_min_limit / 100).toFixed(2) + "元可提";
|
|
|
this.node_tip_anim.active = !0;
|
|
|
this.anim_btn_cash.stop();
|
|
|
this.anim_btn_cash.node.scale = 1;
|