| | |
| | | this.setData({ |
| | | bookId: options.bookId, |
| | | cmsPath: options.cmsPath, |
| | | taskId: options.bookId, |
| | | taskId: options.taskId, |
| | | consumer: options.consumer, |
| | | userId: options.userId, |
| | | userName: JSON.parse(wx.getStorageSync(app.config.userInfoKey)).nickName |
| | |
| | | this.setData({ |
| | | cmsPath: options.cmsPath, |
| | | bookId: options.bookId, |
| | | taskId: options.bookId, |
| | | taskId: options.taskId, |
| | | consumer: options.consumer, |
| | | userId: options.userId, |
| | | disabled: true |
| | |
| | | menuList: dataList, |
| | | loading: false, |
| | | }); |
| | | }, 500) |
| | | }, 200) |
| | | if (this.data.taskId) { |
| | | setTimeout(() => { |
| | | this.data.menuList.forEach((item) => { |
| | |
| | | }) |
| | | } |
| | | }) |
| | | }, 500) |
| | | }, 200) |
| | | } else { |
| | | setTimeout(() => { |
| | | if (this.data.menuList[0].children) { |
| | |
| | | taskInfo: this.data.menuList[0], |
| | | }); |
| | | } |
| | | }, 500) |
| | | }, 200) |
| | | } |
| | | } |
| | | this.getTasksList() |
| | | setTimeout(() => { |
| | | this.getTasksList() |
| | | }, 200) |
| | | }) |
| | | }, |
| | | getTask(e) { |
| | |
| | | this.setData({ |
| | | tasksListData: res.datas, |
| | | }); |
| | | |
| | | if (this.data.taskInfo.name) { |
| | | this.taskSelect(this.data.taskInfo) |
| | | } |
| | |
| | | school: content.school, |
| | | class: content.class, |
| | | learnTime: content.learnTime, |
| | | taskShow: true, |
| | | }); |
| | | if (this.data.name && this.data.school && this.data.class) { |
| | | this.setData({ |
| | | taskShow: true, |
| | | }) |
| | | } |
| | | this.getChildTasksList() |
| | | if (content.evaluate.length > 0) { |
| | | // content.evaluate.forEach((element) => { |
| | |
| | | item.teacherEvaluation = '' |
| | | }) |
| | | } |
| | | this.setData({ |
| | | |
| | | }); |
| | | if (this.data.name && this.data.school && this.data.class) { |
| | | this.setData({ |
| | | dataList: res.datas.cmsDatas[0].datas, |
| | |
| | | icon: 'none', |
| | | duration: 1000 |
| | | }) |
| | | return false |
| | | } else { |
| | | wx.showShareMenu({ |
| | | withShareTicket: true |