index.js 8.9 KB

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