| | |
| | | }) |
| | | } |
| | | let info = getTopicMsgCmsItemFile(this.data.worksInfo, resData.cmsItemDataList) |
| | | console.log(info) |
| | | this.setData({ |
| | | 'teacherInfo.fullName': info.fullName, |
| | | 'teacherInfo.schoolName': info.schoolName, |
| | |
| | | sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 |
| | | success: function (res) { |
| | | // 返回选定照片的本地文件路径列表,tempFilePath也可以作为img标签的src属性显示图片 |
| | | console.log(res.tempFiles[0], 12); |
| | | wx.getFileSystemManager().readFile({ |
| | | filePath: res.tempFiles[0].tempFilePath, //选择图片返回的相对路径 |
| | | // encoding: 'binary', //编码格式 |
| | |
| | | }) |
| | | }, |
| | | onChange() { |
| | | console.log(this.data.teacherInfo.agree, 12) |
| | | if (this.data.teacherInfo.agree) { |
| | | this.setData({ |
| | | 'teacherInfo.agree': false, |
| | |
| | | that.data.teacherInfo, |
| | | that.data.imgPics |
| | | ); |
| | | console.log(dataRequests, 4) |
| | | const data = { |
| | | description: '', |
| | | icon: '', |