index.js 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338
  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: '/newlogin',
  18. meta: { title: '登陆' },
  19. component: () => import('../views/newlogin.vue'),
  20. },
  21. {
  22. path: '/live/detail',
  23. meta: { title: '信息详情', subSite: true },
  24. name: 'live_detail',
  25. component: () => import('../views/detail/detail.vue'),
  26. },
  27. // 专题研讨
  28. {
  29. path: '/live/semDetail',
  30. meta: { title: '专题研讨详情', subSite: true },
  31. name: 'live_semDetail',
  32. component: () => import('../views/detail/semDetail.vue'),
  33. },
  34. // 教育培训
  35. {
  36. path: '/live/eduDetail',
  37. meta: { title: '信息详情', subSite: true },
  38. name: 'live_eduDetail',
  39. component: () => import('../views/detail/eduDetail.vue'),
  40. },
  41. {
  42. path: '/market/index',
  43. name: 'market_index',
  44. meta: { title: '科技超市', subSite: true },
  45. component: () => import('../views/market/index.vue'),
  46. },
  47. {
  48. path: '/market/marketfabu',
  49. name: 'market_fabu',
  50. meta: { title: '我要发布', subSite: true },
  51. component: () => import('../views/market/marketfabu.vue'),
  52. },
  53. {
  54. path: '/personnel/rencai',
  55. name: 'personnelrencai',
  56. meta: { title: '专家详情', subSite: true },
  57. component: () => import('../views/personnel/rencai.vue'),
  58. },
  59. {
  60. path: '/personnel/list',
  61. name: 'personnel',
  62. meta: { title: '专家列表', subSite: true },
  63. component: () => import('../views/personnel/list.vue'),
  64. },
  65. //科技超市列表
  66. {
  67. path: '/supermaket/supermarketlist',
  68. name: 'supermarketlist',
  69. component: () => import('../views/supermaket/supermarketlist.vue'),
  70. },
  71. //xiangqing
  72. {
  73. path: '/supermaket/supermarketdetail',
  74. name: 'supermarketdetail',
  75. component: () => import('../views/supermaket/supermarketdetail.vue'),
  76. },
  77. //科技超市列表
  78. {
  79. path: '/market/list',
  80. name: 'marketlists',
  81. component: () => import('../views/market/list.vue'),
  82. },
  83. {
  84. path: '/market/marketlists',
  85. name: 'marketlist_index',
  86. meta: { title: '科技超市', subSite: true },
  87. component: () => import('../views/market/marketlists.vue'),
  88. },
  89. {
  90. path: '/dynamic/index',
  91. name: 'dynamic_index',
  92. meta: { title: '动态监测列表', subSite: true },
  93. component: () => import('../views/dynamic/index.vue'),
  94. },
  95. // 动态监测-交易动态详情
  96. {
  97. path: '/dynamic/dealDetail',
  98. name: 'dynamic_dealDetail',
  99. meta: { title: '交易动态详情', subSite: true },
  100. component: () => import('../views/dynamic/dealDetail.vue'),
  101. },
  102. {
  103. path: '/technical/index',
  104. name: 'technical_index',
  105. meta: { title: '技术培训', subSite: true },
  106. component: () => import('../views/technical/index.vue'),
  107. },
  108. {
  109. path: '/hallList/index',
  110. name: 'hallList_lzhibolist',
  111. meta: { title: '直播大厅列表', subSite: true },
  112. component: () => import('../views/hallList/index.vue'),
  113. },
  114. {
  115. path: '/technical/list',
  116. name: 'technical_list',
  117. meta: { title: '技术培训列表', subSite: true },
  118. component: () => import('../views/technical/list.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: '/kejipeixun/index',
  128. name: 'kejipeixun_index',
  129. meta: { title: '科技培训', subSite: true },
  130. component: () => import('../views/kejipeixun/index.vue'),
  131. },
  132. {
  133. path: '/kejipeixun/list',
  134. name: 'kejipeixun_list',
  135. meta: { title: '科技培训列表', subSite: true },
  136. component: () => import('../views/kejipeixun/list.vue'),
  137. },
  138. {
  139. path: '/live/service',
  140. meta: { title: '创新服务', subSite: true },
  141. name: 'live_service',
  142. component: () => import('../views/service/index.vue'),
  143. },
  144. {
  145. path: '/live/service/list',
  146. meta: { title: '创新服务', subSite: true },
  147. name: 'live_service_list',
  148. component: () => import('../views/service/list.vue'),
  149. },
  150. {
  151. path: '/service/recommend',
  152. meta: { title: '智慧推荐', subSite: true },
  153. name: 'service_recommend',
  154. component: () => import('../views/service/recommend.vue'),
  155. },
  156. {
  157. path: '/service/assess',
  158. meta: { title: '科技评估', subSite: true },
  159. name: 'service_assess',
  160. component: () => import('../views/service/assess.vue'),
  161. },
  162. {
  163. path: '/service/contract',
  164. meta: { title: '合同在线', subSite: true },
  165. name: 'service_contract',
  166. component: () => import('../views/service/contract.vue'),
  167. },
  168. {
  169. path: '/service/credit',
  170. meta: { title: '信誉认证', subSite: true },
  171. name: 'service_credit',
  172. component: () => import('../views/service/credit.vue'),
  173. },
  174. {
  175. path: '/service/performance',
  176. meta: { title: '绩效评价', subSite: true },
  177. name: 'service_performance',
  178. component: () => import('../views/service/performance.vue'),
  179. },
  180. {
  181. path: '/live/liveApply',
  182. meta: { title: '项目申请', subSite: true },
  183. name: 'live_applys',
  184. component: () => import('../views/hall/liveApply.vue'),
  185. },
  186. {
  187. path: '/market/contact',
  188. name: 'contact',
  189. meta: { title: '科技对接' },
  190. component: () => import('../views/market/contact.vue'),
  191. },
  192. ],
  193. },
  194. //企业-信息管理
  195. {
  196. path: '/enterprise/enterprisexx',
  197. name: 'enterprisexx',
  198. component: () => import('../views/enterprise/enterprisexx.vue'),
  199. },
  200. // 企业-需求发布
  201. {
  202. path: '/enterprise/enterprisexuqiu',
  203. name: 'enterprisexuqiu',
  204. component: () => import('../views/enterprise/enterprisexuqiu.vue'),
  205. },
  206. //企业-订购
  207. {
  208. path: '/enterprise/enterprisedg',
  209. name: 'enterprisedg',
  210. component: () => import('../views/enterprise/enterprisedg.vue'),
  211. },
  212. //修改密码
  213. {
  214. path: '/enterprise/xiugai',
  215. name: 'xiugai',
  216. component: () => import('../views/enterprise/xiugai.vue'),
  217. },
  218. //展会管理
  219. {
  220. path: '/enterprise/appointment',
  221. name: 'exhibitionappointment_',
  222. meta: { title: '展会管理', subSite: true },
  223. component: () => import('../views/enterprise/appointment.vue'),
  224. },
  225. //展会管理-创建
  226. {
  227. path: '/enterprise/duijiedetail',
  228. name: 'exhibitioduijiedetail',
  229. meta: { title: '对接会', subSite: true },
  230. component: () => import('../views/enterprise/duijiedetail.vue'),
  231. },
  232. //展会管理-shenhe
  233. {
  234. path: '/enterprise/shenhe',
  235. name: 'exhibitishenhe',
  236. meta: { title: '对接会审核', subSite: true },
  237. component: () => import('../views/enterprise/shenhe.vue'),
  238. },
  239. //展会管理-状态审核
  240. {
  241. path: '/enterprise/duijiestatus',
  242. name: 'exhibitiduijiestatus',
  243. meta: { title: '对接会状态审核', subSite: true },
  244. component: () => import('../views/enterprise/duijiestatus.vue'),
  245. },
  246. //展会管理-查看申请情况
  247. {
  248. path: '/enterprise/look',
  249. name: 'exhibitilook',
  250. meta: { title: '对接会状态审核', subSite: true },
  251. component: () => import('../views/enterprise/look.vue'),
  252. },
  253. //企业-基本信息
  254. {
  255. path: '/enterprise/enterprisejb',
  256. name: 'enterprisejb',
  257. component: () => import('../views/enterprise/enterprisejb.vue'),
  258. },
  259. // //企业-发布信息列表
  260. {
  261. path: '/enterprise/enterprisefabu',
  262. name: 'enterprisefabu',
  263. component: () => import('../views/enterprise/enterprisefabu.vue'),
  264. },
  265. {
  266. path: '/direct',
  267. name: 'live_direct',
  268. meta: { title: '直播大厅', subSite: true },
  269. component: () => import('../views/direct.vue'),
  270. },
  271. {
  272. path: '/hall/index',
  273. name: 'hall_index',
  274. meta: { title: '直播首页', subSite: true },
  275. component: () => import('../views/hall/index.vue'),
  276. },
  277. {
  278. path: '/live/liveList',
  279. meta: { title: '直播中心', subSite: true },
  280. name: 'live_list',
  281. component: () => import('../views/hall/liveList.vue'),
  282. },
  283. {
  284. path: '/live/hallDetail',
  285. meta: { title: '直播详情', subSite: true },
  286. name: 'live_hallDetail',
  287. component: () => import('../views/hall/hallDetail.vue'),
  288. },
  289. {
  290. path: '/live/hall/dock/dockDetail',
  291. meta: { title: '项目信息详情', subSite: true },
  292. name: 'dock_Detail',
  293. component: () => import('../views/hall/dock/dockDetail.vue'),
  294. },
  295. {
  296. path: '/live/hall/dock/zhuanjiaDetail',
  297. meta: { title: '专家信息详情', subSite: true },
  298. name: 'zhuanjiaDetail',
  299. component: () => import('../views/hall/dock/zhuanjiaDetail.vue'),
  300. },
  301. {
  302. path: '/live/hall/dock/dockInfo',
  303. meta: { title: '对接信息查看', subSite: true },
  304. name: 'dock_Info',
  305. component: () => import('../views/hall/dock/dockInfo.vue'),
  306. },
  307. {
  308. path: '/',
  309. meta: { title: '直播首页', subSite: true },
  310. name: 'home_index',
  311. component: () => import('../views/home.vue'),
  312. },
  313. ];
  314. const routes = [...live];
  315. const router = new VueRouter({
  316. mode: 'history',
  317. base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER,
  318. routes,
  319. });
  320. checkLogin(router);
  321. export default router;