| | |
| | | this.setData({ |
| | | isUpdate: true, |
| | | tasksData: item1, |
| | | name: content.userName, |
| | | school: content.school, |
| | | class: content.class, |
| | | name: this.data.name || content.userName, |
| | | school: this.data.school || content.school, |
| | | class: this.data.class || content.class, |
| | | learnTime: content.learnTime, |
| | | }); |
| | | 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) => { |
| | | // if (this.data.consumer == 'classmate') { |
| | | // element.mateEvaluation = '' |
| | | // } |
| | | // if (this.data.consumer == 'teacher') { |
| | | // element.teacherEvaluation = '' |
| | | // } |
| | | // }) |
| | | this.setData({ |
| | | dataList: content.evaluate, |
| | | }); |
| | | this.getChildTasksList() |
| | | if (content.evaluate.length > 0) { |
| | | this.setData({ |
| | | dataList: content.evaluate, |
| | | }); |
| | | } |
| | | } else { |
| | | wx.showToast({ |
| | | title: "请先填写个人信息", |
| | | icon: 'none', |
| | | duration: 1000 |
| | | }) |
| | | } |
| | | } |
| | | } else { |
| | |
| | | <t-button class="btn" theme="primary" bind:tap="handleClose"> |
| | | <view slot="content" class="btn-content">取消</view> |
| | | </t-button> |
| | | |
| | | <t-button class="btn" theme="primary" bind:tap="confirmBtn1" wx:if="{{invitee == 'teacher' &&teacherEvaluated}}"> |
| | | <view slot="content" class="btn-content">确定</view> |
| | | </t-button> |