From 2abf00efb6d83426ad84342f17252a36aeb5a4e1 Mon Sep 17 00:00:00 2001
From: litian <C21AF165>
Date: 星期五, 27 九月 2024 16:09:29 +0800
Subject: [PATCH] rwd

---
 packageBookService/pages/bookServices/detail/components/learnTask/index.js |   25 +++++++++++++------------
 1 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/packageBookService/pages/bookServices/detail/components/learnTask/index.js b/packageBookService/pages/bookServices/detail/components/learnTask/index.js
index 5ea7969..76bbb34 100644
--- a/packageBookService/pages/bookServices/detail/components/learnTask/index.js
+++ b/packageBookService/pages/bookServices/detail/components/learnTask/index.js
@@ -69,7 +69,7 @@
       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
@@ -78,7 +78,7 @@
         this.setData({
           cmsPath: options.cmsPath,
           bookId: options.bookId,
-          taskId: options.bookId,
+          taskId: options.taskId,
           consumer: options.consumer,
           userId: options.userId,
           disabled: true
@@ -176,7 +176,7 @@
             menuList: dataList,
             loading: false,
           });
-        }, 500)
+        }, 200)
         if (this.data.taskId) {
           setTimeout(() => {
             this.data.menuList.forEach((item) => {
@@ -194,7 +194,7 @@
                 })
               }
             })
-          }, 500)
+          }, 200)
         } else {
           setTimeout(() => {
             if (this.data.menuList[0].children) {
@@ -206,10 +206,12 @@
                 taskInfo: this.data.menuList[0],
               });
             }
-          }, 500)
+          }, 200)
         }
       }
-      this.getTasksList()
+      setTimeout(() => {
+        this.getTasksList()
+      }, 200)
     })
   },
   getTask(e) {
@@ -244,7 +246,6 @@
       this.setData({
         tasksListData: res.datas,
       });
-
       if (this.data.taskInfo.name) {
         this.taskSelect(this.data.taskInfo)
       }
@@ -268,8 +269,12 @@
                 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) => {
@@ -326,9 +331,6 @@
           item.teacherEvaluation = ''
         })
       }
-      this.setData({
-
-      });
       if (this.data.name && this.data.school && this.data.class) {
         this.setData({
           dataList: res.datas.cmsDatas[0].datas,
@@ -597,7 +599,6 @@
         icon: 'none',
         duration: 1000
       })
-      return false
     } else {
       wx.showShareMenu({
         withShareTicket: true

--
Gitblit v1.9.1