mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-07 01:46:44 +08:00
移动端增加老系统任务的跳转
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user