From b77e8e776af4d81e748e9e21d51b64a11085a195 Mon Sep 17 00:00:00 2001 From: zhongshujie <2862698242@qq.com> Date: 星期四, 19 十二月 2024 10:49:11 +0800 Subject: [PATCH] 未提交退出提示 --- packageBookService/pages/psychologyAnswer/questionList/index.js | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/packageBookService/pages/psychologyAnswer/questionList/index.js b/packageBookService/pages/psychologyAnswer/questionList/index.js index 50596c2..a9e9ee6 100644 --- a/packageBookService/pages/psychologyAnswer/questionList/index.js +++ b/packageBookService/pages/psychologyAnswer/questionList/index.js @@ -62,8 +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) => { + if (rect) { + this.setData({ + height: 'calc(100% - 30px - ' + rect.height + 'px)' + }) + } + }).exec(); + }, + + + /** * 缁勪欢鐨勬柟娉曞垪琛� */ -- Gitblit v1.9.1