134 lines
3.1 KiB
TypeScript
134 lines
3.1 KiB
TypeScript
import type { RouteRecordRaw } from "vue-router";
|
|
|
|
const customerRoutes: RouteRecordRaw[] = [
|
|
{
|
|
path: "/customer/quick-sign-in",
|
|
name: "QuickSignInPage",
|
|
component: () => import("@/pages/home/QuickSignInPage.vue"),
|
|
meta: {
|
|
depth: 3,
|
|
navBarVisible: true,
|
|
navBarCanBack: true,
|
|
navBarTitle: "快速扫码登记",
|
|
tabBarVisible: false,
|
|
bodyBackground: "#F5F5F8",
|
|
darkBodyBackground: "#10161f"
|
|
}
|
|
},
|
|
{
|
|
path: "/customer/registration",
|
|
name: "CustomerEventRecordCreate",
|
|
component: () => import("@/pages/event/EventRecordEdit.vue"),
|
|
meta: {
|
|
depth: 3,
|
|
navBarVisible: true,
|
|
navBarCanBack: true,
|
|
navBarTitle: "登记",
|
|
tabBarVisible: false,
|
|
bodyBackground: "#F5F5F8",
|
|
darkBodyBackground: "#10161f"
|
|
}
|
|
},
|
|
{
|
|
path: "/management/customers",
|
|
name: "CustomerList",
|
|
component: () => import("@/pages/customer/CustomerList.vue"),
|
|
meta: {
|
|
depth: 3,
|
|
navBarVisible: true,
|
|
navBarCanBack: true,
|
|
navBarTitle: "客户管理",
|
|
tabBarVisible: false,
|
|
bodyBackground: "#F5F5F8",
|
|
darkBodyBackground: "#10161f"
|
|
}
|
|
},
|
|
{
|
|
path: "/management/customer-invite-rank",
|
|
name: "CustomerInviteRank",
|
|
component: () => import("@/pages/customer/CustomerInviteRank.vue"),
|
|
meta: {
|
|
depth: 3,
|
|
navBarVisible: true,
|
|
navBarCanBack: true,
|
|
navBarTitle: "客户邀请排行",
|
|
tabBarVisible: false,
|
|
bodyBackground: "#F5F5F8",
|
|
darkBodyBackground: "#10161f"
|
|
}
|
|
},
|
|
{
|
|
path: "/management/customer-invite-relation",
|
|
name: "CustomerInviteRelation",
|
|
component: () => import("@/pages/customer/CustomerInviteRelation.vue"),
|
|
meta: {
|
|
depth: 3,
|
|
navBarVisible: true,
|
|
navBarCanBack: true,
|
|
navBarTitle: "客户邀请关系",
|
|
tabBarVisible: false,
|
|
bodyBackground: "#F5F5F8",
|
|
darkBodyBackground: "#10161f"
|
|
}
|
|
},
|
|
{
|
|
path: "/management/customers/create",
|
|
name: "CustomerCreate",
|
|
component: () => import("@/pages/customer/CustomerEdit.vue"),
|
|
meta: {
|
|
depth: 4,
|
|
navBarVisible: true,
|
|
navBarCanBack: true,
|
|
navBarTitle: "新增客户",
|
|
tabBarVisible: false,
|
|
bodyBackground: "#F5F5F8",
|
|
darkBodyBackground: "#10161f"
|
|
}
|
|
},
|
|
{
|
|
path: "/management/customers/:id",
|
|
name: "CustomerDetail",
|
|
component: () => import("@/pages/customer/CustomerDetail.vue"),
|
|
meta: {
|
|
depth: 4,
|
|
navBarVisible: true,
|
|
navBarCanBack: true,
|
|
navBarTitle: "客户详情",
|
|
tabBarVisible: false,
|
|
bodyBackground: "#F5F5F8",
|
|
darkBodyBackground: "#10161f"
|
|
}
|
|
},
|
|
{
|
|
path: "/management/customers/:id/invitees",
|
|
name: "CustomerInviteeList",
|
|
component: () => import("@/pages/customer/CustomerInviteeList.vue"),
|
|
meta: {
|
|
depth: 5,
|
|
navBarVisible: true,
|
|
navBarCanBack: true,
|
|
navBarTitle: "邀请客户",
|
|
tabBarVisible: false,
|
|
bodyBackground: "#F5F5F8",
|
|
darkBodyBackground: "#10161f"
|
|
}
|
|
},
|
|
{
|
|
path: "/management/customers/:id/edit",
|
|
name: "CustomerEdit",
|
|
component: () => import("@/pages/customer/CustomerEdit.vue"),
|
|
meta: {
|
|
depth: 5,
|
|
navBarVisible: true,
|
|
navBarCanBack: true,
|
|
navBarTitle: "编辑客户",
|
|
tabBarVisible: false,
|
|
bodyBackground: "#F5F5F8",
|
|
darkBodyBackground: "#10161f"
|
|
}
|
|
}
|
|
];
|
|
|
|
export default customerRoutes;
|
|
|