| | |
| | | app.MG.identity |
| | | .getUserKey({ |
| | | domain: 'cloudLearningTime', |
| | | keys: [this.data.bookId + ''] |
| | | keys: [this.data.bookId] |
| | | }) |
| | | .then((res) => { |
| | | if (res.length > 0 && JSON.parse(res[0].value) && JSON.parse(res[0].value).length > 0) { |
| | |
| | | menuList: dataList, |
| | | loading: false, |
| | | }); |
| | | }, 200) |
| | | }, 500) |
| | | if (this.data.taskId) { |
| | | setTimeout(() => { |
| | | this.data.menuList.forEach((item) => { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | }, 200) |
| | | }, 500) |
| | | } else { |
| | | setTimeout(() => { |
| | | if (this.data.menuList[0].children) { |
| | |
| | | taskInfo: this.data.menuList[0], |
| | | }); |
| | | } |
| | | }, 200) |
| | | }, 500) |
| | | } |
| | | } |
| | | setTimeout(() => { |
| | | this.getTasksList() |
| | | }, 200) |
| | | }, 500) |
| | | }) |
| | | }, |
| | | getTask(e) { |
| | |
| | | school: content.school, |
| | | class: content.class, |
| | | learnTime: content.learnTime, |
| | | taskShow: true, |
| | | }); |
| | | this.getChildTasksList() |
| | | if (content.evaluate.length > 0) { |
| | | // content.evaluate.forEach((element) => { |
| | | // if (this.data.consumer == 'classmate') { |
| | | // element.mateEvaluation = '' |
| | | // } |
| | | // if (this.data.consumer == 'teacher') { |
| | | // element.teacherEvaluation = '' |
| | | // } |
| | | // }) |
| | | if (this.data.name && this.data.school && this.data.class) { |
| | | this.setData({ |
| | | dataList: content.evaluate, |
| | | }); |
| | | taskShow: true, |
| | | }) |
| | | this.getChildTasksList() |
| | | if (content.evaluate.length > 0) { |
| | | this.setData({ |
| | | dataList: content.evaluate, |
| | | }); |
| | | } |
| | | } else { |
| | | wx.showToast({ |
| | | title: "请先填写个人信息", |
| | | icon: 'none', |
| | | duration: 1000 |
| | | }) |
| | | } |
| | | } |
| | | } else { |
| | |
| | | item.teacherEvaluation = '' |
| | | }) |
| | | } |
| | | this.setData({ |
| | | |
| | | }); |
| | | if (this.data.name && this.data.school && this.data.class) { |
| | | this.setData({ |
| | | dataList: res.datas.cmsDatas[0].datas, |
| | |
| | | }, |
| | | |
| | | confirmBtn() { |
| | | if (this.data.invitee == 'teacher' && this.data.teacherEvaluated) { |
| | | wx.showToast({ |
| | | title: "教师已经评价,不能再邀请教师评价!", |
| | | icon: 'none', |
| | | duration: 1000 |
| | | }) |
| | | return false |
| | | } else { |
| | | wx.showShareMenu({ |
| | | withShareTicket: true |
| | | }); |
| | | } |
| | | |
| | | wx.showShareMenu({ |
| | | withShareTicket: true |
| | | }); |
| | | }, |
| | | confirmBtn1() { |
| | | wx.showToast({ |
| | | title: "教师已经评价,不能再邀请教师评价!", |
| | | icon: 'none', |
| | | duration: 1000 |
| | | }) |
| | | }, |
| | | submitComment() { |
| | | let mateEvaluationList = [] |