Sfoglia il codice sorgente

fix:申请分销商样式修改

kele 2 anni fa
parent
commit
7ef856cf65
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  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() {