From c99f9976a5ef9d8974105feb8fc0580a10adf98c Mon Sep 17 00:00:00 2001 From: QYF-GitLab1 <1940665526@qq.com> Date: 星期一, 23 十二月 2024 14:58:49 +0800 Subject: [PATCH] 111 --- packageDomain/pages/publickBookForm/index.js | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/packageDomain/pages/publickBookForm/index.js b/packageDomain/pages/publickBookForm/index.js index e0c1a1c..2ebbc55 100644 --- a/packageDomain/pages/publickBookForm/index.js +++ b/packageDomain/pages/publickBookForm/index.js @@ -30,12 +30,13 @@ worksInfo: [], keyboardHeight: 0, autosize: { - maxHeight: 120, - minHeight: 80, + maxHeight: 100, + minHeight: 40, }, phoneError: false, emailError: false, - loading: false + loading: false, + isKeyboard: false }, /** @@ -77,6 +78,21 @@ */ onUnload() { + }, + + scroll() { + // 鐩戝惉瑙嗗浘婊氬姩锛屾墜鍔ㄦ敹璧烽敭鐩� + if (this.data.isKeyboard) { + wx.hideKeyboard() + } + }, + // 鐩戝惉閿洏寮硅捣鍜屾敹璧� + bindkeyboardheightchange(e) { + // 閿洏楂樺害 + const height = e.detail.height; + this.setData({ + isKeyboard: height ? true : false + }) }, //鑾峰彇瀛楁 getType() { @@ -302,6 +318,7 @@ "teacherInfo.targetReaders": '', "teacherInfo.topicImpactAndExpected": '', "teacherInfo.topicProgress": '', + "teacherInfo.topicFeatures": '', "teacherInfo.marketAnalysis": '', "teacherInfo.marketingAndPromotionPlan": '', "teacherInfo.digitalResourceDevelopmentPlan": '', -- Gitblit v1.9.1