1
litian
2024-04-17 eeaef4fa1a06616e41ae8013c95e99bb3895aac5
packageDomain/pages/sampleBookList/applicationForm/index.js
@@ -61,6 +61,8 @@
              wx.navigateTo({
                url: "/packageDomain/pages/teacherCertification/index",
              });
            } else {
              wx.navigateBack();
            }
          }
        })
@@ -332,10 +334,10 @@
    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;
@@ -354,6 +356,7 @@
          if (bottom <= restHeight) return;
          // 现阶段需要滚动的大小
          let scrollTop = bottom - restHeight;
          console.log(scrollTop, 1)
          this.scrollToInput(height, scrollTop);
        })
        .exec();
@@ -393,6 +396,9 @@
      } catch (error) {}
    }
  },
  changeParam(e) {
    this.scrollToInput(0);
  },
  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */