From 5b19b0e39a91e566a835460bf1213e7b3a0582b9 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期一, 17 三月 2025 14:27:14 +0800 Subject: [PATCH] 图 --- 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