ソースを参照

h5头部图片去除

谢杰标 2 年 前
コミット
3b7108e681
1 ファイル変更2 行追加7 行削除
  1. 2 7
      components/nav-bar/nav-logo.vue

+ 2 - 7
components/nav-bar/nav-logo.vue

@@ -9,16 +9,11 @@
       back-icon-color="#ffffff"
     >
       <view class="slot-wrap">
-        <!-- #ifdef H5 -->
-        <img :src="$method.splitImgHost(config.h5Logo)" alt="" srcset="" />
-        <!-- #endif -->
-        <!-- #ifdef MP-WEIXIN -->
         <image
           :src="$method.splitImgHost(config.h5Logo)"
           @load="load"
           :style="{ width: imgwidth + 'rpx', height: imgheight + 'rpx' }"
         />
-        <!-- #endif -->
       </view>
     </u-navbar>
   </view>
@@ -47,8 +42,8 @@ export default {
   },
   methods: {
     load(e) {
-      this.imgwidth = e.detail.width * 2;
-      this.imgheight = e.detail.height * 2;
+      this.imgwidth = e.detail.width;
+      this.imgheight = e.detail.height;
     },
   },
 };