diff --git a/components.d.ts b/components.d.ts index 0ed2f86..4d3bec8 100644 --- a/components.d.ts +++ b/components.d.ts @@ -32,6 +32,8 @@ declare module 'vue' { IonList: typeof import('@ionic/vue')['IonList'] IonPage: typeof import('@ionic/vue')['IonPage'] IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet'] + IonSegment: typeof import('@ionic/vue')['IonSegment'] + IonSegmentButton: typeof import('@ionic/vue')['IonSegmentButton'] IonSpinner: typeof import('@ionic/vue')['IonSpinner'] IonTabBar: typeof import('@ionic/vue')['IonTabBar'] IonTabButton: typeof import('@ionic/vue')['IonTabButton'] @@ -68,6 +70,8 @@ declare global { const IonList: typeof import('@ionic/vue')['IonList'] const IonPage: typeof import('@ionic/vue')['IonPage'] const IonRouterOutlet: typeof import('@ionic/vue')['IonRouterOutlet'] + const IonSegment: typeof import('@ionic/vue')['IonSegment'] + const IonSegmentButton: typeof import('@ionic/vue')['IonSegmentButton'] const IonSpinner: typeof import('@ionic/vue')['IonSpinner'] const IonTabBar: typeof import('@ionic/vue')['IonTabBar'] const IonTabButton: typeof import('@ionic/vue')['IonTabButton'] diff --git a/src/router/index.ts b/src/router/index.ts index d183e74..fdadc42 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -109,6 +109,11 @@ const routes: Array = [ component: () => import("@/views/recharge/records.vue"), meta: { requiresAuth: true }, }, + { + path: "/team", + component: () => import("@/views/team/index.vue"), + meta: { requiresAuth: true }, + }, ]; const router = createRouter({ diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 7cd3d87..7d0040a 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -91,7 +91,7 @@ function handleQuickAction(action: Action) { router.push("/check_in"); break; case "team": - console.log("团队中心"); + router.push("/team"); break; case "invite": router.push("/invite"); diff --git a/src/views/team/index.vue b/src/views/team/index.vue new file mode 100644 index 0000000..69c0d1b --- /dev/null +++ b/src/views/team/index.vue @@ -0,0 +1,576 @@ + + + + +