| | |
| | | editState: true, |
| | | reasonTxt: "", |
| | | reasonTxtShow: false, |
| | | skeletonLoding: true, |
| | | }, |
| | | |
| | | /** |
| | |
| | | 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') |
| | |
| | | topicId: resData.id, |
| | | topicMessageList: resData.cmsItemDataList, |
| | | teachText: info.positionalTitle, |
| | | skeletonLoding: false, |
| | | }) |
| | | if (resData.feedBack != null) { |
| | | that.setData({ |
| | |
| | | } |
| | | } |
| | | |
| | | } else { |
| | | that.setData({ |
| | | skeletonLoding: false, |
| | | }); |
| | | } |
| | | } catch (error) {} |
| | | }) |
| | |
| | | // 上传图片事件 |
| | | 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'], // 可以指定是原图还是压缩图,默认二者都有 |