diff --git a/frontend/src/components/MobileLayout.vue b/frontend/src/components/MobileLayout.vue index 944d253..70f91f0 100644 --- a/frontend/src/components/MobileLayout.vue +++ b/frontend/src/components/MobileLayout.vue @@ -8,25 +8,15 @@ const router = useRouter() const auth = useAuthStore() const tabs = [ - { - path: '/m', - label: '首页', - icon: 'home', - }, - { - path: '/m/visit/new', - label: '拜访', - icon: 'visit', - }, - { - path: '/m/note/new', - label: '纪要', - icon: 'note', - }, + { path: '/m', label: '首页', icon: 'home' }, + { path: '/m/work', label: '工作', icon: 'work' }, + { path: '/m/visit/new', label: '拜访', icon: 'visit' }, + { path: '/m/note/new', label: '纪要', icon: 'note' }, ] const activeTab = computed(() => { if (route.path === '/m') return '/m' + if (route.path === '/m/work' || route.path.startsWith('/m/plans') || route.path.startsWith('/m/mini-biz') || route.path.startsWith('/m/key-visits') || route.path.startsWith('/m/leaves') || route.path.startsWith('/m/leave')) return '/m/work' if (route.path.includes('/visit')) return '/m/visit/new' if (route.path.includes('/note')) return '/m/note/new' return route.path @@ -76,6 +66,11 @@ const activeTab = computed(() => { + + + + + diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index d6807f8..f3893cc 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -35,6 +35,7 @@ const router = createRouter({ component: () => import('@/components/MobileLayout.vue'), children: [ { path: '', name: 'MobileHome', component: () => import('@/views/mobile/Home.vue') }, + { path: 'work', name: 'WorkCenter', component: () => import('@/views/mobile/WorkCenter.vue') }, { path: 'visit/new', name: 'VisitForm', component: () => import('@/views/mobile/VisitForm.vue') }, { path: 'visit/:id/edit', name: 'VisitEdit', component: () => import('@/views/mobile/VisitForm.vue') }, { path: 'work-plan/new', name: 'WorkPlanForm', component: () => import('@/views/mobile/WorkPlanForm.vue') }, @@ -42,6 +43,9 @@ const router = createRouter({ { path: 'key-visit/new', name: 'KeyVisitForm', component: () => import('@/views/mobile/KeyVisitForm.vue') }, { path: 'note/new', name: 'DailyNoteForm', component: () => import('@/views/mobile/DailyNoteForm.vue') }, { path: 'note/:id/edit', name: 'DailyNoteEdit', component: () => import('@/views/mobile/DailyNoteForm.vue') }, + { path: 'plans', name: 'PlansList', component: () => import('@/views/mobile/PlansList.vue') }, + { path: 'mini-biz', name: 'MiniBizList', component: () => import('@/views/mobile/MiniBizList.vue') }, + { path: 'key-visits', name: 'KeyVisitsList', component: () => import('@/views/mobile/KeyVisitsList.vue') }, { path: 'leaves', name: 'LeavesList', component: () => import('@/views/mobile/LeavesList.vue') }, { path: 'leave/new', name: 'LeaveForm', component: () => import('@/views/mobile/LeaveForm.vue') }, { path: 'leave/:id/edit', name: 'LeaveEdit', component: () => import('@/views/mobile/LeaveForm.vue') }, diff --git a/frontend/src/views/mobile/Home.vue b/frontend/src/views/mobile/Home.vue index f7d4bb8..0fbcd6e 100644 --- a/frontend/src/views/mobile/Home.vue +++ b/frontend/src/views/mobile/Home.vue @@ -99,38 +99,6 @@ onMounted(loadToday) - - -
今日记录 diff --git a/frontend/src/views/mobile/KeyVisitsList.vue b/frontend/src/views/mobile/KeyVisitsList.vue new file mode 100644 index 0000000..b026e7e --- /dev/null +++ b/frontend/src/views/mobile/KeyVisitsList.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/frontend/src/views/mobile/MiniBizList.vue b/frontend/src/views/mobile/MiniBizList.vue new file mode 100644 index 0000000..ca87c9a --- /dev/null +++ b/frontend/src/views/mobile/MiniBizList.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/frontend/src/views/mobile/PlansList.vue b/frontend/src/views/mobile/PlansList.vue new file mode 100644 index 0000000..477efcd --- /dev/null +++ b/frontend/src/views/mobile/PlansList.vue @@ -0,0 +1,92 @@ + + + + + diff --git a/frontend/src/views/mobile/WorkCenter.vue b/frontend/src/views/mobile/WorkCenter.vue new file mode 100644 index 0000000..441780b --- /dev/null +++ b/frontend/src/views/mobile/WorkCenter.vue @@ -0,0 +1,78 @@ + + + + +