index.js 6.9 KB

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