移动端增加老系统任务的跳转

This commit is contained in:
daihh
2023-03-09 23:04:12 +08:00
parent 796b0ed6c5
commit 8354c9f0dc

View File

@@ -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&params='+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;