From b77e8e776af4d81e748e9e21d51b64a11085a195 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期四, 19 十二月 2024 10:49:11 +0800
Subject: [PATCH] 未提交退出提示

---
 packageBookService/pages/psychologyAnswer/questionList/index.js |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/packageBookService/pages/psychologyAnswer/questionList/index.js b/packageBookService/pages/psychologyAnswer/questionList/index.js
index 7df872e..a9e9ee6 100644
--- a/packageBookService/pages/psychologyAnswer/questionList/index.js
+++ b/packageBookService/pages/psychologyAnswer/questionList/index.js
@@ -62,11 +62,23 @@
       type: 'fraction'
     },
     showIndex: 0,
-    isPlay: false
+    isPlay: false,
+    height: 0
   },
+
   ready() {
-    console.log(this.properties.questionList, "questionList");
+    const query = wx.createSelectorQuery().in(this);
+    query.select('#question-title').boundingClientRect((rect) => {
+      if (rect) {
+        this.setData({
+          height: 'calc(100% - 30px - ' + rect.height + 'px)'
+        })
+      }
+    }).exec();
   },
+
+
+
   /**
    * 缁勪欢鐨勬柟娉曞垪琛�
    */

--
Gitblit v1.9.1