index.js 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234
  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/detail',
  151. name: 'detail',
  152. meta: { title: '活动总结', subSite: true },
  153. component: () => import('../views/halltwo/detail.vue'),
  154. },
  155. {
  156. path: '/halltwo/xmcg',
  157. name: 'xmcg',
  158. meta: { title: '项目成果', subSite: true },
  159. component: () => import('../views/halltwo/xmcg.vue'),
  160. },
  161. {
  162. path: '/hall/productList/technologyList',
  163. name: 'live_technologyList',
  164. meta: { title: '产品列表', subSite: true },
  165. component: () => import('../views/hall/productList/technologyList.vue'),
  166. },
  167. {
  168. path: '/hall/productList/expertList',
  169. name: 'productList_expertList',
  170. meta: { title: '专家列表', subSite: true },
  171. component: () => import('../views/hall/productList/expertList.vue'),
  172. },
  173. {
  174. path: '/live/hall/dock/dockDetail',
  175. meta: { title: '项目信息详情', subSite: true },
  176. name: 'dock_Detail',
  177. component: () => import('../views/hall/dock/dockDetail.vue'),
  178. },
  179. {
  180. path: '/live/hall/dock/zhanjiaduijie',
  181. meta: { title: '专家信息详情', subSite: true },
  182. name: 'zhuanjiadds',
  183. component: () => import('../views/hall/dock/zhanjiaduijie.vue'),
  184. },
  185. // 个人,机构,专家-个人中心
  186. {
  187. path: '/userCenter/index',
  188. meta: { title: '个人中心', subSite: true },
  189. component: () => import('../views/userCenter/index.vue'),
  190. },
  191. // 展会管理员-个人中心
  192. {
  193. path: '/adminCenter/index',
  194. meta: { title: '个人中心', subSite: true },
  195. component: () => import('../views/adminCenter/index.vue'),
  196. },
  197. // 管理员-个人中心
  198. {
  199. path: '/superAdminCenter/index',
  200. meta: { title: '个人中心', subSite: true },
  201. component: () => import('../views/superAdminCenter/index.vue'),
  202. },
  203. // 展会vip-个人中心
  204. {
  205. path: '/vipCenter/index',
  206. meta: { title: '个人中心', subSite: true },
  207. component: () => import('../views/vipCenter/index.vue'),
  208. },
  209. // 科技频道-个人中心
  210. {
  211. path: '/kjpdCenter/index',
  212. meta: { title: '个人中心', subSite: true },
  213. component: () => import('../views/kjpdCenter/index.vue'),
  214. },
  215. // 通知
  216. {
  217. path: '/notice/index',
  218. name: 'notice',
  219. meta: { title: '通知详情' },
  220. component: () => import('../views/notice/index.vue'),
  221. },
  222. ];
  223. const routes = [...live];
  224. const router = new VueRouter({
  225. mode: 'history',
  226. base: process.env.NODE_ENV === 'development' ? '' : 'platlive',
  227. routes,
  228. });
  229. checkLogin(router);
  230. export default router;