From d5592767654f4fc59b572bab54de1d9202d994ea Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期二, 30 七月 2024 15:11:35 +0800
Subject: [PATCH] ‘’

---
 wechat_jiaxuan/pages/index/index.js |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/wechat_jiaxuan/pages/index/index.js b/wechat_jiaxuan/pages/index/index.js
index d63bb12..3c1ace0 100644
--- a/wechat_jiaxuan/pages/index/index.js
+++ b/wechat_jiaxuan/pages/index/index.js
@@ -233,9 +233,13 @@
     })
   },
   bannerbindload(e) {
-    const height = e.detail.height
+    const {
+      height,
+      width
+    } = e.detail
+    let activeHeight = height * 670 / width
     this.setData({
-      bannerImgHeight: height
+      bannerImgHeight: activeHeight
     })
   },
   consultbindload(e) {
@@ -245,7 +249,7 @@
     } = e.detail
     let activeHeight = height * 670 / width
     this.setData({
-      consultImgHeight: activeHeight
+      consultImgHeight: activeHeight + 100
     })
   },
   consultClick(e) {

--
Gitblit v1.9.3