From b8e3dc3c89fcc278ed8fe409c09fe938bdda0e23 Mon Sep 17 00:00:00 2001 From: 闫增涛 <1829501689@qq.com> Date: 星期四, 26 九月 2024 11:31:04 +0800 Subject: [PATCH] Merge refs/remotes/origin/master into refs/heads/master --- packageDomain/pages/publickBookForm/index.js | 22 +++++++++++++++++++--- 1 files changed, 19 insertions(+), 3 deletions(-) diff --git a/packageDomain/pages/publickBookForm/index.js b/packageDomain/pages/publickBookForm/index.js index 97b0ed1..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 }, /** @@ -78,6 +79,21 @@ onUnload() { }, + + scroll() { + // 鐩戝惉瑙嗗浘婊氬姩锛屾墜鍔ㄦ敹璧烽敭鐩� + if (this.data.isKeyboard) { + wx.hideKeyboard() + } + }, + // 鐩戝惉閿洏寮硅捣鍜屾敹璧� + bindkeyboardheightchange(e) { + // 閿洏楂樺害 + const height = e.detail.height; + this.setData({ + isKeyboard: height ? true : false + }) + }, //鑾峰彇瀛楁 getType() { app.MG.resource.getCmsTypeByRefCode({ -- Gitblit v1.9.1