From aff8d054df4a638f399dc8f15d98c19b9c9aa785 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期二, 29 四月 2025 10:11:25 +0800
Subject: [PATCH] 扫码视频播放

---
 packageBookService/pages/bookServices/detail/components/learnTask/index.js |   38 ++++++++++++++++++--------------------
 1 files changed, 18 insertions(+), 20 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/learnTask/index.js b/packageBookService/pages/bookServices/detail/components/learnTask/index.js
index 623da29..fc23647 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) {
@@ -268,26 +268,24 @@
                 name: content.userName,
                 school: content.school,
                 class: content.class,
-                learnTime: content.learnTime,
+                learnTime: this.data.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 {

--
Gitblit v1.9.1