index.js 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  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: '/login',
  13. meta: { title: '登陆' },
  14. component: () => import('../views/login.vue'),
  15. },
  16. {
  17. path: '/live/detail',
  18. meta: { title: '信息详情', subSite: true },
  19. name: 'live_detail',
  20. component: () => import('../views/detail/detail.vue'),
  21. },
  22. {
  23. path: '/market/index',
  24. name: 'market_index',
  25. meta: { title: '科技超市', subSite: true },
  26. component: () => import('../views/market/index.vue'),
  27. },
  28. {
  29. path: '/personnel/rencai',
  30. name: 'personnel',
  31. meta: { title: '专家详情', subSite: true },
  32. component: () => import('../views/personnel/rencai.vue'),
  33. },
  34. {
  35. path: '/personnel/list',
  36. name: 'personnel',
  37. meta: { title: '专家列表', subSite: true },
  38. component: () => import('../views/personnel/list.vue'),
  39. },
  40. //科技超市列表
  41. {
  42. path: '/supermaket/supermarketlist',
  43. name: 'supermarketuct',
  44. component: () => import('../views/supermaket/supermarketlist.vue'),
  45. },
  46. //xiangqing
  47. {
  48. path: '/supermaket/supermarketdetail',
  49. name: 'supermarketdetail',
  50. component: () => import('../views/supermaket/supermarketdetail.vue'),
  51. },
  52. {
  53. path: '/dynamic/index',
  54. name: 'dynamic_index',
  55. meta: { title: '动态监测', subSite: true },
  56. component: () => import('../views/dynamic/index.vue'),
  57. },
  58. {
  59. path: '/dynamic/list',
  60. name: 'dynamic_list',
  61. meta: { title: '动态监测列表', subSite: true },
  62. component: () => import('../views/dynamic/list.vue'),
  63. },
  64. {
  65. path: '/technical/index',
  66. name: 'technical_index',
  67. meta: { title: '技术培训', subSite: true },
  68. component: () => import('../views/technical/index.vue'),
  69. },
  70. {
  71. path: '/hallList/index',
  72. name: 'hallList_lzhibolist',
  73. meta: { title: '直播大厅列表', subSite: true },
  74. component: () => import('../views/hallList/index.vue'),
  75. },
  76. {
  77. path: '/technical/list',
  78. name: 'technical_list',
  79. meta: { title: '技术培训列表', subSite: true },
  80. component: () => import('../views/technical/list.vue'),
  81. },
  82. {
  83. path: '/live/liveApply',
  84. meta: { title: '项目申请', subSite: true },
  85. name: 'live_apply',
  86. component: () => import('../views/hall/liveApply.vue'),
  87. },
  88. {
  89. path: '/kejipeixun/index',
  90. name: 'kejipeixun_index',
  91. meta: { title: '科技培训', subSite: true },
  92. component: () => import('../views/kejipeixun/index.vue'),
  93. },
  94. {
  95. path: '/kejipeixun/list',
  96. name: 'kejipeixun_list',
  97. meta: { title: '科技培训列表', subSite: true },
  98. component: () => import('../views/kejipeixun/list.vue'),
  99. },
  100. {
  101. path: '/live/service',
  102. meta: { title: '创新服务', subSite: true },
  103. name: 'live_service',
  104. component: () => import('../views/service/index.vue'),
  105. },
  106. {
  107. path: '/live/liveApply',
  108. meta: { title: '项目申请', subSite: true },
  109. name: 'live_apply',
  110. component: () => import('../views/hall/liveApply.vue'),
  111. },
  112. {
  113. path: '/market/contact',
  114. name: 'contact',
  115. meta: { title: '科技对接' },
  116. component: () => import('../views/market/contact.vue'),
  117. },
  118. ],
  119. },
  120. //企业-信息管理
  121. {
  122. path: '/enterprise/enterprisexx',
  123. name: 'enterprisexuqiu',
  124. component: () => import('../views/enterprise/enterprisexx.vue'),
  125. },
  126. // 企业-需求发布
  127. {
  128. path: '/enterprise/enterprisexuqiu',
  129. name: 'enterprisexuqiu',
  130. component: () => import('../views/enterprise/enterprisexuqiu.vue'),
  131. },
  132. //企业-订购
  133. {
  134. path: '/enterprise/enterprisedg',
  135. name: 'enterprisedg',
  136. component: () => import('../views/enterprise/enterprisedg.vue'),
  137. },
  138. //修改密码
  139. {
  140. path: '/enterprise/xiugai',
  141. name: 'enterprisedg',
  142. component: () => import('../views/enterprise/xiugai.vue'),
  143. },
  144. //企业-基本信息
  145. {
  146. path: '/enterprise/enterprisejb',
  147. name: 'enterprisefabu',
  148. component: () => import('../views/enterprise/enterprisejb.vue'),
  149. },
  150. // //企业-发布信息列表
  151. {
  152. path: '/enterprise/enterprisefabu',
  153. name: 'enterprisefabu',
  154. component: () => import('../views/enterprise/enterprisefabu.vue'),
  155. },
  156. {
  157. path: '/direct',
  158. name: 'live_direct',
  159. meta: { title: '直播大厅', subSite: true },
  160. component: () => import('../views/direct.vue'),
  161. },
  162. {
  163. path: '/hall/index',
  164. name: 'hall_index',
  165. meta: { title: '直播首页', subSite: true },
  166. component: () => import('../views/hall/index.vue'),
  167. },
  168. {
  169. path: '/live/liveList',
  170. meta: { title: '直播中心', subSite: true },
  171. name: 'live_list',
  172. component: () => import('../views/hall/liveList.vue'),
  173. },
  174. {
  175. path: '/live/hallDetail',
  176. meta: { title: '直播详情', subSite: true },
  177. name: 'live_hallDetail',
  178. component: () => import('../views/hall/hallDetail.vue'),
  179. },
  180. {
  181. path: '/live/hall/dock/dockDetail',
  182. meta: { title: '项目信息详情', subSite: true },
  183. name: 'dock_Detail',
  184. component: () => import('../views/hall/dock/dockDetail.vue'),
  185. },
  186. {
  187. path: '/live/hall/dock/zhuanjiaDetail',
  188. meta: { title: '专家信息详情', subSite: true },
  189. name: 'dock_Detail',
  190. component: () => import('../views/hall/dock/zhuanjiaDetail.vue'),
  191. },
  192. {
  193. path: '/live/hall/dock/dockInfo',
  194. meta: { title: '对接信息查看', subSite: true },
  195. name: 'dock_Info',
  196. component: () => import('../views/hall/dock/dockInfo.vue'),
  197. },
  198. {
  199. path: '/',
  200. meta: { title: '直播首页', subSite: true },
  201. name: 'home_index',
  202. component: () => import('../views/home.vue'),
  203. },
  204. ];
  205. const routes = [...live];
  206. const router = new VueRouter({
  207. mode: 'history',
  208. base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
  209. routes,
  210. });
  211. checkLogin(router);
  212. export default router;