index.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import Vue from 'vue'
  2. import Router from 'vue-router'
  3. Vue.use(Router)
  4. const router = new Router({
  5. routes: [
  6. {
  7. path: '/',
  8. component: () => import('@/pages/layout/'),
  9. children: [
  10. {
  11. path: '/',
  12. name: '企业账号',
  13. component: () => import('@/pages/home'),
  14. meta: {index: '1-1'}
  15. },
  16. {
  17. path: '/authentication',
  18. name: '企业认证',
  19. component: () => import('@/pages/authentication'),
  20. meta: {index: '1-2'}
  21. },
  22. {
  23. path: '/rental-info',
  24. name: '出租信息',
  25. component: () => import('@/pages/rental-info'),
  26. meta: {index: '2-1'}
  27. },
  28. {
  29. path: '/sell-info',
  30. name: '出售信息',
  31. component: () => import('@/pages/sell-info'),
  32. meta: {index: '2-2'}
  33. },
  34. {
  35. path: '/site-decoration',
  36. name: '工地装修',
  37. component: () => import('@/pages/site-decoration'),
  38. meta: {index: '2-3'}
  39. },
  40. {
  41. path: '/z-carousel',
  42. name: '轮播图',
  43. component: () => import('@/pages/z-carousel'),
  44. meta: {index: '3-1'}
  45. },
  46. {
  47. path: '/recommended',
  48. name: '推荐位',
  49. component: () => import('@/pages/recommended'),
  50. meta: {index: '3-2'}
  51. },
  52. {
  53. path: '/download',
  54. name: '场景下载',
  55. component: () => import('@/pages/download'),
  56. meta: {index: '4'}
  57. }
  58. ]
  59. },
  60. {
  61. path: '/login',
  62. name: '登录',
  63. component: () => import('@/pages/login')
  64. }
  65. ]
  66. })
  67. export default router