123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267 |
- // 门墩儿招聘
- 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/confirm_order',
- component: () => import('@/views/mall/components/confirm_order'),
- name: 'confirmOrder',
- 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/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/settlement/:id',
- component: () => import('@/views/mall/settlement/index.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
|