From acfae14a97e67278c0723114356b308ef161b1dd Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期三, 18 十二月 2024 15:05:11 +0800 Subject: [PATCH] 题库加入购物车 --- packageBookService/pages/psychologyAnswer/questionList/index.js | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packageBookService/pages/psychologyAnswer/questionList/index.js b/packageBookService/pages/psychologyAnswer/questionList/index.js index 7df872e..e6934a4 100644 --- a/packageBookService/pages/psychologyAnswer/questionList/index.js +++ b/packageBookService/pages/psychologyAnswer/questionList/index.js @@ -62,11 +62,21 @@ 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) => { + this.setData({ + height: 'calc(100% - 30px - ' + rect.height + 'px)' + }) + }).exec(); }, + + + /** * 缁勪欢鐨勬柟娉曞垪琛� */ -- Gitblit v1.9.1