|
|
@@ -1007,18 +1007,15 @@ void 0 === e && (e = !1);
|
|
|
this.nativeAdType = t;
|
|
|
this.ifLoadShow = e;
|
|
|
this.nativeAdState = a.Loading;
|
|
|
-var n = cc.view.getFrameSize(), o = n.width, i = (n.height, o / 750), r = 656 * i, c = 440 * i;
|
|
|
+var n = cc.view.getFrameSize().width / 750, o = 656 * n, i = 440 * n;
|
|
|
if (2 == this.nativeAdType) {
|
|
|
-r *= .9;
|
|
|
-c *= .8;
|
|
|
+o *= .9;
|
|
|
+i *= .8;
|
|
|
} else if (3 == this.nativeAdType) {
|
|
|
-r *= .9;
|
|
|
-c *= .75;
|
|
|
-} else {
|
|
|
-r *= .9;
|
|
|
-c *= .75;
|
|
|
+o *= .9;
|
|
|
+i *= .75;
|
|
|
}
|
|
|
-this.ATNativeJS.loadNative(r, c);
|
|
|
+this.ATNativeJS.loadNative(o, i);
|
|
|
};
|
|
|
e.prototype.showNative = function(t) {
|
|
|
if (this.nativeAdState == a.Show) ; else if (this.hasAdReady()) if (this.nativeAdType != t) {
|
|
|
@@ -1035,10 +1032,7 @@ c *= .8;
|
|
|
s = .69 * o;
|
|
|
r *= .9;
|
|
|
c *= .75;
|
|
|
-} else if (4 == t) {
|
|
|
-s = .75 * o;
|
|
|
-r *= 1.1;
|
|
|
-}
|
|
|
+} else 4 == t && (s = .75 * o);
|
|
|
var l = .5 * (n - r);
|
|
|
this.ATNativeJS.showNative(l, s, r, c);
|
|
|
} else this.nativeAdState == a.Loading ? this.ifLoadShow = !0 : this.loadNative(t, !0);
|