index.js 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  1. import Vue from 'vue';
  2. import VueRouter from 'vue-router';
  3. import checkLogin from './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/service',
  32. meta: { title: '新闻资讯', subSite: true },
  33. name: 'live_service',
  34. component: () => import('../views/service/index.vue'),
  35. },
  36. {
  37. path: '/live/service/newslist',
  38. meta: { title: '新闻资讯', subSite: true },
  39. name: 'live_service_newslist',
  40. component: () => import('../views/service/newslist.vue'),
  41. },
  42. // 动态监测
  43. {
  44. path: '/dynamic/index',
  45. name: 'dynamic_index',
  46. meta: { title: '动态监测列表', subSite: true },
  47. component: () => import('../views/dynamic/index.vue'),
  48. },
  49. {
  50. path: '/dynamic/product',
  51. name: 'product',
  52. meta: { title: '发布产品', subSite: true },
  53. component: () => import('../views/dynamic/product.vue'),
  54. },
  55. // 技术交流
  56. {
  57. path: '/technical/index',
  58. name: 'technical_index',
  59. meta: { title: '技术交流', subSite: true },
  60. component: () => import('../views/technical/index.vue'),
  61. },
  62. {
  63. path: '/technical/list',
  64. name: 'technical_list',
  65. meta: { title: '技术交流', subSite: true },
  66. component: () => import('../views/technical/list.vue'),
  67. },
  68. // 科技超市
  69. {
  70. path: '/market/index',
  71. name: 'market_index',
  72. meta: { title: '科技超市', subSite: true },
  73. component: () => import('../views/market/index.vue'),
  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. {
  83. path: '/hallList/index',
  84. name: 'hallList_lzhibolist',
  85. meta: { title: '直播大厅', subSite: true },
  86. component: () => import('../views/hallList/index.vue'),
  87. },
  88. {
  89. path: '/hallList/kjpdLogin',
  90. name: 'kjpdLogin',
  91. meta: { title: '管理登录', subSite: true },
  92. component: () => import('../views/hallList/kjpdLogin.vue'),
  93. },
  94. {
  95. path: '/live/liveApply',
  96. meta: { title: '项目申请', subSite: true },
  97. name: 'live_apply',
  98. component: () => import('../views/hall/liveApply.vue'),
  99. },
  100. ],
  101. },
  102. // 首页
  103. {
  104. path: '/',
  105. meta: { title: '直播首页', subSite: true },
  106. name: 'home_index',
  107. component: () => import('../views/home.vue'),
  108. },
  109. // 人才
  110. {
  111. path: '/personalhall/index',
  112. name: 'personalhall',
  113. meta: { title: '人才招聘展会' },
  114. component: () => import('../views/personalhall/index.vue'),
  115. },
  116. // 专家培训在线
  117. {
  118. path: '/exporthall/index',
  119. name: 'exporthall',
  120. meta: { title: '专家培训在线展会' },
  121. component: () => import('../views/exporthall/index.vue'),
  122. },
  123. // 科技在线频道
  124. {
  125. path: '/kjpdhall/index',
  126. name: 'kjpdhall',
  127. meta: { title: '科技在线频道' },
  128. component: () => import('../views/kjpdhall/index.vue'),
  129. },
  130. // 在线展会
  131. {
  132. path: '/hall/directBefore',
  133. name: 'live_directBefore',
  134. meta: { title: '直播大厅', subSite: true },
  135. component: () => import('../views/hall/directBefore.vue'),
  136. },
  137. {
  138. path: '/hall/direct',
  139. name: 'live_direct',
  140. meta: { title: '直播大厅', subSite: true },
  141. component: () => import('../views/hall/direct.vue'),
  142. },
  143. {
  144. path: '/halltwo/directTwo',
  145. name: 'live_directTwo',
  146. meta: { title: '直播大厅', subSite: true },
  147. component: () => import('../views/halltwo/directTwo.vue'),
  148. },
  149. {
  150. path: '/halltwo/shoolDetail',
  151. name: 'shoolDetail',
  152. meta: { title: '高校详情', subSite: true },
  153. component: () => import('../views/halltwo/shoolDetail.vue'),
  154. },
  155. {
  156. path: '/halltwo/detail',
  157. name: 'detail',
  158. meta: { title: '活动总结', subSite: true },
  159. component: () => import('../views/halltwo/detail.vue'),
  160. },
  161. {
  162. path: '/halltwo/xmdj',
  163. name: 'xmdj',
  164. meta: { title: '项目对接', subSite: true },
  165. component: () => import('../views/halltwo/xmdj.vue'),
  166. },
  167. {
  168. path: '/halltwo/xmcg',
  169. name: 'xmcg',
  170. meta: { title: '项目成果', subSite: true },
  171. component: () => import('../views/halltwo/xmcg.vue'),
  172. },
  173. {
  174. path: '/halltwo/expertxmcg',
  175. name: 'expertxmcg',
  176. meta: { title: '专家列表', subSite: true },
  177. component: () => import('../views/halltwo/expertxmcg.vue'),
  178. },
  179. {
  180. path: '/halltwo/expertxmcg',
  181. name: 'expertxmcg',
  182. meta: { title: '专家列表', subSite: true },
  183. component: () => import('../views/halltwo/expertxmcg.vue'),
  184. },
  185. {
  186. path: '/halltwo/liveCenter',
  187. name: 'liveCenter',
  188. meta: { title: '直播中心', subSite: true },
  189. component: () => import('../views/halltwo/liveCenter.vue'),
  190. },
  191. {
  192. path: '/hall/productList/technologyList',
  193. name: 'live_technologyList',
  194. meta: { title: '产品列表', subSite: true },
  195. component: () => import('../views/hall/productList/technologyList.vue'),
  196. },
  197. {
  198. path: '/hall/productList/expertList',
  199. name: 'productList_expertList',
  200. meta: { title: '专家列表', subSite: true },
  201. component: () => import('../views/hall/productList/expertList.vue'),
  202. },
  203. {
  204. path: '/live/hall/dock/dockDetail',
  205. meta: { title: '项目信息详情', subSite: true },
  206. name: 'dock_Detail',
  207. component: () => import('../views/hall/dock/dockDetail.vue'),
  208. },
  209. {
  210. path: '/live/hall/dock/zhanjiaduijie',
  211. meta: { title: '专家信息详情', subSite: true },
  212. name: 'zhuanjiadds',
  213. component: () => import('../views/hall/dock/zhanjiaduijie.vue'),
  214. },
  215. // 个人,机构,专家-个人中心
  216. {
  217. path: '/userCenter/index',
  218. meta: { title: '个人中心', subSite: true },
  219. component: () => import('../views/userCenter/index.vue'),
  220. },
  221. // 展会管理员-个人中心
  222. {
  223. path: '/adminCenter/index',
  224. meta: { title: '个人中心', subSite: true },
  225. component: () => import('../views/adminCenter/index.vue'),
  226. },
  227. // 管理员-个人中心
  228. {
  229. path: '/superAdminCenter/index',
  230. meta: { title: '个人中心', subSite: true },
  231. component: () => import('../views/superAdminCenter/index.vue'),
  232. },
  233. // 展会vip-个人中心
  234. {
  235. path: '/vipCenter/index',
  236. meta: { title: '个人中心', subSite: true },
  237. component: () => import('../views/vipCenter/index.vue'),
  238. },
  239. // 科技频道-个人中心
  240. {
  241. path: '/kjpdCenter/index',
  242. meta: { title: '个人中心', subSite: true },
  243. component: () => import('../views/kjpdCenter/index.vue'),
  244. },
  245. // 通知
  246. {
  247. path: '/notice/index',
  248. name: 'notice',
  249. meta: { title: '通知详情' },
  250. component: () => import('../views/notice/index.vue'),
  251. },
  252. ];
  253. const routes = [...live];
  254. const router = new VueRouter({
  255. mode: 'history',
  256. base: process.env.NODE_ENV === 'development' ? '' : 'platlive',
  257. routes,
  258. });
  259. checkLogin(router);
  260. export default router;