index.js 11 KB

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