recruit.js 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. // 门墩儿招聘
  2. import teacher from './components/recruit/teacher'
  3. import enterprise from './components/recruit/enterprise'
  4. import personal from './components/recruit/personal'
  5. import Layout from '@/layout'
  6. import { setCommonPage } from '@/utils/dealData'
  7. const recruit = [
  8. {
  9. path: '/recruit',
  10. redirect: '/recruitHome'
  11. },
  12. {
  13. path: '/personal', // 不可删 // 个人账号登录时,缺省只能访问个人账号路由和不需要登录,防止用户在地址栏直接输入地址访问其他页面(不可删,permission中用到)
  14. redirect: '/recruitHome'
  15. },
  16. {
  17. path: '/recruitHome',
  18. component: Layout,
  19. children: [
  20. {
  21. path: '/recruitHome',
  22. component: () => import('@/views/recruit/personal/home'),
  23. name: 'recruitHome',
  24. meta: {
  25. title: '首页'
  26. }
  27. }
  28. ]
  29. },
  30. {
  31. path: '/mall',
  32. component: Layout,
  33. children: [
  34. {
  35. path: '/mall',
  36. component: () => import('@/views/mall/home/index'),
  37. name: 'mall',
  38. meta: {
  39. title: '门墩儿商城'
  40. }
  41. },
  42. {
  43. path: '/mall/goodsList',
  44. component: () => import('@/views/mall/goodsList/index'),
  45. name: 'goodsList',
  46. meta: {
  47. title: '商品列表'
  48. }
  49. },
  50. {
  51. path: '/mall/confirm_order',
  52. component: () => import('@/views/mall/components/confirm_order'),
  53. name: 'confirmOrder',
  54. meta: {
  55. title: '购买支付'
  56. }
  57. },
  58. {
  59. path: '/mall/goodsDetail/:id',
  60. component: () => import('@/views/mall/components/details.vue'),
  61. name: 'goodsDetail',
  62. meta: {
  63. title: '商品详情'
  64. }
  65. },
  66. {
  67. path: '/mall/cart',
  68. component: () => import('@/views/mall/cart/index.vue'),
  69. name: 'mallCart',
  70. meta: {
  71. title: '我的购物车'
  72. }
  73. },
  74. {
  75. path: '/mall/payOver',
  76. component: () => import('@/views/mall/payOver/index.vue'),
  77. name: 'mallPayOver',
  78. meta: {
  79. title: '支付成功'
  80. }
  81. },
  82. ]
  83. },
  84. {
  85. path: '/mall/order/detail/:id',
  86. component: Layout,
  87. children: [
  88. {
  89. path: '/mall/order/detail/:id',
  90. component: () => import('@/views/recruit/personal/PersonalCenter/tradeOrder/components/detail.vue'),
  91. name: 'mallOrderDetail',
  92. meta: {
  93. title: '商城订单详情'
  94. }
  95. }
  96. ]
  97. },
  98. {
  99. path: '/pointsExchange',
  100. component: Layout,
  101. children: [
  102. {
  103. path: '/pointsExchange',
  104. component: () => import('@/views/mall1/index.vue'),
  105. name: 'pointsExchange',
  106. meta: {
  107. title: '门墩儿商城'
  108. }
  109. }
  110. ]
  111. },
  112. {
  113. path: '/about',
  114. component: Layout,
  115. children: [
  116. {
  117. path: '/about',
  118. component: () => import('@/views/about/index'),
  119. name: 'about',
  120. meta: {
  121. title: '了解门墩儿'
  122. }
  123. }
  124. ]
  125. },
  126. {
  127. path: '/flame',
  128. component: Layout,
  129. children: [
  130. {
  131. path: '/flame',
  132. component: () => import('@/views/flame/index'),
  133. name: 'flame',
  134. meta: {
  135. title: '火苗儿校企'
  136. }
  137. }
  138. ]
  139. },
  140. {
  141. path: '/recruit/personal/position',
  142. component: Layout,
  143. name: 'recruit',
  144. children: [
  145. {
  146. path: '/recruit/personal/recommend',
  147. component: () => import('@/views/recruit/personal/recommend'),
  148. name: 'recommendedPositions',
  149. meta: {
  150. title: '推荐'
  151. }
  152. },
  153. {
  154. path: '/recruit/personal/position',
  155. component: () => import('@/views/recruit/personal/position'),
  156. name: 'recruitPosition',
  157. meta: {
  158. title: '职位'
  159. }
  160. },
  161. {
  162. path: '/recruit/personal/company',
  163. component: () => import('@/views/recruit/personal/company'),
  164. name: 'recruitCompany',
  165. meta: {
  166. title: '公司'
  167. }
  168. },
  169. {
  170. path: '/recruit/personal/position/details/:id',
  171. component: () => import('@/views/recruit/personal/position/components/details'),
  172. name: 'recruitPositionDetails',
  173. meta: {
  174. title: '职位详情'
  175. }
  176. }
  177. ]
  178. },
  179. {
  180. path: '/recruit/personal/jobFair',
  181. component: Layout,
  182. name: 'jobFair',
  183. meta: {
  184. title: '招聘会'
  185. },
  186. children: [
  187. {
  188. path: '/recruit/personal/jobFair',
  189. component: () => import('@/views/recruit/personal/jobFair/index.vue')
  190. },
  191. ]
  192. },
  193. {
  194. path: '/recruit/personal/jobFair/:id',
  195. component: () => import('@/views/recruit/personal/jobFair/details/index.vue'),
  196. name: 'jobFairDetails'
  197. },
  198. {
  199. path: '/recruit/personal/jobFair/enterprises/:id',
  200. component: () => import('@/views/recruit/personal/jobFair/details/enterprises.vue'),
  201. name: 'jobFairEnterprises'
  202. },
  203. {
  204. path: '/recruit/personal/jobFair/entPosition/:id',
  205. component: () => import('@/views/recruit/personal/jobFair/details/entJobCard.vue'),
  206. name: 'jobFairEntPosition'
  207. },
  208. {
  209. path: '/recruit/personal/company/details/:id',
  210. component: Layout,
  211. name: 'companyDetails',
  212. meta: {
  213. title: '企业详情'
  214. },
  215. children: [
  216. {
  217. path: '/recruit/personal/company/details/:id',
  218. component: () => import('@/views/recruit/personal/companyDetail/index.vue'),
  219. meta: {
  220. title: '企业详情'
  221. },
  222. }
  223. ]
  224. },
  225. {
  226. path: '/qualificationCertificate',
  227. component: Layout,
  228. children: [
  229. {
  230. path: '/qualificationCertificate',
  231. component: () => import('@/views/common/qualificationCertificate.vue'),
  232. name: 'QualificationCertificate'
  233. }
  234. ]
  235. },
  236. {
  237. path: '/contactUs',
  238. component: Layout,
  239. children: [
  240. {
  241. path: '/contactUs',
  242. component: () => import('@/views/recruit/components/contactUs/index.vue'),
  243. name: 'ContactUs',
  244. meta: {
  245. title: '联系我们'
  246. }
  247. }
  248. ]
  249. },
  250. ]
  251. setCommonPage(recruit) // 公共访问路由
  252. setCommonPage(recruit) // 公共访问路由
  253. const routeArray = [
  254. ...recruit,
  255. ...enterprise,
  256. ...teacher,
  257. ...personal
  258. ]
  259. export default routeArray