index.js 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  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: '/technical/product',
  51. name: 'product',
  52. meta: { title: '发布产品', subSite: true },
  53. component: () => import('../views/technical/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: '/hall/zxzdxmly/zxzdDetail',
  151. name: 'zxzdxmly_zxzdDetail',
  152. meta: { title: '嘉宾访谈', subSite: true },
  153. component: () => import('../views/hall/zxzdxmly/zxzdDetail.vue'),
  154. },
  155. // 项目路演
  156. {
  157. path: '/hall/zxzdxmly/xmlyDetail',
  158. name: 'zxzdxmly_xmlyDetail',
  159. meta: { title: '项目路演', subSite: true },
  160. component: () => import('../views/hall/zxzdxmly/xmlyDetail.vue'),
  161. },
  162. {
  163. path: '/halltwo/schoolMore',
  164. name: 'schoolMore',
  165. meta: { title: '更多高校', subSite: true },
  166. component: () => import('../views/halltwo/schoolMore.vue'),
  167. },
  168. {
  169. path: '/halltwo/shoolDetail',
  170. name: 'shoolDetail',
  171. meta: { title: '高校详情', subSite: true },
  172. component: () => import('../views/halltwo/shoolDetail.vue'),
  173. },
  174. {
  175. path: '/halltwo/detail',
  176. name: 'detail',
  177. meta: { title: '活动总结', subSite: true },
  178. component: () => import('../views/halltwo/detail.vue'),
  179. },
  180. {
  181. path: '/halltwo/xmdj',
  182. name: 'xmdj',
  183. meta: { title: '项目对接', subSite: true },
  184. component: () => import('../views/halltwo/xmdj.vue'),
  185. },
  186. {
  187. path: '/halltwo/xmcg',
  188. name: 'xmcg',
  189. meta: { title: '项目成果', subSite: true },
  190. component: () => import('../views/halltwo/xmcg.vue'),
  191. },
  192. {
  193. path: '/halltwo/expertxmcg',
  194. name: 'expertxmcg',
  195. meta: { title: '专家列表', subSite: true },
  196. component: () => import('../views/halltwo/expertxmcg.vue'),
  197. },
  198. {
  199. path: '/halltwo/expertxmcg',
  200. name: 'expertxmcg',
  201. meta: { title: '专家列表', subSite: true },
  202. component: () => import('../views/halltwo/expertxmcg.vue'),
  203. },
  204. {
  205. path: '/halltwo/liveCenter',
  206. name: 'liveCenter',
  207. meta: { title: '直播中心', subSite: true },
  208. component: () => import('../views/halltwo/liveCenter.vue'),
  209. },
  210. {
  211. path: '/hall/productList/technologyList',
  212. name: 'live_technologyList',
  213. meta: { title: '产品列表', subSite: true },
  214. component: () => import('../views/hall/productList/technologyList.vue'),
  215. },
  216. {
  217. path: '/hall/productList/expertList',
  218. name: 'productList_expertList',
  219. meta: { title: '专家列表', subSite: true },
  220. component: () => import('../views/hall/productList/expertList.vue'),
  221. },
  222. {
  223. path: '/live/hall/dock/dockDetail',
  224. meta: { title: '项目信息详情', subSite: true },
  225. name: 'dock_Detail',
  226. component: () => import('../views/hall/dock/dockDetail.vue'),
  227. },
  228. {
  229. path: '/live/hall/dock/zhanjiaduijie',
  230. meta: { title: '专家信息详情', subSite: true },
  231. name: 'zhuanjiadds',
  232. component: () => import('../views/hall/dock/zhanjiaduijie.vue'),
  233. },
  234. // 个人,机构,专家-个人中心
  235. {
  236. path: '/userCenter/index',
  237. meta: { title: '个人中心', subSite: true },
  238. component: () => import('../views/userCenter/index.vue'),
  239. },
  240. // 展会管理员-个人中心
  241. {
  242. path: '/adminCenter/index',
  243. meta: { title: '个人中心', subSite: true },
  244. component: () => import('../views/adminCenter/index.vue'),
  245. },
  246. // 管理员-个人中心
  247. {
  248. path: '/superAdminCenter/index',
  249. meta: { title: '个人中心', subSite: true },
  250. component: () => import('../views/superAdminCenter/index.vue'),
  251. },
  252. // 展会vip-个人中心
  253. {
  254. path: '/vipCenter/index',
  255. meta: { title: '个人中心', subSite: true },
  256. component: () => import('../views/vipCenter/index.vue'),
  257. },
  258. // 科技频道-个人中心
  259. {
  260. path: '/kjpdCenter/index',
  261. meta: { title: '个人中心', subSite: true },
  262. component: () => import('../views/kjpdCenter/index.vue'),
  263. },
  264. // 通知
  265. {
  266. path: '/notice/index',
  267. name: 'notice',
  268. meta: { title: '通知详情' },
  269. component: () => import('../views/notice/index.vue'),
  270. },
  271. ];
  272. const routes = [...live];
  273. const router = new VueRouter({
  274. mode: 'history',
  275. base: process.env.NODE_ENV === 'development' ? '' : 'platlive',
  276. routes,
  277. });
  278. checkLogin(router);
  279. export default router;