From 6800be033ffcd618d8b0b819fed8235a19d6b136 Mon Sep 17 00:00:00 2001 From: litian <C21AF165> Date: 星期三, 25 九月 2024 16:18:15 +0800 Subject: [PATCH] cs --- packageBookService/pages/bookServices/detail/components/learnTask/index.js | 32 ++++++++++++++++++++++++-------- 1 files changed, 24 insertions(+), 8 deletions(-) diff --git a/packageBookService/pages/bookServices/detail/components/learnTask/index.js b/packageBookService/pages/bookServices/detail/components/learnTask/index.js index 8cf3f61..9908f90 100644 --- a/packageBookService/pages/bookServices/detail/components/learnTask/index.js +++ b/packageBookService/pages/bookServices/detail/components/learnTask/index.js @@ -33,7 +33,22 @@ dialogVisible: false, invitee: "", teacherEvaluated: false, - evaluated: false + evaluated: false, + rowCol: [{ + width: '50%', + }, + { + width: '100%' + }, + { + width: '80%' + }, + { + width: '100%' + }, { + width: '100%' + }, + ], }, onShow() { var that = this; @@ -54,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 @@ -63,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 @@ -161,7 +176,7 @@ menuList: dataList, loading: false, }); - }, 500) + }, 200) if (this.data.taskId) { setTimeout(() => { this.data.menuList.forEach((item) => { @@ -179,7 +194,7 @@ }) } }) - }, 500) + }, 200) } else { setTimeout(() => { if (this.data.menuList[0].children) { @@ -191,10 +206,12 @@ taskInfo: this.data.menuList[0], }); } - }, 500) + }, 200) } } - this.getTasksList() + setTimeout(() => { + this.getTasksList() + }, 200) }) }, getTask(e) { @@ -229,7 +246,6 @@ this.setData({ tasksListData: res.datas, }); - if (this.data.taskInfo.name) { this.taskSelect(this.data.taskInfo) } -- Gitblit v1.9.1