You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bocai_supplyChain_pc/src/router/index.js

365 lines
10 KiB
JavaScript

4 years ago
import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
const routes = [
{
path: "/",
name: "Home",
4 years ago
redirect: "/main",
4 years ago
component: () => import("../views/main.vue"),
2 years ago
4 years ago
children: [
2 years ago
4 years ago
{
path: "/main",
name: "Main",
component: () => import("../components/main/index.vue"),
4 years ago
// component: resolve => require(['../components/main/index.vue'],resolve)
4 years ago
},
4 years ago
{
path: "/list",
name: "JobList",
component: () => import("../components/FirstJob/joblist.vue"),
4 years ago
// component: resolve => require(['../components/FirstJob/joblist.vue'],resolve)
4 years ago
},
{
path: "/list1",
name: "JobList",
component: () => import("../components/FirstJob/joblist1.vue"),
},
4 years ago
{
4 years ago
path: "/detail",
4 years ago
name: "Detail",
component: () => import("../components/FirstJob/detail.vue"),
},
4 years ago
// {
// path: "/serviceoutlets",
// name: "serviceoutlets",
// // route level code-splitting
// // this generates a separate chunk (about.[hash].js) for this route
// // which is lazy-loaded when the route is visited.
// component: () => import("../components/ServiceOutlets/index.vue"),
// },
4 years ago
{
path: "/aboutus",
name: "aboutus",
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import("../components/AboutUs/index.vue"),
},
4 years ago
{
path: "/recordbill",
name: "recordbill",
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () => import("../components/FirstJob/recordBill.vue"),
},
{
path: "/recordsuccess",
name: "recordsuccess",
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
component: () =>
import("../components/FirstJob/components/recordSuccess.vue"),
},
4 years ago
{
path: "/login",
name: "login",
// component: () => import("../components/Login/login.vue"),
component: () => import("../views/login.vue"),
4 years ago
// redirect: "/login",
4 years ago
children: [
{
path: "/login",
name: "login",
component: () => import("../components/Login/login.vue"),
},
4 years ago
{
path: "/updatepsw",
name: "updatepsw",
component: () => import("../components/Login/updatepsw.vue"),
},
4 years ago
// {
// path: "/register",
// name: "register",
// component: () => import("../components/Login/register.vue"),
// },
4 years ago
],
},
4 years ago
{
path: "mytownsman",
name: "mytownsman",
component: () =>
import("../components/userinfo/usercenter/components/townsman.vue"),
},
{
path: "dataStatistics",
name: "dataStatistics",
component: () =>
import("../components/userinfo/usercenter/components/dataStatistics.vue"),
},
4 years ago
{
path: "mybill",
name: "mybill",
component: () =>
import("../components/userinfo/usercenter/components/mybill.vue"),
4 years ago
// component: resolve => require(['../components/userinfo/usercenter/components/mybill.vue'],resolve)
4 years ago
},
4 years ago
{
2 years ago
path: "merchantManagement",
name: "merchantManagement",
component: () => import("../components/merchantManagement/index.vue"),
redirect: "merchantManagement/memberInfo",
children: [
{
path: "memberInfo",
name: "memberinfo",
component: () => import("../components/merchantManagement/memberInfo.vue"),
},
{
path: "bocaiTV",
name: "bocaiTV",
component: () => import(
"../components/userinfo/accountsetting/components/bocaiTV.vue"
),
},
{
path: "dataScreen",
name: "dataScreen",
component: () => import("../components/merchantManagement/dataScreen.vue"),
},
]
4 years ago
},
2 years ago
4 years ago
{
path: "accountsetting",
name: "accountsetting",
2 years ago
component: () => import("../components/userinfo/accountsetting/inedex.vue"),
4 years ago
redirect: "accountsetting/boundtel",
4 years ago
children: [
{
path: "loginpsw",
name: "loginpsw",
component: () =>
import(
"../components/userinfo/accountsetting/components/loginpsw.vue"
),
},
{
path: "boundtel",
name: "boundtel",
component: () =>
import(
"../components/userinfo/accountsetting/components/boundtel.vue"
),
},
{
path: "boundwx",
name: "boundwx",
component: () =>
import(
"../components/userinfo/accountsetting/components/boundwx.vue"
),
},
{
path: "boundbankcard",
name: "boundbankcard",
component: () =>
import(
"../components/userinfo/accountsetting/components/boundbankcard.vue"
),
},
{
path: "realname",
name: "realname",
component: () =>
import(
"../components/userinfo/accountsetting/components/realname.vue"
),
},
{
path: "myintegral",
name: "myintegral",
component: () =>
import(
"../components/userinfo/usercenter/components/myintegral.vue"
),
},
{
path: "mycard",
name: "mycard",
component: () =>
import("../components/userinfo/usercenter/components/mycard.vue"),
},
{
path: "mybalance",
name: "mybalance",
component: () =>
import(
"../components/userinfo/usercenter/components/mybalance.vue"
),
},
3 years ago
{
path: "bocaiTV",
name: "bocaiTV",
component: () =>
import(
"../components/userinfo/accountsetting/components/bocaiTV.vue"
),
},
4 years ago
],
},
4 years ago
],
},
2 years ago
{
path: "/largeScreen",
name: "largeScreen",
component: () => import("../components/screen/largeScreen.vue"),
// component: resolve => require(['../components/FirstJob/joblist.vue'],resolve)
},
4 years ago
{
path: "/userinfo",
name: "userinfo",
component: () => import("../views/userinfo.vue"),
redirect: "usercenter",
children: [
{
path: "usercenter",
name: "usercenter",
component: () => import("../components/userinfo/usercenter/index.vue"),
4 years ago
redirect: "usercenter/myintegral",
4 years ago
children: [
4 years ago
// {
// path: "townsman",
// name: "townsman",
// component: () =>
// import(
// "../components/userinfo/usercenter/components/townsman.vue"
// ),
// },
// {
// path: "mybill",
// name: "mybill",
// component: () =>
// import("../components/userinfo/usercenter/components/mybill.vue"),
// },
4 years ago
{
4 years ago
path: "myintegral",
name: "myintegral",
4 years ago
component: () =>
import(
4 years ago
"../components/userinfo/usercenter/components/myintegral.vue"
4 years ago
),
},
{
path: "mycard",
name: "mycard",
component: () =>
import("../components/userinfo/usercenter/components/mycard.vue"),
},
{
path: "mybalance",
name: "mybalance",
component: () =>
import(
"../components/userinfo/usercenter/components/mybalance.vue"
),
},
],
},
4 years ago
4 years ago
{
path: "mytownsman",
name: "mytownsman",
component: () =>
import("../components/userinfo/usercenter/components/townsman.vue"),
},
{
path: "mybill",
name: "mybill",
component: () =>
import("../components/userinfo/usercenter/components/mybill.vue"),
},
4 years ago
],
},
2 years ago
{
path: "/merchantBack",
name: "merchantBack",
2 years ago
redirect: "merchantBack/workBench",
2 years ago
component: () => import("../views/merchantBack.vue"),
children: [
{
path: "memberInfo",
name: "MemberInfo",
component: () => import("../components/merchantManagement/memberInfo.vue"),
},
{
path: "dataStatistics",
name: "DataStatistics",
component: () => import("../components/userinfo/usercenter/components/dataStatistics.vue"),
},
{
path: "bocaiTV",
name: "BocaiTV",
component: () => import(
"../components/userinfo/accountsetting/components/bocaiTV.vue"
),
},
2 years ago
// 数据大屏
2 years ago
{
path: "dataScreen",
name: "DataScreen",
component: () => import("../components/merchantManagement/dataScreen.vue"),
},
2 years ago
// 角色管理
2 years ago
{
2 years ago
path: "roleManagement",
name: "RoleManagement",
component: () => import("../components/merchantManagement/roleManagement.vue"),
2 years ago
},
{
path: "workBench",
name: "WorkBench",
component: () => import("../components/merchantManagement/workBench.vue"),
},
{
path: "notificationCenter",
name: "NotificationCenter",
component: () => import("../components/merchantManagement/notificationCenter.vue"),
},
2 years ago
]
},
4 years ago
{
path: "*",
name: "404",
component: () => import("../views/404.vue"),
},
4 years ago
// {
// path: "/login",
// name: "Loginpage",
// component: () => import("../views/login.vue"),
// redirect: "/login",
// children: [
// {
// path: "/register",
// name: "register",
// component: () => import("../components/Login/register.vue"),
// },
// ],
// },
4 years ago
];
const router = new VueRouter({
routes,
});
export default router;