// 门墩儿招聘 import enterprise from './components/recruit/enterprise' import personal from './components/recruit/personal' import Layout from '@/layout' import { setLoginType } from '@/utils/loginType' const recruit = [ // { // path: '/home', // redirect: '/recruitHome' // }, { path: '/recruit', redirect: '/recruitHome' }, { path: '/personal', // 不可删 // 个人账号登录时,缺省只能访问个人账号路由和不需要登录,防止用户在地址栏直接输入地址访问其他页面(不可删,permission中用到) redirect: '/recruitHome' }, { path: '/recruitHome', component: Layout, children: [ { path: '/recruitHome', component: () => import('@/views/recruit/personal/home'), name: 'recruitHome', meta: { title: '首页' } } ] }, { path: '/mall', component: Layout, children: [ { path: '/mall', component: () => import('@/views/mall/home/index'), name: 'mall', meta: { title: '门墩儿商城' } }, { path: '/mall/goodsList', component: () => import('@/views/mall/goodsList/index'), name: 'goodsList', meta: { title: '商品列表' } }, { path: '/mall/goodsDetail/:id', component: () => import('@/views/mall/components/details.vue'), name: 'goodsDetail', meta: { title: '商品详情' } }, { path: '/mall/pointExchange/records', component: () => import('@/views/mall/home/pointExchange/records.vue'), name: 'mallPointExchangeRecords', meta: { title: '积分兑换记录' } }, { path: '/mall/user', redirect: '/mall/user/order', component: () => import('@/views/mall/user/index.vue'), name: 'mallUser', meta: { title: '我的' }, children: [ // { // path: '/mall/user/cart', // component: () => import('@/views/mall/user/cart/index.vue'), // name: 'mallUserCart', // meta: { // title: '购物车', // enName: 'My Cart', // icon: 'mdi-cart-outline' // } // }, { path: '/mall/user/order', component: () => import('@/views/mall/user/order/index.vue'), name: 'mallUserOrder', meta: { title: '我的订单', enName: 'My Order', icon: 'mdi-order-bool-ascending' } }, { path: '/mall/user/address', component: () => import('@/views/mall/user/address/index.vue'), name: 'mallUserAddress', meta: { title: '收货地址', enName: 'Shipping Address', icon: 'mdi-map-marker-outline' } }, { path: '/mall/user/prize', component: () => import('@/views/mall/user/prize/index.vue'), name: 'mallUserPrize', meta: { title: '我的奖品', enName: 'My Award', icon: 'mdi-gift-outline' } } ] }, { path: '/mall/user/order/detail/:id', component: () => import('@/views/mall/user/order/detail.vue'), show: true, meta: { title: '订单详情' } }, // { // path: '/mall/order', // component: () => import('@/views/mall/order/index.vue'), // name: 'mallOrder', // meta: { // title: '我的订单' // } // }, { path: '/mall/cart', component: () => import('@/views/mall/cart/index.vue'), name: 'mallCart', meta: { title: '我的购物车' } }, { path: '/mall/payOver', component: () => import('@/views/mall/payOver/index.vue'), name: 'mallPayOver', meta: { title: '支付成功' } }, ] }, { path: '/pointsExchange', component: Layout, children: [ { path: '/pointsExchange', component: () => import('@/views/mall copy/index.vue'), name: 'pointsExchange', meta: { title: '门墩儿商城' } } ] }, { path: '/about', component: Layout, children: [ { path: '/about', component: () => import('@/views/about/index'), name: 'about', meta: { title: '了解门墩儿' } } ] }, { path: '/recruit/personal/position', component: Layout, name: 'recruit', children: [ { path: '/recruit/personal/recommend', component: () => import('@/views/recruit/personal/recommend'), name: 'recommendedPositions', meta: { title: '推荐' } }, { path: '/recruit/personal/position', component: () => import('@/views/recruit/personal/position'), name: 'recruitPosition', meta: { title: '职位' } }, { path: '/recruit/personal/company', component: () => import('@/views/recruit/personal/company'), name: 'recruitCompany', meta: { title: '公司' } }, { path: '/recruit/personal/position/details/:id', component: () => import('@/views/recruit/personal/position/components/details'), name: 'recruitPositionDetails', meta: { title: '职位详情' } } ] }, { path: '/recruit/personal/company/details/:id', component: Layout, name: 'companyDetails', meta: { title: '企业详情' }, children: [ { path: '/recruit/personal/company/details/:id', component: () => import('@/views/recruit/personal/companyDetail/index.vue'), meta: { title: '企业详情' }, } ] }, { path: '/qualificationCertificate', component: Layout, children: [ { path: '/qualificationCertificate', component: () => import('@/views/common/qualificationCertificate.vue'), name: 'QualificationCertificate' } ] }, ] setLoginType(recruit, 'personalCommon'), setLoginType(enterprise, 'enterprise'), setLoginType(personal, 'personal') const routeArray = [ ...recruit, ...enterprise, ...personal ] export default routeArray