From 255d32cfadac8b65685502c0cd8737f14f9b8490 Mon Sep 17 00:00:00 2001 From: mengxiaolong Date: Fri, 20 Nov 2020 09:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E8=8E=B7=E5=8F=96=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E9=AB=98=E5=BA=A6=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/sass/common.scss | 7 +++++++ src/views/ebiz/product/HomeProduct.vue | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/assets/sass/common.scss b/src/assets/sass/common.scss index b26da1cf4..d284ccea7 100644 --- a/src/assets/sass/common.scss +++ b/src/assets/sass/common.scss @@ -10,6 +10,8 @@ } body { + height:auto; + max-height: 100%; -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; @@ -17,6 +19,11 @@ body { background-color: #f5f5f5; } +html { + height:auto; + max-height: 100%; +} + a, a:focus, a:hover { diff --git a/src/views/ebiz/product/HomeProduct.vue b/src/views/ebiz/product/HomeProduct.vue index 80f16bcf2..d0744e3d9 100644 --- a/src/views/ebiz/product/HomeProduct.vue +++ b/src/views/ebiz/product/HomeProduct.vue @@ -136,7 +136,7 @@ export default { showMore() { this.idMoreDataShow = !this.idMoreDataShow this.$nextTick(() => { - const height = document.body.clientHeight + const height = this.$refs.product.offsetHeight console.log('after: ', height) window.EWebBridge.webCallAppInJs('updateWebHeight', { height