123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264 |
- import Vue from 'vue';
- import VueRouter from 'vue-router';
- import checkLogin from './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/service',
- meta: { title: '新闻资讯', subSite: true },
- name: 'live_service',
- component: () => import('../views/service/index.vue'),
- },
- {
- path: '/live/service/newslist',
- meta: { title: '新闻资讯', subSite: true },
- name: 'live_service_newslist',
- component: () => import('../views/service/newslist.vue'),
- },
- // 动态监测
- {
- path: '/dynamic/index',
- name: 'dynamic_index',
- meta: { title: '动态监测列表', subSite: true },
- component: () => import('../views/dynamic/index.vue'),
- },
- {
- path: '/dynamic/product',
- name: 'product',
- meta: { title: '发布产品', subSite: true },
- component: () => import('../views/dynamic/product.vue'),
- },
- // 技术交流
- {
- path: '/technical/index',
- name: 'technical_index',
- meta: { title: '技术交流', subSite: true },
- component: () => import('../views/technical/index.vue'),
- },
- {
- path: '/technical/list',
- name: 'technical_list',
- meta: { title: '技术交流', subSite: true },
- component: () => import('../views/technical/list.vue'),
- },
- // 科技超市
- {
- path: '/market/index',
- name: 'market_index',
- meta: { title: '科技超市', subSite: true },
- component: () => import('../views/market/index.vue'),
- },
- {
- path: '/market/marketlists',
- name: 'marketlist_index',
- meta: { title: '科技超市', subSite: true },
- component: () => import('../views/market/marketlists.vue'),
- },
- // 直播大厅
- {
- path: '/hallList/index',
- name: 'hallList_lzhibolist',
- meta: { title: '直播大厅', subSite: true },
- component: () => import('../views/hallList/index.vue'),
- },
- {
- path: '/hallList/kjpdLogin',
- name: 'kjpdLogin',
- meta: { title: '管理登录', subSite: true },
- component: () => import('../views/hallList/kjpdLogin.vue'),
- },
- {
- path: '/live/liveApply',
- meta: { title: '项目申请', subSite: true },
- name: 'live_apply',
- component: () => import('../views/hall/liveApply.vue'),
- },
- ],
- },
- // 首页
- {
- path: '/',
- meta: { title: '直播首页', subSite: true },
- name: 'home_index',
- component: () => import('../views/home.vue'),
- },
- // 人才
- {
- path: '/personalhall/index',
- name: 'personalhall',
- meta: { title: '人才招聘展会' },
- component: () => import('../views/personalhall/index.vue'),
- },
- // 专家培训在线
- {
- path: '/exporthall/index',
- name: 'exporthall',
- meta: { title: '专家培训在线展会' },
- component: () => import('../views/exporthall/index.vue'),
- },
- // 科技在线频道
- {
- path: '/kjpdhall/index',
- name: 'kjpdhall',
- meta: { title: '科技在线频道' },
- component: () => import('../views/kjpdhall/index.vue'),
- },
- // 在线展会
- {
- path: '/hall/directBefore',
- name: 'live_directBefore',
- meta: { title: '直播大厅', subSite: true },
- component: () => import('../views/hall/directBefore.vue'),
- },
- {
- path: '/hall/direct',
- name: 'live_direct',
- meta: { title: '直播大厅', subSite: true },
- component: () => import('../views/hall/direct.vue'),
- },
- {
- path: '/halltwo/directTwo',
- name: 'live_directTwo',
- meta: { title: '直播大厅', subSite: true },
- component: () => import('../views/halltwo/directTwo.vue'),
- },
- {
- path: '/halltwo/shoolDetail',
- name: 'shoolDetail',
- meta: { title: '高校详情', subSite: true },
- component: () => import('../views/halltwo/shoolDetail.vue'),
- },
- {
- path: '/halltwo/detail',
- name: 'detail',
- meta: { title: '活动总结', subSite: true },
- component: () => import('../views/halltwo/detail.vue'),
- },
- {
- path: '/halltwo/xmdj',
- name: 'xmdj',
- meta: { title: '项目对接', subSite: true },
- component: () => import('../views/halltwo/xmdj.vue'),
- },
- {
- path: '/halltwo/xmcg',
- name: 'xmcg',
- meta: { title: '项目成果', subSite: true },
- component: () => import('../views/halltwo/xmcg.vue'),
- },
- {
- path: '/halltwo/expertxmcg',
- name: 'expertxmcg',
- meta: { title: '专家列表', subSite: true },
- component: () => import('../views/halltwo/expertxmcg.vue'),
- },
- {
- path: '/halltwo/expertxmcg',
- name: 'expertxmcg',
- meta: { title: '专家列表', subSite: true },
- component: () => import('../views/halltwo/expertxmcg.vue'),
- },
- {
- path: '/halltwo/liveCenter',
- name: 'liveCenter',
- meta: { title: '直播中心', subSite: true },
- component: () => import('../views/halltwo/liveCenter.vue'),
- },
- {
- path: '/hall/productList/technologyList',
- name: 'live_technologyList',
- meta: { title: '产品列表', subSite: true },
- component: () => import('../views/hall/productList/technologyList.vue'),
- },
- {
- path: '/hall/productList/expertList',
- name: 'productList_expertList',
- meta: { title: '专家列表', subSite: true },
- component: () => import('../views/hall/productList/expertList.vue'),
- },
- {
- path: '/live/hall/dock/dockDetail',
- meta: { title: '项目信息详情', subSite: true },
- name: 'dock_Detail',
- component: () => import('../views/hall/dock/dockDetail.vue'),
- },
- {
- path: '/live/hall/dock/zhanjiaduijie',
- meta: { title: '专家信息详情', subSite: true },
- name: 'zhuanjiadds',
- component: () => import('../views/hall/dock/zhanjiaduijie.vue'),
- },
- // 个人,机构,专家-个人中心
- {
- path: '/userCenter/index',
- meta: { title: '个人中心', subSite: true },
- component: () => import('../views/userCenter/index.vue'),
- },
- // 展会管理员-个人中心
- {
- path: '/adminCenter/index',
- meta: { title: '个人中心', subSite: true },
- component: () => import('../views/adminCenter/index.vue'),
- },
- // 管理员-个人中心
- {
- path: '/superAdminCenter/index',
- meta: { title: '个人中心', subSite: true },
- component: () => import('../views/superAdminCenter/index.vue'),
- },
- // 展会vip-个人中心
- {
- path: '/vipCenter/index',
- meta: { title: '个人中心', subSite: true },
- component: () => import('../views/vipCenter/index.vue'),
- },
- // 科技频道-个人中心
- {
- path: '/kjpdCenter/index',
- meta: { title: '个人中心', subSite: true },
- component: () => import('../views/kjpdCenter/index.vue'),
- },
- // 通知
- {
- path: '/notice/index',
- name: 'notice',
- meta: { title: '通知详情' },
- component: () => import('../views/notice/index.vue'),
- },
- ];
- const routes = [...live];
- const router = new VueRouter({
- mode: 'history',
- base: process.env.NODE_ENV === 'development' ? '' : 'platlive',
- routes,
- });
- checkLogin(router);
- export default router;
|