Pārlūkot izejas kodu

微信授权界面调整

kaka 4 gadi atpakaļ
vecāks
revīzija
09c9c40591

+ 10 - 10
assets/resources/module/authUI/authUI.prefab

@@ -191,7 +191,7 @@
     "_contentSize": {
       "__type__": "cc.Size",
       "width": 640,
-      "height": 440
+      "height": 418
     },
     "_anchorPoint": {
       "__type__": "cc.Vec2",
@@ -203,7 +203,7 @@
       "ctor": "Float64Array",
       "array": [
         0,
-        0,
+        102.156,
         0,
         0,
         0,
@@ -267,7 +267,7 @@
       "ctor": "Float64Array",
       "array": [
         0,
-        155,
+        151,
         0,
         0,
         0,
@@ -362,7 +362,7 @@
     },
     "_contentSize": {
       "__type__": "cc.Size",
-      "width": 468,
+      "width": 576,
       "height": 50.4
     },
     "_anchorPoint": {
@@ -375,7 +375,7 @@
       "ctor": "Float64Array",
       "array": [
         0,
-        28,
+        48.065,
         0,
         0,
         0,
@@ -414,8 +414,8 @@
     ],
     "_srcBlendFactor": 770,
     "_dstBlendFactor": 771,
-    "_string": "点击登录,即可提现至微信。",
-    "_N$string": "点击登录,即可提现至微信。",
+    "_string": "红包将提现至微信,登录后立即到账",
+    "_N$string": "红包将提现至微信,登录后立即到账",
     "_fontSize": 36,
     "_lineHeight": 40,
     "_enableWrapText": true,
@@ -486,7 +486,7 @@
       "ctor": "Float64Array",
       "array": [
         0,
-        -156.855,
+        -135.142,
         0,
         0,
         0,
@@ -678,7 +678,7 @@
       "ctor": "Float64Array",
       "array": [
         301.701,
-        211.879,
+        206.879,
         0,
         0,
         0,
@@ -778,7 +778,7 @@
     "_spriteFrame": {
       "__uuid__": "31b9d6f4-396d-4c0b-8d97-61c26fccb8e3"
     },
-    "_type": 0,
+    "_type": 1,
     "_sizeMode": 0,
     "_fillType": 0,
     "_fillCenter": {

+ 2 - 2
assets/resources/module/authUI/texture/bg5.png.meta

@@ -26,8 +26,8 @@
       "height": 380,
       "rawWidth": 640,
       "rawHeight": 380,
-      "borderTop": 0,
-      "borderBottom": 0,
+      "borderTop": 319,
+      "borderBottom": 27,
       "borderLeft": 0,
       "borderRight": 0,
       "subMetas": {}

+ 8 - 0
assets/script/game/module/authUI/AuthUI.ts

@@ -14,4 +14,12 @@ export default class AuthUI extends cc.Component {
         mk.audio.playEffect('button');
         JsbSystem.WxAuth();
     }
+
+    onEnable() {
+        mk.ad.showNative();
+    }
+
+    onDisable() {
+        mk.ad.destroyNativeAd();
+    }
 }

+ 5 - 5
assets/script/game/module/blessingBag/BlessingBag.ts

@@ -199,15 +199,15 @@ export default class BlessingBag extends cc.Component {
     Click_AdProgressBtn() {
 
         mk.audio.playEffect("button");
-        if (cc.sys.isNative && !gData.loginData.isAuth) {
-            // JsbSystem.WxAuth();
-            mk.ui.openPanel('module/authUI/authUI');
-            return;
-        }
         if (gData.blessingBag.videoRbData.isVideo == 1) {
             //免费加进度
             gData.blessingBag.addProgress();
         } else {
+            if (cc.sys.isNative && !gData.loginData.isAuth) {
+                // JsbSystem.WxAuth();
+                mk.ui.openPanel('module/authUI/authUI');
+                return;
+            }
             //if (gData.blessingBag.videoRbData.leftVideoTimes > 0) {
             mk.ad.videoAdType = VideoAdType.video_init_15;
             mk.ad.watchAd(async (success: boolean) => {