jiangzixin 1 рік тому
батько
коміт
c9e4b7d7ad
1 змінених файлів з 11 додано та 10 видалено
  1. 11 10
      uniapp/pages/launch/launch.vue

+ 11 - 10
uniapp/pages/launch/launch.vue

@@ -1,5 +1,5 @@
 <template>
-    <view class="launch-bg" :style="[background]">
+    <view class="launch-bg" :style="{'background-image': `url(${appConfig.mobile_start_page})`}">
         <!-- <image class="launch-img" mode="widthFix" :src="appConfig.mobile_start_page"></image> -->
         <view class="w-full" style="height: 100%; position: absolute; top: 0">
             <view class="flex-col col-center row-center w-full " style="height: 100%">
@@ -65,15 +65,15 @@
         },
         computed: {
             ...mapGetters(['sysInfo', 'inviteCode', 'appConfig']),
-            background() {
-                const {
-                    mobile_start_page
-                } = this.appConfig
-                return mobile_start_page ? {
-                    'background-image': `url(${mobile_start_page})`,
-                    'background-size': 'cover'
-                } : {}
-            },
+            // background() {
+            //     const {
+            //         mobile_start_page
+            //     } = this.appConfig
+            //     return mobile_start_page ? {
+            //         'background-image': `url(${mobile_start_page})`,
+            //         'background-size': 'cover'
+            //     } : {}
+            // },
         }
     }
 </script>
@@ -96,6 +96,7 @@
     .launch-bg {
 
         height: 100%;
+        background-size: cover;
     }
 
     .launch-img {