Procházet zdrojové kódy

fix:申请分销商样式修改

kele před 2 roky
rodič
revize
7ef856cf65
1 změnil soubory, kde provedl 2 přidání a 1 odebrání
  1. 2 1
      pages/commission/apply.vue

+ 2 - 1
pages/commission/apply.vue

@@ -109,6 +109,7 @@
     background: '',
     imgHeight: 400,
   });
+  const statusBarHeight = sheep.$platform.device.statusBarHeight * 2;
 
   //勾选协议
   function onChange() {
@@ -139,7 +140,7 @@
     }
   }
   function onImgLoad(e) {
-    state.imgHeight = (e.detail.height / e.detail.width) * 750 - 88;
+    state.imgHeight = (e.detail.height / e.detail.width) * 750 - 88 - statusBarHeight;
   }
 
   async function submit() {