cs
litian
2024-09-25 6800be033ffcd618d8b0b819fed8235a19d6b136
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": '',