index.js 11 KB

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