litian
2024-04-02 a9abe435bdc23bda340c84f45deb363eccf907a7
packageDomain/pages/teacherCertification/index.js
@@ -45,6 +45,7 @@
    editState: true,
    reasonTxt: "",
    reasonTxtShow: false,
    skeletonLoding: true,
  },
  /**
@@ -99,7 +100,8 @@
      if (res) {
        this.getType()
        this.setData({
          userId: res.userId
          userId: res.userId,
          skeletonLoding: true,
        })
        let nickNameData = res.infoList.find((item) => item.type == 'nickName')
        let teacherRole = res.roleLinks.find((item) => item.role.refCode == 'teacher')
@@ -185,6 +187,7 @@
            topicId: resData.id,
            topicMessageList: resData.cmsItemDataList,
            teachText: info.positionalTitle,
            skeletonLoding: false,
          })
          if (resData.feedBack != null) {
            that.setData({
@@ -222,6 +225,10 @@
            }
          }
        } else {
          that.setData({
            skeletonLoding: false,
          });
        }
      } catch (error) {}
    })
@@ -355,6 +362,14 @@
  // 上传图片事件
  chooseImg(e) {
    var that = this;
    if (that.data.imgPics.length == 4) {
      wx.showToast({
        title: "工作证文件不超过5个!",
        icon: 'none',
        duration: 1000,
      })
      return
    }
    wx.chooseMedia({
      count: 1,
      sizeType: ['original', 'compressed'], // 可以指定是原图还是压缩图,默认二者都有