| | |
| | | wx.navigateTo({ |
| | | url: "/packageDomain/pages/teacherCertification/index", |
| | | }); |
| | | } else { |
| | | wx.navigateBack(); |
| | | } |
| | | } |
| | | }) |
| | |
| | | if (!this.data.isIos === 'ios') { |
| | | return |
| | | } |
| | | |
| | | // 键盘高度 |
| | | const height = e.detail.height; |
| | | const className = e.target.dataset.class; |
| | | console.log(height, className) |
| | | if (height === 0) { |
| | | this.scrollToInput(0); |
| | | return; |
| | |
| | | if (bottom <= restHeight) return; |
| | | // 现阶段需要滚动的大小 |
| | | let scrollTop = bottom - restHeight; |
| | | console.log(scrollTop, 1) |
| | | this.scrollToInput(height, scrollTop); |
| | | }) |
| | | .exec(); |
| | |
| | | } catch (error) {} |
| | | } |
| | | }, |
| | | changeParam(e) { |
| | | this.scrollToInput(0); |
| | | }, |
| | | /** |
| | | * 页面相关事件处理函数--监听用户下拉动作 |
| | | */ |