index.js 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347
  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: '/newlogin',
  13. meta: { title: '登陆' },
  14. component: () => import('../views/newlogin.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: '/market/marketfabu',
  44. name: 'market_fabu',
  45. meta: { title: '我要发布', subSite: true },
  46. component: () => import('../views/market/marketfabu.vue'),
  47. },
  48. {
  49. path: '/personnel/rencai',
  50. name: 'personnelrencai',
  51. meta: { title: '专家详情', subSite: true },
  52. component: () => import('../views/personnel/rencai.vue'),
  53. },
  54. {
  55. path: '/personnel/list',
  56. name: 'personnel',
  57. meta: { title: '专家列表', subSite: true },
  58. component: () => import('../views/personnel/list.vue'),
  59. },
  60. //科技超市列表
  61. {
  62. path: '/supermaket/supermarketlist',
  63. name: 'supermarketlist',
  64. component: () => import('../views/supermaket/supermarketlist.vue'),
  65. },
  66. //xiangqing
  67. {
  68. path: '/supermaket/supermarketdetail',
  69. name: 'supermarketdetail',
  70. component: () => import('../views/supermaket/supermarketdetail.vue'),
  71. },
  72. //科技超市列表
  73. {
  74. path: '/market/marketlists',
  75. name: 'marketlist_index',
  76. meta: { title: '科技超市', subSite: true },
  77. component: () => import('../views/market/marketlists.vue'),
  78. },
  79. {
  80. path: '/dynamic/index',
  81. name: 'dynamic_index',
  82. meta: { title: '动态监测列表', subSite: true },
  83. component: () => import('../views/dynamic/index.vue'),
  84. },
  85. // 动态监测-交易动态详情
  86. {
  87. path: '/dynamic/dealDetail',
  88. name: 'dynamic_dealDetail',
  89. meta: { title: '交易动态详情', subSite: true },
  90. component: () => import('../views/dynamic/dealDetail.vue'),
  91. },
  92. {
  93. path: '/technical/index',
  94. name: 'technical_index',
  95. meta: { title: '技术培训', subSite: true },
  96. component: () => import('../views/technical/index.vue'),
  97. },
  98. {
  99. path: '/hallList/index',
  100. name: 'hallList_lzhibolist',
  101. meta: { title: '直播大厅列表', subSite: true },
  102. component: () => import('../views/hallList/index.vue'),
  103. },
  104. {
  105. path: '/hallList/zongjie',
  106. meta: { title: '展会总结', subSite: true },
  107. name: 'dock_zongjie',
  108. component: () => import('../views/hallList/zongjie.vue'),
  109. },
  110. {
  111. path: '/technical/list',
  112. name: 'technical_list',
  113. meta: { title: '技术培训列表', subSite: true },
  114. component: () => import('../views/technical/list.vue'),
  115. },
  116. {
  117. path: '/live/liveApply',
  118. meta: { title: '项目申请', subSite: true },
  119. name: 'live_apply',
  120. component: () => import('../views/hall/liveApply.vue'),
  121. },
  122. {
  123. path: '/kejipeixun/index',
  124. name: 'kejipeixun_index',
  125. meta: { title: '科技培训', subSite: true },
  126. component: () => import('../views/kejipeixun/index.vue'),
  127. },
  128. {
  129. path: '/kejipeixun/list',
  130. name: 'kejipeixun_list',
  131. meta: { title: '科技培训列表', subSite: true },
  132. component: () => import('../views/kejipeixun/list.vue'),
  133. },
  134. {
  135. path: '/live/service',
  136. meta: { title: '创新服务', subSite: true },
  137. name: 'live_service',
  138. component: () => import('../views/service/index.vue'),
  139. },
  140. {
  141. path: '/live/service/list',
  142. meta: { title: '创新服务', subSite: true },
  143. name: 'live_service_list',
  144. component: () => import('../views/service/list.vue'),
  145. },
  146. {
  147. path: '/live/liveApply',
  148. meta: { title: '项目申请', subSite: true },
  149. name: 'live_applys',
  150. component: () => import('../views/hall/liveApply.vue'),
  151. },
  152. {
  153. path: '/market/contact',
  154. name: 'contact',
  155. meta: { title: '科技对接' },
  156. component: () => import('../views/market/contact.vue'),
  157. },
  158. ],
  159. },
  160. //企业-信息管理
  161. {
  162. path: '/enterprise/enterprisexx',
  163. name: 'enterprisexx',
  164. component: () => import('../views/enterprise/enterprisexx.vue'),
  165. },
  166. // 企业-需求发布
  167. {
  168. path: '/enterprise/enterprisexuqiu',
  169. name: 'enterprisexuqiu',
  170. component: () => import('../views/enterprise/enterprisexuqiu.vue'),
  171. },
  172. //企业-订购
  173. {
  174. path: '/enterprise/enterprisedg',
  175. name: 'enterprisedg',
  176. component: () => import('../views/enterprise/enterprisedg.vue'),
  177. },
  178. //修改密码
  179. {
  180. path: '/enterprise/xiugai',
  181. name: 'xiugai',
  182. component: () => import('../views/enterprise/xiugai.vue'),
  183. },
  184. //展会管理
  185. {
  186. path: '/enterprise/appointment',
  187. name: 'exhibitionappointment_',
  188. meta: { title: '展会管理', subSite: true },
  189. component: () => import('../views/enterprise/appointment.vue'),
  190. },
  191. //展会管理-创建
  192. {
  193. path: '/enterprise/duijiedetail',
  194. name: 'exhibitioduijiedetail',
  195. meta: { title: '对接会', subSite: true },
  196. component: () => import('../views/enterprise/duijiedetail.vue'),
  197. },
  198. //展会管理-shenhe
  199. {
  200. path: '/enterprise/shenhe',
  201. name: 'exhibitishenhe',
  202. meta: { title: '对接会审核', subSite: true },
  203. component: () => import('../views/enterprise/shenhe.vue'),
  204. },
  205. //展会管理-状态审核
  206. {
  207. path: '/enterprise/duijiestatus',
  208. name: 'exhibitiduijiestatus',
  209. meta: { title: '对接会状态审核', subSite: true },
  210. component: () => import('../views/enterprise/duijiestatus.vue'),
  211. },
  212. //展会管理-查看申请情况
  213. {
  214. path: '/enterprise/look',
  215. name: 'exhibitilook',
  216. meta: { title: '对接会状态审核', subSite: true },
  217. component: () => import('../views/enterprise/look.vue'),
  218. },
  219. //企业-基本信息
  220. {
  221. path: '/enterprise/enterprisejb',
  222. name: 'enterprisejb',
  223. component: () => import('../views/enterprise/enterprisejb.vue'),
  224. },
  225. // //企业-发布信息列表
  226. {
  227. path: '/enterprise/enterprisefabu',
  228. name: 'enterprisefabu',
  229. component: () => import('../views/enterprise/enterprisefabu.vue'),
  230. },
  231. {
  232. path: '/hall/direct',
  233. name: 'live_direct',
  234. meta: { title: '直播大厅', subSite: true },
  235. component: () => import('../views/hall/direct.vue'),
  236. },
  237. {
  238. path: '/hall/productList/expertList',
  239. name: 'productList_expertList',
  240. meta: { title: '直播大厅', subSite: true },
  241. component: () => import('../views/hall/productList/expertList.vue'),
  242. },
  243. // 直播大厅-查看更多技术列表
  244. {
  245. path: '/hall/productList/technologyList',
  246. name: 'live_technologyList',
  247. meta: { title: '产品列表', subSite: true },
  248. component: () => import('../views/hall/productList/technologyList.vue'),
  249. },
  250. {
  251. path: '/hall/index',
  252. name: 'hall_index',
  253. meta: { title: '直播首页', subSite: true },
  254. component: () => import('../views/hall/index.vue'),
  255. },
  256. {
  257. path: '/live/liveList',
  258. meta: { title: '直播中心', subSite: true },
  259. name: 'live_list',
  260. component: () => import('../views/hall/liveList.vue'),
  261. },
  262. {
  263. path: '/live/hallDetail',
  264. meta: { title: '直播详情', subSite: true },
  265. name: 'live_hallDetail',
  266. component: () => import('../views/hall/hallDetail.vue'),
  267. },
  268. {
  269. path: '/live/hall/dock/dockDetail',
  270. meta: { title: '项目信息详情', subSite: true },
  271. name: 'dock_Detail',
  272. component: () => import('../views/hall/dock/dockDetail.vue'),
  273. },
  274. {
  275. path: '/live/hall/dock/zhuanjiaDetail',
  276. meta: { title: '专家信息详情', subSite: true },
  277. name: 'zhuanjiaDetail',
  278. component: () => import('../views/hall/dock/zhuanjiaDetail.vue'),
  279. },
  280. {
  281. path: '/live/hall/dock/zhanjiaduijie',
  282. meta: { title: '专家信息详情', subSite: true },
  283. name: 'zhuanjiadds',
  284. component: () => import('../views/hall/dock/zhanjiaduijie.vue'),
  285. },
  286. {
  287. path: '/live/hall/dock/dockInfo',
  288. meta: { title: '对接信息查看', subSite: true },
  289. name: 'dock_Info',
  290. component: () => import('../views/hall/dock/dockInfo.vue'),
  291. },
  292. {
  293. path: '/',
  294. meta: { title: '直播首页', subSite: true },
  295. name: 'home_index',
  296. component: () => import('../views/home.vue'),
  297. },
  298. // 5-21新增改版个人中心
  299. // 基本信息
  300. {
  301. path: '/userCenter/index',
  302. meta: { title: '个人中心', subSite: true },
  303. component: () => import('../views/userCenter/index.vue'),
  304. },
  305. {
  306. path: '/tltest',
  307. meta: { title: '推流测试', subSite: true },
  308. name: 'tlcs1',
  309. component: () => import('../views/tltest.vue'),
  310. }, //测试页
  311. {
  312. path: '/tllltest',
  313. meta: { title: '拉流测试', subSite: true },
  314. name: 'llcs1',
  315. component: () => import('../views/tllltest.vue'),
  316. }, //测试页
  317. {
  318. path: '/tltest2',
  319. meta: { title: '推流测试2', subSite: true },
  320. name: 'tlcs2',
  321. component: () => import('../views/tltest2.vue'),
  322. }, //测试页
  323. ];
  324. const routes = [...live];
  325. const router = new VueRouter({
  326. mode: 'history',
  327. base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
  328. routes,
  329. });
  330. checkLogin(router);
  331. export default router;