import Vue from 'vue'; import VueRouter from 'vue-router'; import checkLogin from '@common/router/before'; Vue.use(VueRouter); const live = [ { path: '/live', name: 'live', component: () => import('../views/index.vue'), children: [ // 平台登录 { path: '/webLogin', meta: { title: '平台登陆' }, component: () => import('../views/webLogin.vue'), }, //管理登录 { path: '/adminLogin', meta: { title: '管理登陆' }, component: () => import('../views/adminLogin.vue'), }, // 展会登录 { path: '/dockLogin', meta: { title: '展会管理登录' }, component: () => import('../views/dockLogin.vue'), }, // 信息详情 { path: '/live/detail', meta: { title: '信息详情', subSite: true }, name: 'live_detail', component: () => import('../views/detail/detail.vue'), }, // 专题研讨 { path: '/live/semDetail', meta: { title: '专题研讨详情', subSite: true }, name: 'live_semDetail', component: () => import('../views/detail/semDetail.vue'), }, // 教育培训 { path: '/live/eduDetail', meta: { title: '信息详情', subSite: true }, name: 'live_eduDetail', component: () => import('../views/detail/eduDetail.vue'), }, { path: '/market/index', name: 'market_index', meta: { title: '科技超市', subSite: true }, component: () => import('../views/market/index.vue'), }, { path: '/market/marketfabu', name: 'market_fabu', meta: { title: '我要发布', subSite: true }, component: () => import('../views/market/marketfabu.vue'), }, { path: '/personnel/rencai', name: 'personnelrencai', meta: { title: '专家详情', subSite: true }, component: () => import('../views/personnel/rencai.vue'), }, { path: '/personnel/list', name: 'personnel', meta: { title: '专家列表', subSite: true }, component: () => import('../views/personnel/list.vue'), }, //科技超市列表 { path: '/supermaket/supermarketlist', name: 'supermarketlist', component: () => import('../views/supermaket/supermarketlist.vue'), }, //xiangqing { path: '/supermaket/supermarketdetail', name: 'supermarketdetail', component: () => import('../views/supermaket/supermarketdetail.vue'), }, //科技超市列表 { path: '/market/marketlists', name: 'marketlist_index', meta: { title: '科技超市', subSite: true }, component: () => import('../views/market/marketlists.vue'), }, { path: '/dynamic/index', name: 'dynamic_index', meta: { title: '动态监测列表', subSite: true }, component: () => import('../views/dynamic/index.vue'), }, // 动态监测-交易动态详情 { path: '/dynamic/dealDetail', name: 'dynamic_dealDetail', meta: { title: '交易动态详情', subSite: true }, component: () => import('../views/dynamic/dealDetail.vue'), }, { path: '/technical/index', name: 'technical_index', meta: { title: '技术培训', subSite: true }, component: () => import('../views/technical/index.vue'), }, { path: '/hallList/index', name: 'hallList_lzhibolist', meta: { title: '直播大厅列表', subSite: true }, component: () => import('../views/hallList/index.vue'), }, { path: '/hallList/zongjie', meta: { title: '展会总结', subSite: true }, name: 'dock_zongjie', component: () => import('../views/hallList/zongjie.vue'), }, { path: '/technical/list', name: 'technical_list', meta: { title: '技术培训列表', subSite: true }, component: () => import('../views/technical/list.vue'), }, { path: '/live/liveApply', meta: { title: '项目申请', subSite: true }, name: 'live_apply', component: () => import('../views/hall/liveApply.vue'), }, { path: '/kejipeixun/index', name: 'kejipeixun_index', meta: { title: '科技培训', subSite: true }, component: () => import('../views/kejipeixun/index.vue'), }, { path: '/kejipeixun/list', name: 'kejipeixun_list', meta: { title: '科技培训列表', subSite: true }, component: () => import('../views/kejipeixun/list.vue'), }, { path: '/live/service', meta: { title: '创新服务', subSite: true }, name: 'live_service', component: () => import('../views/service/index.vue'), }, { path: '/live/service/list', meta: { title: '创新服务', subSite: true }, name: 'live_service_list', component: () => import('../views/service/list.vue'), }, { path: '/live/liveApply', meta: { title: '项目申请', subSite: true }, name: 'live_applys', component: () => import('../views/hall/liveApply.vue'), }, { path: '/market/contact', name: 'contact', meta: { title: '科技对接' }, component: () => import('../views/market/contact.vue'), }, ], }, //企业-信息管理 { path: '/enterprise/enterprisexx', name: 'enterprisexx', component: () => import('../views/enterprise/enterprisexx.vue'), }, // 企业-需求发布 { path: '/enterprise/enterprisexuqiu', name: 'enterprisexuqiu', component: () => import('../views/enterprise/enterprisexuqiu.vue'), }, //企业-订购 { path: '/enterprise/enterprisedg', name: 'enterprisedg', component: () => import('../views/enterprise/enterprisedg.vue'), }, //修改密码 { path: '/enterprise/xiugai', name: 'xiugai', component: () => import('../views/enterprise/xiugai.vue'), }, //展会管理 { path: '/enterprise/appointment', name: 'exhibitionappointment_', meta: { title: '展会管理', subSite: true }, component: () => import('../views/enterprise/appointment.vue'), }, //展会管理-创建 { path: '/enterprise/duijiedetail', name: 'exhibitioduijiedetail', meta: { title: '对接会', subSite: true }, component: () => import('../views/enterprise/duijiedetail.vue'), }, //展会管理-shenhe { path: '/enterprise/shenhe', name: 'exhibitishenhe', meta: { title: '对接会审核', subSite: true }, component: () => import('../views/enterprise/shenhe.vue'), }, //展会管理-状态审核 { path: '/enterprise/duijiestatus', name: 'exhibitiduijiestatus', meta: { title: '对接会状态审核', subSite: true }, component: () => import('../views/enterprise/duijiestatus.vue'), }, //展会管理-查看申请情况 { path: '/enterprise/look', name: 'exhibitilook', meta: { title: '对接会状态审核', subSite: true }, component: () => import('../views/enterprise/look.vue'), }, //企业-基本信息 { path: '/enterprise/enterprisejb', name: 'enterprisejb', component: () => import('../views/enterprise/enterprisejb.vue'), }, // //企业-发布信息列表 { path: '/enterprise/enterprisefabu', name: 'enterprisefabu', component: () => import('../views/enterprise/enterprisefabu.vue'), }, { path: '/hall/direct', name: 'live_direct', meta: { title: '直播大厅', subSite: true }, component: () => import('../views/hall/direct.vue'), }, { path: '/hall/productList/expertList', name: 'productList_expertList', meta: { title: '直播大厅', subSite: true }, component: () => import('../views/hall/productList/expertList.vue'), }, // 直播大厅-查看更多技术列表 { path: '/hall/productList/technologyList', name: 'live_technologyList', meta: { title: '产品列表', subSite: true }, component: () => import('../views/hall/productList/technologyList.vue'), }, // 07-16增加 // 嘉宾访谈 { path: '/hall/zxzdxmly/zxzdDetail', name: 'zxzdxmly_zxzdDetail', meta: { title: '嘉宾访谈', subSite: true }, component: () => import('../views/hall/zxzdxmly/zxzdDetail.vue'), }, // 项目路演 { path: '/hall/zxzdxmly/xmlyDetail', name: 'zxzdxmly_xmlyDetail', meta: { title: '项目路演', subSite: true }, component: () => import('../views/hall/zxzdxmly/xmlyDetail.vue'), }, { path: '/hall/index', name: 'hall_index', meta: { title: '直播首页', subSite: true }, component: () => import('../views/hall/index.vue'), }, { path: '/live/liveList', meta: { title: '直播中心', subSite: true }, name: 'live_list', component: () => import('../views/hall/liveList.vue'), }, { path: '/live/hallDetail', meta: { title: '直播详情', subSite: true }, name: 'live_hallDetail', component: () => import('../views/hall/hallDetail.vue'), }, { path: '/live/hall/dock/dockDetail', meta: { title: '项目信息详情', subSite: true }, name: 'dock_Detail', component: () => import('../views/hall/dock/dockDetail.vue'), }, { path: '/live/hall/dock/zhuanjiaDetail', meta: { title: '专家信息详情', subSite: true }, name: 'zhuanjiaDetail', component: () => import('../views/hall/dock/zhuanjiaDetail.vue'), }, { path: '/live/hall/dock/zhanjiaduijie', meta: { title: '专家信息详情', subSite: true }, name: 'zhuanjiadds', component: () => import('../views/hall/dock/zhanjiaduijie.vue'), }, { path: '/live/hall/dock/dockInfo', meta: { title: '对接信息查看', subSite: true }, name: 'dock_Info', component: () => import('../views/hall/dock/dockInfo.vue'), }, { path: '/', meta: { title: '直播首页', subSite: true }, name: 'home_index', component: () => import('../views/home.vue'), }, // 5-21新增改版个人中心 // 基本信息 { path: '/userCenter/index', meta: { title: '个人中心', subSite: true }, component: () => import('../views/userCenter/index.vue'), }, // 7-1新增管理展会个人中心 { path: '/adminCenter/index', meta: { title: '个人中心', subSite: true }, component: () => import('../views/adminCenter/index.vue'), }, // 7-1新增平台VIP个人中心 { path: '/vipCenter/index', meta: { title: '个人中心', subSite: true }, component: () => import('../views/vipCenter/index.vue'), }, // 7-16新增管理个人中心 { path: '/superAdminCenter/index', meta: { title: '个人中心', subSite: true }, component: () => import('../views/superAdminCenter/index.vue'), }, ]; const routes = [...live]; const router = new VueRouter({ mode: 'history', base: process.env.NODE_ENV === 'development' ? '' : process.env.VUE_APP_ROUTER, routes, }); checkLogin(router); export default router;