瀏覽代碼

feat: mobile launch fix

jiangzixin 1 年之前
父節點
當前提交
3b4a28134a
共有 1 個文件被更改,包括 12 次插入8 次删除
  1. 12 8
      uniapp/pages/launch/launch.vue

+ 12 - 8
uniapp/pages/launch/launch.vue

@@ -1,9 +1,13 @@
 <template>
-    <view class="launch-bg" :style="[background]" >
-        <image class="launch-img" mode="widthFix" :src="appConfig.mobile_start_page"></image>
-        <view class="flex-col col-center fixed w-full">
-            <image src="/static/images/map_bg.png" mode="widthFix" @tap="launchApp('/pages/index/index', 'map')"></image>
-            <image src="/static/images/policy_bg.png" mode="widthFix" style="margin-top: 150rpx;" @tap="launchApp('/pages/policy/index', 'policy')"></image>
+    <view class="launch-bg" :style="[background]">
+        <!-- <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%">
+                <image src="/static/images/map_bg.png" mode="widthFix" @tap="launchApp('/pages/index/index', 'map')">
+                </image>
+                <image src="/static/images/policy_bg.png" mode="widthFix" style="margin-top: 100rpx;"
+                    @tap="launchApp('/pages/policy/index', 'policy')"></image>
+            </view>
         </view>
 
         <!-- <view class="img-datu">
@@ -63,10 +67,10 @@
             ...mapGetters(['sysInfo', 'inviteCode', 'appConfig']),
             background() {
                 const {
-                    mobile_start_bg
+                    mobile_start_page
                 } = this.appConfig
-                return mobile_start_bg ? {
-                    'background-image': `url(${mobile_start_bg})`,
+                return mobile_start_page ? {
+                    'background-image': `url(${mobile_start_page})`,
                     'background-size': 'cover'
                 } : {}
             },