From 8354c9f0dc4ada8a91cdfde2e8aac71deaf63cc6 Mon Sep 17 00:00:00 2001 From: daihh Date: Thu, 9 Mar 2023 23:04:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=80=81=E7=B3=BB=E7=BB=9F=E4=BB=BB=E5=8A=A1=E7=9A=84=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/study/index.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/study/index.vue b/pages/study/index.vue index b335d93..aaed916 100644 --- a/pages/study/index.vue +++ b/pages/study/index.vue @@ -282,6 +282,11 @@ }, mounted() { window.addEventListener('click',this.reSetList); + apiManage.getTaskNum().then(res => { + if(res.code==200){ + this.value=res.data.todoTaskCounts; + } + }); }, onPullDownRefresh() { this.onReachBottom(); @@ -489,6 +494,8 @@ }else if(task.cmtask_type==2){ //学习项目 let params=encodeURIComponent('projectId='+task.cmtask_id); taskUrl='/pages/forward?to=/student-h5/projectdetails¶ms='+params; + }else if(task.cmtask_type==3){ + taskUrl='/pages/study/loaddetail?id=' + task.cmtask_id } uni.navigateTo({ url: taskUrl @@ -524,7 +531,7 @@ } //下面的isOne没有看太明白,后续要去掉 if (this.isOne) { - this.value = this.taskCount; + //this.value = this.taskCount; } if (this.isOne && res.data.records.length == 0) { this.tabIndex = 1;