recruit.js 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  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: '/recruit',
  9. redirect: '/recruitHome'
  10. },
  11. {
  12. path: '/personal', // 不可删 // 个人账号登录时,缺省只能访问个人账号路由和不需要登录,防止用户在地址栏直接输入地址访问其他页面(不可删,permission中用到)
  13. redirect: '/recruitHome'
  14. },
  15. {
  16. path: '/recruitHome',
  17. component: Layout,
  18. children: [
  19. {
  20. path: '/recruitHome',
  21. component: () => import('@/views/recruit/personal/home'),
  22. name: 'recruitHome',
  23. meta: {
  24. title: '首页'
  25. }
  26. }
  27. ]
  28. },
  29. {
  30. path: '/mall',
  31. component: Layout,
  32. children: [
  33. {
  34. path: '/mall',
  35. component: () => import('@/views/mall/home/index'),
  36. name: 'mall',
  37. meta: {
  38. title: '门墩儿商城'
  39. }
  40. },
  41. {
  42. path: '/mall/goodsList',
  43. component: () => import('@/views/mall/goodsList/index'),
  44. name: 'goodsList',
  45. meta: {
  46. title: '商品列表'
  47. }
  48. },
  49. {
  50. path: '/mall/confirm_order',
  51. component: () => import('@/views/mall/components/confirm_order'),
  52. name: 'confirmOrder',
  53. meta: {
  54. title: '购买支付'
  55. }
  56. },
  57. {
  58. path: '/mall/goodsDetail/:id',
  59. component: () => import('@/views/mall/components/details.vue'),
  60. name: 'goodsDetail',
  61. meta: {
  62. title: '商品详情'
  63. }
  64. },
  65. {
  66. path: '/mall/cart',
  67. component: () => import('@/views/mall/cart/index.vue'),
  68. name: 'mallCart',
  69. meta: {
  70. title: '我的购物车'
  71. }
  72. },
  73. {
  74. path: '/mall/payOver',
  75. component: () => import('@/views/mall/payOver/index.vue'),
  76. name: 'mallPayOver',
  77. meta: {
  78. title: '支付成功'
  79. }
  80. },
  81. ]
  82. },
  83. {
  84. path: '/mall/order/detail/:id',
  85. component: Layout,
  86. children: [
  87. {
  88. path: '/mall/order/detail/:id',
  89. component: () => import('@/views/recruit/personal/PersonalCenter/tradeOrder/components/detail.vue'),
  90. name: 'mallOrderDetail',
  91. meta: {
  92. title: '商城订单详情'
  93. }
  94. }
  95. ]
  96. },
  97. {
  98. path: '/pointsExchange',
  99. component: Layout,
  100. children: [
  101. {
  102. path: '/pointsExchange',
  103. component: () => import('@/views/mall copy/index.vue'),
  104. name: 'pointsExchange',
  105. meta: {
  106. title: '门墩儿商城'
  107. }
  108. }
  109. ]
  110. },
  111. {
  112. path: '/about',
  113. component: Layout,
  114. children: [
  115. {
  116. path: '/about',
  117. component: () => import('@/views/about/index'),
  118. name: 'about',
  119. meta: {
  120. title: '了解门墩儿'
  121. }
  122. }
  123. ]
  124. },
  125. {
  126. path: '/recruit/personal/position',
  127. component: Layout,
  128. name: 'recruit',
  129. children: [
  130. {
  131. path: '/recruit/personal/recommend',
  132. component: () => import('@/views/recruit/personal/recommend'),
  133. name: 'recommendedPositions',
  134. meta: {
  135. title: '推荐'
  136. }
  137. },
  138. {
  139. path: '/recruit/personal/position',
  140. component: () => import('@/views/recruit/personal/position'),
  141. name: 'recruitPosition',
  142. meta: {
  143. title: '职位'
  144. }
  145. },
  146. {
  147. path: '/recruit/personal/company',
  148. component: () => import('@/views/recruit/personal/company'),
  149. name: 'recruitCompany',
  150. meta: {
  151. title: '公司'
  152. }
  153. },
  154. {
  155. path: '/recruit/personal/position/details/:id',
  156. component: () => import('@/views/recruit/personal/position/components/details'),
  157. name: 'recruitPositionDetails',
  158. meta: {
  159. title: '职位详情'
  160. }
  161. }
  162. ]
  163. },
  164. {
  165. path: '/recruit/personal/company/details/:id',
  166. component: Layout,
  167. name: 'companyDetails',
  168. meta: {
  169. title: '企业详情'
  170. },
  171. children: [
  172. {
  173. path: '/recruit/personal/company/details/:id',
  174. component: () => import('@/views/recruit/personal/companyDetail/index.vue'),
  175. meta: {
  176. title: '企业详情'
  177. },
  178. }
  179. ]
  180. },
  181. {
  182. path: '/qualificationCertificate',
  183. component: Layout,
  184. children: [
  185. {
  186. path: '/qualificationCertificate',
  187. component: () => import('@/views/common/qualificationCertificate.vue'),
  188. name: 'QualificationCertificate'
  189. }
  190. ]
  191. },
  192. ]
  193. setLoginType(recruit, 'personalCommon'),
  194. setLoginType(enterprise, 'enterprise'),
  195. setLoginType(personal, 'personal')
  196. const routeArray = [
  197. ...recruit,
  198. ...enterprise,
  199. ...personal
  200. ]
  201. export default routeArray