diff --git a/components/ContentDashboard.vue b/components/ContentDashboard.vue index 564fea5..d8de55d 100644 --- a/components/ContentDashboard.vue +++ b/components/ContentDashboard.vue @@ -3,7 +3,7 @@ - + {{ item.count }} {{ item.label }} @@ -169,6 +169,23 @@ const customerStatus = ref([ { label: '即将跟进', count: 1 } ]); +// 跳转到任务列表页 +const goToTaskList = (label) => { + // 将中文标签映射为状态参数 + const statusMap = { + '完成任务': 'completed', + '待完成任务': 'pending', + '即将预期': 'imminent', + '逾期任务': 'overdue' + }; + + const status = statusMap[label] || ''; + + uni.navigateTo({ + url: `/pages/task-list/index?status=${status}&label=${encodeURIComponent(label)}` + }); +}; + // 跳转到任务详情页 const goToTaskDetail = (task) => { // 将任务数据存储到本地,供详情页使用 diff --git a/pages.json b/pages.json index 697c408..b6da6bf 100644 --- a/pages.json +++ b/pages.json @@ -48,6 +48,12 @@ "navigationBarTitleText": "任务详情" } + }, + { + "path": "pages/task-list/index", + "style": { + "navigationBarTitleText": "任务列表" + } } ], diff --git a/pages/task-list/index.vue b/pages/task-list/index.vue new file mode 100644 index 0000000..e0008f7 --- /dev/null +++ b/pages/task-list/index.vue @@ -0,0 +1,450 @@ + + + + + +