index.js 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. import Vue from 'vue';
  2. import VueRouter from 'vue-router';
  3. import checkLogin from '@common/router/before';
  4. Vue.use(VueRouter);
  5. const live = [
  6. {
  7. path: '/live',
  8. name: 'live',
  9. component: () => import('../views/index.vue'),
  10. children: [
  11. {
  12. path: '/live/detail',
  13. meta: { title: '信息详情', subSite: true },
  14. name: 'live_detail',
  15. component: () => import('../views/detail/detail.vue'),
  16. },
  17. {
  18. path: '/market/index',
  19. name: 'market_index',
  20. meta: { title: '科技超市', subSite: true },
  21. component: () => import('../views/market/index.vue'),
  22. },
  23. {
  24. path: '/dynamic/index',
  25. name: 'dynamic_index',
  26. meta: { title: '动态监测', subSite: true },
  27. component: () => import('../views/dynamic/index.vue'),
  28. },
  29. {
  30. path: '/dynamic/list',
  31. name: 'dynamic_list',
  32. meta: { title: '动态监测列表', subSite: true },
  33. component: () => import('../views/dynamic/list.vue'),
  34. },
  35. {
  36. path: '/technical/index',
  37. name: 'technical_index',
  38. meta: { title: '技术培训', subSite: true },
  39. component: () => import('../views/technical/index.vue'),
  40. },
  41. {
  42. path: '/hallList/index',
  43. name: 'hallList_lzhibolist',
  44. meta: { title: '直播大厅列表', subSite: true },
  45. component: () => import('../views/hallList/index.vue'),
  46. },
  47. {
  48. path: '/technical/list',
  49. name: 'technical_list',
  50. meta: { title: '技术培训列表', subSite: true },
  51. component: () => import('../views/technical/list.vue'),
  52. },
  53. {
  54. path: '/live/liveApply',
  55. meta: { title: '项目申请', subSite: true },
  56. name: 'live_apply',
  57. component: () => import('../views/hall/liveApply.vue'),
  58. },
  59. {
  60. path: '/kejipeixun/index',
  61. name: 'kejipeixun_index',
  62. meta: { title: '科技培训', subSite: true },
  63. component: () => import('../views/kejipeixun/index.vue'),
  64. },
  65. {
  66. path: '/kejipeixun/list',
  67. name: 'kejipeixun_list',
  68. meta: { title: '科技培训列表', subSite: true },
  69. component: () => import('../views/kejipeixun/list.vue'),
  70. },
  71. {
  72. path: '/live/service',
  73. meta: { title: '创新服务', subSite: true },
  74. name: 'live_service',
  75. component: () => import('../views/service/index.vue'),
  76. },
  77. {
  78. path: '/live/liveApply',
  79. meta: { title: '项目申请', subSite: true },
  80. name: 'live_apply',
  81. component: () => import('../views/hall/liveApply.vue'),
  82. },
  83. ],
  84. },
  85. {
  86. path: '/direct',
  87. name: 'live_direct',
  88. meta: { title: '直播大厅', subSite: true },
  89. component: () => import('../views/direct.vue'),
  90. },
  91. {
  92. path: '/hall/index',
  93. name: 'hall_index',
  94. meta: { title: '直播首页', subSite: true },
  95. component: () => import('../views/hall/index.vue'),
  96. },
  97. {
  98. path: '/live/liveList',
  99. meta: { title: '直播中心', subSite: true },
  100. name: 'live_list',
  101. component: () => import('../views/hall/liveList.vue'),
  102. },
  103. {
  104. path: '/live/hallDetail',
  105. meta: { title: '直播详情', subSite: true },
  106. name: 'live_hallDetail',
  107. component: () => import('../views/hall/hallDetail.vue'),
  108. },
  109. {
  110. path: '/live/hall/dock/dockDetail',
  111. meta: { title: '项目信息详情', subSite: true },
  112. name: 'dock_Detail',
  113. component: () => import('../views/hall/dock/dockDetail.vue'),
  114. },
  115. {
  116. path: '/live/hall/dock/zhuanjiaDetail',
  117. meta: { title: '专家信息详情', subSite: true },
  118. name: 'dock_Detail',
  119. component: () => import('../views/hall/dock/zhuanjiaDetail.vue'),
  120. },
  121. {
  122. path: '/live/hall/dock/dockInfo',
  123. meta: { title: '对接信息查看', subSite: true },
  124. name: 'dock_Info',
  125. component: () => import('../views/hall/dock/dockInfo.vue'),
  126. },
  127. {
  128. path: '/',
  129. meta: { title: '直播首页', subSite: true },
  130. name: 'home_index',
  131. component: () => import('../views/home.vue'),
  132. },
  133. ];
  134. const routes = [...live];
  135. const router = new VueRouter({
  136. mode: 'history',
  137. base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
  138. routes,
  139. });
  140. checkLogin(router);
  141. export default router;