rwd
litian
2024-09-27 46227c41fe5dab991f6c9ab30c9bb318e6eea4fa
packageBookService/pages/bookServices/detail/components/learnTask/index.js
@@ -99,7 +99,7 @@
    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) {
@@ -265,29 +265,27 @@
              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 {