recruit.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. // 门墩儿招聘
  2. import enterprise from './components/recruit/enterprise'
  3. import personal from './components/recruit/personal'
  4. import Layout from '@/layout'
  5. import { setLoginType } from '@/utils/loginType'
  6. const recruit = [
  7. // {
  8. // path: '/home',
  9. // redirect: '/recruitHome'
  10. // },
  11. {
  12. path: '/recruit',
  13. redirect: '/recruitHome'
  14. },
  15. {
  16. path: '/personal', // 不可删 // 个人账号登录时,缺省只能访问个人账号路由和不需要登录,防止用户在地址栏直接输入地址访问其他页面(不可删,permission中用到)
  17. redirect: '/recruitHome'
  18. },
  19. {
  20. path: '/recruitHome',
  21. component: Layout,
  22. children: [
  23. {
  24. path: '/recruitHome',
  25. component: () => import('@/views/recruit/personal/home'),
  26. name: 'recruitHome',
  27. meta: {
  28. title: '首页'
  29. }
  30. }
  31. ]
  32. },
  33. {
  34. path: '/mall',
  35. component: Layout,
  36. children: [
  37. {
  38. path: '/mall',
  39. component: () => import('@/views/mall/home/index'),
  40. name: 'mall',
  41. meta: {
  42. title: '门墩儿商城'
  43. }
  44. },
  45. {
  46. path: '/wareDetails/:id',
  47. component: () => import('@/views/mall/components/details.vue'),
  48. name: 'wareDetails',
  49. meta: {
  50. title: '商品详情'
  51. }
  52. }
  53. ]
  54. },
  55. {
  56. path: '/about',
  57. component: Layout,
  58. children: [
  59. {
  60. path: '/about',
  61. component: () => import('@/views/about/index'),
  62. name: 'about',
  63. meta: {
  64. title: '了解门墩儿'
  65. }
  66. }
  67. ]
  68. },
  69. {
  70. path: '/recruit/personal/position',
  71. component: Layout,
  72. name: 'recruit',
  73. children: [
  74. {
  75. path: '/recruit/personal/recommend',
  76. component: () => import('@/views/recruit/personal/recommend'),
  77. name: 'recommendedPositions',
  78. meta: {
  79. title: '推荐'
  80. }
  81. },
  82. {
  83. path: '/recruit/personal/position',
  84. component: () => import('@/views/recruit/personal/position'),
  85. name: 'recruitPosition',
  86. meta: {
  87. title: '职位'
  88. }
  89. },
  90. {
  91. path: '/recruit/personal/company',
  92. component: () => import('@/views/recruit/personal/company'),
  93. name: 'recruitCompany',
  94. meta: {
  95. title: '公司'
  96. }
  97. },
  98. {
  99. path: '/recruit/personal/position/details/:id',
  100. component: () => import('@/views/recruit/personal/position/components/details'),
  101. name: 'recruitPositionDetails',
  102. meta: {
  103. title: '职位详情'
  104. }
  105. }
  106. ]
  107. },
  108. {
  109. path: '/recruit/personal/company/details/:id',
  110. component: Layout,
  111. name: 'companyDetails',
  112. meta: {
  113. title: '企业详情'
  114. },
  115. children: [
  116. {
  117. path: '/recruit/personal/company/details/:id',
  118. component: () => import('@/views/recruit/personal/companyDetail/index.vue'),
  119. meta: {
  120. title: '企业详情'
  121. },
  122. }
  123. ]
  124. },
  125. {
  126. path: '/qualificationCertificate',
  127. component: Layout,
  128. children: [
  129. {
  130. path: '/qualificationCertificate',
  131. component: () => import('@/views/common/qualificationCertificate.vue'),
  132. name: 'QualificationCertificate'
  133. }
  134. ]
  135. },
  136. ]
  137. setLoginType(recruit, 'personalCommon'),
  138. setLoginType(enterprise, 'enterprise'),
  139. setLoginType(personal, 'personal')
  140. const routeArray = [
  141. ...recruit,
  142. ...enterprise,
  143. ...personal
  144. ]
  145. export default routeArray