From 8aeddcf766df9f7e3061d4d098b57afdf53db896 Mon Sep 17 00:00:00 2001
From: zhongshujie <2862698242@qq.com>
Date: 星期四, 19 十二月 2024 15:28:07 +0800
Subject: [PATCH] 骨架屏及选择选中后自动跳转

---
 packageBookService/pages/psychologyAnswer/questionList/index.js |   24 ++++++++++++------------
 1 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/packageBookService/pages/psychologyAnswer/questionList/index.js b/packageBookService/pages/psychologyAnswer/questionList/index.js
index 95e115a..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();
+  //   }
+  // },
   /**
    * 缁勪欢鐨勫垵濮嬫暟鎹�
    */
@@ -69,12 +68,12 @@
   ready() {
     const query = wx.createSelectorQuery().in(this);
     query.select('#question-title').boundingClientRect((rect) => {
-      this.setData({
-        height: 'calc(100% - 30px - ' + rect.height + 'px)'
-      })
+      if (rect) {
+        this.setData({
+          height: 'calc(100% - 30px - ' + rect.height + 'px)'
+        })
+      }
     }).exec();
-
-
   },
 
 
@@ -132,6 +131,7 @@
       } // 瑙﹀彂浜嬩欢鐨勯�夐」
       this.triggerEvent('onChangeRadio', myEventDetail, myEventOption)
     },
+    
     // 澶氶�夎Е鍙�
     onChangeCheck(e) {
       var myEventDetail = {

--
Gitblit v1.9.1