From cbc33eaf1cfa0ae319e1580dbc7887494b101d11 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 18 十二月 2024 09:54:13 +0800 Subject: [PATCH] css --- packageBookService/pages/psychologyAnswer/questionList/index.js | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/packageBookService/pages/psychologyAnswer/questionList/index.js b/packageBookService/pages/psychologyAnswer/questionList/index.js index 27ce21d..95e115a 100644 --- a/packageBookService/pages/psychologyAnswer/questionList/index.js +++ b/packageBookService/pages/psychologyAnswer/questionList/index.js @@ -62,9 +62,23 @@ type: 'fraction' }, showIndex: 0, - isPlay: false + isPlay: false, + height: 0 }, + ready() { + const query = wx.createSelectorQuery().in(this); + query.select('#question-title').boundingClientRect((rect) => { + this.setData({ + height: 'calc(100% - 30px - ' + rect.height + 'px)' + }) + }).exec(); + + + }, + + + /** * 缁勪欢鐨勬柟娉曞垪琛� */ -- Gitblit v1.9.1