index.js 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284
  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. {
  80. path: '/dynamic/dealDetail',
  81. name: 'dynamic_dealDetail',
  82. meta: { title: '交易动态详情', subSite: true },
  83. component: () => import('../views/dynamic/dealDetail.vue'),
  84. },
  85. {
  86. path: '/technical/index',
  87. name: 'technical_index',
  88. meta: { title: '技术培训', subSite: true },
  89. component: () => import('../views/technical/index.vue'),
  90. },
  91. {
  92. path: '/hallList/index',
  93. name: 'hallList_lzhibolist',
  94. meta: { title: '直播大厅列表', subSite: true },
  95. component: () => import('../views/hallList/index.vue'),
  96. },
  97. {
  98. path: '/technical/list',
  99. name: 'technical_list',
  100. meta: { title: '技术培训列表', subSite: true },
  101. component: () => import('../views/technical/list.vue'),
  102. },
  103. {
  104. path: '/live/liveApply',
  105. meta: { title: '项目申请', subSite: true },
  106. name: 'live_apply',
  107. component: () => import('../views/hall/liveApply.vue'),
  108. },
  109. {
  110. path: '/kejipeixun/index',
  111. name: 'kejipeixun_index',
  112. meta: { title: '科技培训', subSite: true },
  113. component: () => import('../views/kejipeixun/index.vue'),
  114. },
  115. {
  116. path: '/kejipeixun/list',
  117. name: 'kejipeixun_list',
  118. meta: { title: '科技培训列表', subSite: true },
  119. component: () => import('../views/kejipeixun/list.vue'),
  120. },
  121. {
  122. path: '/live/service',
  123. meta: { title: '创新服务', subSite: true },
  124. name: 'live_service',
  125. component: () => import('../views/service/index.vue'),
  126. },
  127. {
  128. path: '/live/liveApply',
  129. meta: { title: '项目申请', subSite: true },
  130. name: 'live_apply',
  131. component: () => import('../views/hall/liveApply.vue'),
  132. },
  133. {
  134. path: '/market/contact',
  135. name: 'contact',
  136. meta: { title: '科技对接' },
  137. component: () => import('../views/market/contact.vue'),
  138. },
  139. ],
  140. },
  141. //企业-信息管理
  142. {
  143. path: '/enterprise/enterprisexx',
  144. name: 'enterprisexuqiu',
  145. component: () => import('../views/enterprise/enterprisexx.vue'),
  146. },
  147. // 企业-需求发布
  148. {
  149. path: '/enterprise/enterprisexuqiu',
  150. name: 'enterprisexuqiu',
  151. component: () => import('../views/enterprise/enterprisexuqiu.vue'),
  152. },
  153. //企业-订购
  154. {
  155. path: '/enterprise/enterprisedg',
  156. name: 'enterprisedg',
  157. component: () => import('../views/enterprise/enterprisedg.vue'),
  158. },
  159. //修改密码
  160. {
  161. path: '/enterprise/xiugai',
  162. name: 'enterprisedg',
  163. component: () => import('../views/enterprise/xiugai.vue'),
  164. },
  165. //展会预约
  166. {
  167. path: '/enterprise/appointment',
  168. name: 'exhibitionappointment_',
  169. meta: { title: '展会预约', subSite: true },
  170. component: () => import('../views/enterprise/appointment.vue'),
  171. },
  172. //展会预约-创建
  173. {
  174. path: '/enterprise/duijiedetail',
  175. name: 'exhibitioduijiedetail',
  176. meta: { title: '对接会', subSite: true },
  177. component: () => import('../views/enterprise/duijiedetail.vue'),
  178. },
  179. //展会预约-shenhe
  180. {
  181. path: '/enterprise/shenhe',
  182. name: 'exhibitishenhe',
  183. meta: { title: '对接会审核', subSite: true },
  184. component: () => import('../views/enterprise/shenhe.vue'),
  185. },
  186. //展会预约-状态审核
  187. {
  188. path: '/enterprise/duijiestatus',
  189. name: 'exhibitiduijiestatus',
  190. meta: { title: '对接会状态审核', subSite: true },
  191. component: () => import('../views/enterprise/duijiestatus.vue'),
  192. },
  193. //展会预约-查看申请情况
  194. {
  195. path: '/enterprise/look',
  196. name: 'exhibitilook',
  197. meta: { title: '对接会状态审核', subSite: true },
  198. component: () => import('../views/enterprise/look.vue'),
  199. },
  200. //企业-基本信息
  201. {
  202. path: '/enterprise/enterprisejb',
  203. name: 'enterprisefabu',
  204. component: () => import('../views/enterprise/enterprisejb.vue'),
  205. },
  206. // //企业-发布信息列表
  207. {
  208. path: '/enterprise/enterprisefabu',
  209. name: 'enterprisefabu',
  210. component: () => import('../views/enterprise/enterprisefabu.vue'),
  211. },
  212. {
  213. path: '/direct',
  214. name: 'live_direct',
  215. meta: { title: '直播大厅', subSite: true },
  216. component: () => import('../views/direct.vue'),
  217. },
  218. {
  219. path: '/hall/index',
  220. name: 'hall_index',
  221. meta: { title: '直播首页', subSite: true },
  222. component: () => import('../views/hall/index.vue'),
  223. },
  224. {
  225. path: '/live/liveList',
  226. meta: { title: '直播中心', subSite: true },
  227. name: 'live_list',
  228. component: () => import('../views/hall/liveList.vue'),
  229. },
  230. {
  231. path: '/live/hallDetail',
  232. meta: { title: '直播详情', subSite: true },
  233. name: 'live_hallDetail',
  234. component: () => import('../views/hall/hallDetail.vue'),
  235. },
  236. {
  237. path: '/live/hall/dock/dockDetail',
  238. meta: { title: '项目信息详情', subSite: true },
  239. name: 'dock_Detail',
  240. component: () => import('../views/hall/dock/dockDetail.vue'),
  241. },
  242. {
  243. path: '/live/hall/dock/zhuanjiaDetail',
  244. meta: { title: '专家信息详情', subSite: true },
  245. name: 'dock_Detail',
  246. component: () => import('../views/hall/dock/zhuanjiaDetail.vue'),
  247. },
  248. {
  249. path: '/live/hall/dock/dockInfo',
  250. meta: { title: '对接信息查看', subSite: true },
  251. name: 'dock_Info',
  252. component: () => import('../views/hall/dock/dockInfo.vue'),
  253. },
  254. {
  255. path: '/',
  256. meta: { title: '直播首页', subSite: true },
  257. name: 'home_index',
  258. component: () => import('../views/home.vue'),
  259. },
  260. ];
  261. const routes = [...live];
  262. const router = new VueRouter({
  263. mode: 'history',
  264. base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
  265. routes,
  266. });
  267. checkLogin(router);
  268. export default router;