recruit.js 6.6 KB

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