From 6df96b3e7a7da1985ee875e84711e9f15c5fbff0 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 24 十二月 2024 18:25:02 +0800
Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master

---
 packageBookService/pages/psychologyAnswer/questionList/index.js |   31 +++++++++++++++++++++++--------
 1 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/packageBookService/pages/psychologyAnswer/questionList/index.js b/packageBookService/pages/psychologyAnswer/questionList/index.js
index 50596c2..d1681b1 100644
--- a/packageBookService/pages/psychologyAnswer/questionList/index.js
+++ b/packageBookService/pages/psychologyAnswer/questionList/index.js
@@ -39,13 +39,12 @@
     }
   },
   observers: {},
-  detached() {
-    if (innerAudioContext) {
-      innerAudioContext.stop();
-      innerAudioContext.destroy();
-    }
-
-  },
+  // detached() {
+  //   if (innerAudioContext) {
+  //     innerAudioContext.stop();
+  //     innerAudioContext.destroy();
+  //   }
+  // },
   /**
    * 缁勪欢鐨勫垵濮嬫暟鎹�
    */
@@ -62,8 +61,23 @@
       type: 'fraction'
     },
     showIndex: 0,
-    isPlay: false
+    isPlay: false,
+    height: 0
   },
+
+  ready() {
+    const query = wx.createSelectorQuery().in(this);
+    query.select('#question-title').boundingClientRect((rect) => {
+      if (rect) {
+        this.setData({
+          height: 'calc(100% - 30px - ' + rect.height + 'px)'
+        })
+      }
+    }).exec();
+  },
+
+
+
   /**
    * 缁勪欢鐨勬柟娉曞垪琛�
    */
@@ -117,6 +131,7 @@
       } // 瑙﹀彂浜嬩欢鐨勯�夐」
       this.triggerEvent('onChangeRadio', myEventDetail, myEventOption)
     },
+    
     // 澶氶�夎Е鍙�
     onChangeCheck(e) {
       var myEventDetail = {

--
Gitblit v1.9.1