recruit.js 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261
  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: '/mall/goodsList',
  47. component: () => import('@/views/mall/goodsList/index'),
  48. name: 'goodsList',
  49. meta: {
  50. title: '商品列表'
  51. }
  52. },
  53. {
  54. path: '/mall/goodsDetail/:id',
  55. component: () => import('@/views/mall/components/details.vue'),
  56. name: 'goodsDetail',
  57. meta: {
  58. title: '商品详情'
  59. }
  60. },
  61. {
  62. path: '/mall/pointExchange/records',
  63. component: () => import('@/views/mall/home/pointExchange/records.vue'),
  64. name: 'mallPointExchangeRecords',
  65. meta: {
  66. title: '积分兑换记录'
  67. }
  68. },
  69. {
  70. path: '/mall/user',
  71. redirect: '/mall/user/order',
  72. component: () => import('@/views/mall/user/index.vue'),
  73. name: 'mallUser',
  74. meta: {
  75. title: '我的'
  76. },
  77. children: [
  78. // {
  79. // path: '/mall/user/cart',
  80. // component: () => import('@/views/mall/user/cart/index.vue'),
  81. // name: 'mallUserCart',
  82. // meta: {
  83. // title: '购物车',
  84. // enName: 'My Cart',
  85. // icon: 'mdi-cart-outline'
  86. // }
  87. // },
  88. {
  89. path: '/mall/user/order',
  90. component: () => import('@/views/mall/user/order/index.vue'),
  91. name: 'mallUserOrder',
  92. meta: {
  93. title: '我的订单',
  94. enName: 'My Order',
  95. icon: 'mdi-order-bool-ascending'
  96. }
  97. },
  98. {
  99. path: '/mall/user/address',
  100. component: () => import('@/views/mall/user/address/index.vue'),
  101. name: 'mallUserAddress',
  102. meta: {
  103. title: '收货地址',
  104. enName: 'Shipping Address',
  105. icon: 'mdi-map-marker-outline'
  106. }
  107. },
  108. {
  109. path: '/mall/user/prize',
  110. component: () => import('@/views/mall/user/prize/index.vue'),
  111. name: 'mallUserPrize',
  112. meta: {
  113. title: '我的奖品',
  114. enName: 'My Award',
  115. icon: 'mdi-gift-outline'
  116. }
  117. }
  118. ]
  119. },
  120. {
  121. path: '/mall/user/order/detail/:id',
  122. component: () => import('@/views/mall/user/order/detail.vue'),
  123. show: true,
  124. meta: {
  125. title: '订单详情'
  126. }
  127. },
  128. // {
  129. // path: '/mall/order',
  130. // component: () => import('@/views/mall/order/index.vue'),
  131. // name: 'mallOrder',
  132. // meta: {
  133. // title: '我的订单'
  134. // }
  135. // },
  136. {
  137. path: '/mall/cart',
  138. component: () => import('@/views/mall/cart/index.vue'),
  139. name: 'mallCart',
  140. meta: {
  141. title: '我的购物车'
  142. }
  143. },
  144. {
  145. path: '/mall/payOver',
  146. component: () => import('@/views/mall/payOver/index.vue'),
  147. name: 'mallPayOver',
  148. meta: {
  149. title: '支付成功'
  150. }
  151. },
  152. ]
  153. },
  154. {
  155. path: '/pointsExchange',
  156. component: Layout,
  157. children: [
  158. {
  159. path: '/pointsExchange',
  160. component: () => import('@/views/mall copy/index.vue'),
  161. name: 'pointsExchange',
  162. meta: {
  163. title: '门墩儿商城'
  164. }
  165. }
  166. ]
  167. },
  168. {
  169. path: '/about',
  170. component: Layout,
  171. children: [
  172. {
  173. path: '/about',
  174. component: () => import('@/views/about/index'),
  175. name: 'about',
  176. meta: {
  177. title: '了解门墩儿'
  178. }
  179. }
  180. ]
  181. },
  182. {
  183. path: '/recruit/personal/position',
  184. component: Layout,
  185. name: 'recruit',
  186. children: [
  187. {
  188. path: '/recruit/personal/recommend',
  189. component: () => import('@/views/recruit/personal/recommend'),
  190. name: 'recommendedPositions',
  191. meta: {
  192. title: '推荐'
  193. }
  194. },
  195. {
  196. path: '/recruit/personal/position',
  197. component: () => import('@/views/recruit/personal/position'),
  198. name: 'recruitPosition',
  199. meta: {
  200. title: '职位'
  201. }
  202. },
  203. {
  204. path: '/recruit/personal/company',
  205. component: () => import('@/views/recruit/personal/company'),
  206. name: 'recruitCompany',
  207. meta: {
  208. title: '公司'
  209. }
  210. },
  211. {
  212. path: '/recruit/personal/position/details/:id',
  213. component: () => import('@/views/recruit/personal/position/components/details'),
  214. name: 'recruitPositionDetails',
  215. meta: {
  216. title: '职位详情'
  217. }
  218. }
  219. ]
  220. },
  221. {
  222. path: '/recruit/personal/company/details/:id',
  223. component: Layout,
  224. name: 'companyDetails',
  225. meta: {
  226. title: '企业详情'
  227. },
  228. children: [
  229. {
  230. path: '/recruit/personal/company/details/:id',
  231. component: () => import('@/views/recruit/personal/companyDetail/index.vue'),
  232. meta: {
  233. title: '企业详情'
  234. },
  235. }
  236. ]
  237. },
  238. {
  239. path: '/qualificationCertificate',
  240. component: Layout,
  241. children: [
  242. {
  243. path: '/qualificationCertificate',
  244. component: () => import('@/views/common/qualificationCertificate.vue'),
  245. name: 'QualificationCertificate'
  246. }
  247. ]
  248. },
  249. ]
  250. setLoginType(recruit, 'personalCommon'),
  251. setLoginType(enterprise, 'enterprise'),
  252. setLoginType(personal, 'personal')
  253. const routeArray = [
  254. ...recruit,
  255. ...enterprise,
  256. ...personal
  257. ]
  258. export default routeArray