123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369 |
- 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;
|