From b9d08f45e3dc1fce9b8ae37ae8b95562843d4cbe Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期四, 19 九月 2024 14:23:26 +0800 Subject: [PATCH] pdf --- packageDomain/pages/publickBookForm/index.js | 19 ++++++++++++++++++- 1 files changed, 18 insertions(+), 1 deletions(-) diff --git a/packageDomain/pages/publickBookForm/index.js b/packageDomain/pages/publickBookForm/index.js index 97b0ed1..a2e562e 100644 --- a/packageDomain/pages/publickBookForm/index.js +++ b/packageDomain/pages/publickBookForm/index.js @@ -35,7 +35,8 @@ }, phoneError: false, emailError: false, - loading: false + loading: false, + isKeyboard: false }, /** @@ -78,6 +79,22 @@ onUnload() { }, + + scroll() { + // 鐩戝惉瑙嗗浘婊氬姩锛屾墜鍔ㄦ敹璧烽敭鐩� + if (this.data.isKeyboard) { + console.log(1); + wx.hideKeyboard() + } + }, + // 鐩戝惉閿洏寮硅捣鍜屾敹璧� + bindkeyboardheightchange(e) { + // 閿洏楂樺害 + const height = e.detail.height; + this.setData({ + isKeyboard: height ? true : false + }) + }, //鑾峰彇瀛楁 getType() { app.MG.resource.getCmsTypeByRefCode({ -- Gitblit v1.9.1