From f8f448ee269d99595abe9c1a3de1a0987843f731 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期日, 29 九月 2024 10:10:23 +0800
Subject: [PATCH] rwd

---
 packageBookService/pages/bookServices/detail/components/learnTask/index.js |   64 +++++++++++++++-----------------
 1 files changed, 30 insertions(+), 34 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/learnTask/index.js b/packageBookService/pages/bookServices/detail/components/learnTask/index.js
index 9908f90..db81061 100644
--- a/packageBookService/pages/bookServices/detail/components/learnTask/index.js
+++ b/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) {
@@ -176,7 +176,7 @@
             menuList: dataList,
             loading: false,
           });
-        }, 200)
+        }, 500)
         if (this.data.taskId) {
           setTimeout(() => {
             this.data.menuList.forEach((item) => {
@@ -194,7 +194,7 @@
                 })
               }
             })
-          }, 200)
+          }, 500)
         } else {
           setTimeout(() => {
             if (this.data.menuList[0].children) {
@@ -206,12 +206,12 @@
                 taskInfo: this.data.menuList[0],
               });
             }
-          }, 200)
+          }, 500)
         }
       }
       setTimeout(() => {
         this.getTasksList()
-      }, 200)
+      }, 500)
     })
   },
   getTask(e) {
@@ -269,21 +269,23 @@
                 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 {
@@ -327,9 +329,6 @@
           item.teacherEvaluation = ''
         })
       }
-      this.setData({
-
-      });
       if (this.data.name && this.data.school && this.data.class) {
         this.setData({
           dataList: res.datas.cmsDatas[0].datas,
@@ -592,19 +591,16 @@
   },
 
   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 = []

--
Gitblit v1.9.1