123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335 |
- import Vue from 'vue';
- import VueRouter from 'vue-router';
- import checkLogin from './before';
- Vue.use(VueRouter);
- const live = [
- {
- path: '/live',
- name: 'live_detail',
- component: () => import('../views/live/index.vue'),
- children: [
- {
- path: '/live/detail',
- meta: { title: '信息详情', subSite: true },
- name: 'live_detail',
- component: () => import('../views/live/detail/detail.vue'),
- },
- {
- path: '/live/dynamic',
- meta: { title: '动态监控', subSite: true },
- name: 'live_dynamic',
- component: () => import('../views/live/dynamic/index.vue'),
- },
- {
- path: '/live/list',
- meta: { title: '新闻列表', subSite: true },
- name: 'live_list',
- component: () => import('../views/live/news-list/index.vue'),
- },
- {
- path: '/live/img/list',
- meta: { title: '图片列表', subSite: true },
- name: 'live_img_list',
- component: () => import('../views/live/news-list/img-list.vue'),
- },
- {
- path: '/live/service',
- meta: { title: '创新服务', subSite: true },
- name: 'live_service',
- component: () => import('../views/live/service/index.vue'),
- },
- {
- path: '/live/market',
- meta: { title: '科技超市', subSite: true },
- name: 'live_market',
- component: () => import('../views/live/market/index.vue'),
- },
- {
- path: '/live/technical',
- meta: { title: '科技超市', subSite: true },
- name: 'live_technical',
- component: () => import('../views/live/technical/index.vue'),
- },
- {
- path: '/live/liveApply',
- meta: { title: '项目申请', subSite: true },
- name: 'live_apply',
- component: () => import('../views/live/hall/liveApply.vue'),
- },
- ],
- },
- {
- path: '/live/hall/index',
- meta: { title: '直播首页', subSite: true },
- name: 'live_hall_index',
- component: () => import('../views/live/hall/index.vue'),
- },
- {
- path: '/live/hall',
- meta: { title: '直播大厅', subSite: true },
- name: 'live_hall',
- component: () => import('../views/live/hall/hall.vue'),
- },
- {
- path: '/live/liveList',
- meta: { title: '直播中心', subSite: true },
- name: 'live_list',
- component: () => import('../views/live/hall/liveList.vue'),
- },
- {
- path: '/live/hallDetail',
- meta: { title: '直播详情', subSite: true },
- name: 'live_hallDetail',
- component: () => import('../views/live/hall/hallDetail.vue'),
- },
- {
- path: '/live/home',
- meta: { title: '直播首页', subSite: true },
- name: 'live_home',
- component: () => import('../views/live/home.vue'),
- },
- ];
- const routes = [
- {
- path: '/',
- name: 'index',
- component: () => import('../views/index.vue'),
- },
- // 科技政务
- {
- path: '/government/government',
- name: 'government',
- component: () => import('../views/government/government.vue'),
- },
- // 科技政务-列表
- {
- path: '/government/governmentList',
- name: 'governmentList',
- component: () => import('../views/government/governmentList.vue'),
- },
- // 科技政务-详情
- {
- path: '/government/governmentDetail',
- name: 'governmentDetail',
- component: () => import('../views/government/governmentDetail.vue'),
- },
- // 科技政策
- {
- path: '/policy/policy',
- name: 'policy',
- component: () => import('../views/policy/policy.vue'),
- },
- // 首页政策法规详情(所属科技政策,综合政策指导)
- {
- path: '/policy/lawDetail',
- name: 'lawDetail',
- component: () => import('../views/policy/lawDetail.vue'),
- },
- // 科技超市
- {
- path: '/supermaket/supermarket',
- name: 'supermarket',
- component: () => import('../views/supermaket/supermarket.vue'),
- },
- // 科技超市产品列表
- {
- path: '/supermaket/supermarketlist',
- name: 'supermarketlist',
- component: () => import('../views/supermaket/supermarketlist.vue'),
- },
- // 科技超市-高校院所
- {
- path: '/supermaket/supermarketColleges',
- name: 'supermarketColleges',
- component: () => import('../views/supermaket/supermarketColleges.vue'),
- },
- // 科技超市-科研院所
- {
- path: '/supermaket/supermarketScientific',
- name: 'supermarketSientific',
- component: () => import('../views/supermaket/supermarketScientific.vue'),
- },
- // 科技超市-科技企业
- {
- path: '/supermaket/supermarketEnterprise',
- name: 'supermarketEnterprise',
- component: () => import('../views/supermaket/supermarketEnterprise.vue'),
- },
- // 科技超市-机构团体
- {
- path: '/supermaket/supermarketGroup',
- name: 'supermarketGroup',
- component: () => import('../views/supermaket/supermarketGroup.vue'),
- },
- // 科技超市-研发服务
- {
- path: '/supermaket/supermaketService',
- name: 'supermaketService',
- component: () => import('../views/supermaket/supermaketService.vue'),
- },
- //科技超市-技术成果
- {
- path: '/supermaket/supermakettechnology',
- name: 'supermakettechnology',
- component: () => import('../views/supermaket/supermakettechnology.vue'),
- },
- // 科技超市-创新产品
- {
- path: '/supermaket/supermarketProduct',
- name: 'supermarketProduct',
- component: () => import('../views/supermaket/supermarketProduct.vue'),
- },
- // 科技超市-咨询服务
- {
- path: '/supermaket/supermarketinnovate',
- name: 'supermarketinnovate',
- component: () => import('../views/supermaket/supermarketinnovate.vue'),
- },
- //科技数据
- {
- path: '/shuju/shuju',
- name: 'shuju',
- component: () => import('../views/shuju/shuju.vue'),
- },
- {
- path: '/shuju/shujulist',
- name: 'shujulist',
- component: () => import('../views/shuju/shujulist.vue'),
- },
- {
- path: '/shuju/shujudetail',
- name: 'shujudetail',
- component: () => import('../views/shuju/shujudetail.vue'),
- },
- //科技服务
- {
- path: '/service/service',
- name: 'service',
- component: () => import('../views/service/service.vue'),
- },
- {
- path: '/service/servicelist',
- name: 'servicelist',
- component: () => import('../views/service/servicelist.vue'),
- },
- {
- path: '/service/servicedetail',
- name: ' servicedetail',
- component: () => import('../views/service/servicedetail.vue'),
- },
- // 科技资源
- {
- path: '/resource/resource',
- name: 'service',
- component: () => import('../views/resource/resource.vue'),
- },
- //登录和注册
- {
- path: '/login',
- meta: { title: '用户' },
- component: () => import('../views/login.vue'),
- },
- //科技人才
- {
- path: '/personnel/personnel',
- name: 'personnel',
- component: () => import('../views/personnel/personnel.vue'),
- },
- //科技人才投简历详情
- {
- path: '/personnel/rencai',
- component: () => import('../views/personnel/rencai.vue'),
- },
- //科技人才找工作详情
- {
- path: '/personnel/personnelwork',
- name: 'personnelwork',
- component: () => import('../views/personnel/personnelwork.vue'),
- },
- //科技人才找专家详情
- {
- path: '/personnel/personnelexpert',
- component: () => import('../views/personnel/personnelexpert.vue'),
- },
- // 科技人才找参谋详情
- {
- path: '/personnel/personnelcmdetail',
- component: () => import('../views/personnel/personnelcmdetail.vue'),
- },
- // 科技人才找招聘信息
- {
- path: '/personnel/recruitList',
- component: () => import('../views/personnel/recruitList.vue'),
- },
- // 科技人才-就业指导
- {
- path: '/personnel/guidanceList',
- component: () => import('../views/personnel/guidanceList.vue'),
- },
- // 科技人才-学习实践
- {
- path: '/personnel/practiceList',
- component: () => import('../views/personnel/practiceList.vue'),
- },
- // 科技人才-勤工俭学
- {
- path: '/personnel/diligenceList',
- component: () => import('../views/personnel/diligenceList.vue'),
- },
- // 科技人才-工作顾问
- {
- path: '/personnel/adviserList',
- component: () => import('../views/personnel/adviserList.vue'),
- },
- //企业-基本信息
- {
- path: '/enterprise/enterprisejb',
- name: 'enterprisefabu',
- component: () => import('../views/enterprise/enterprisejb.vue'),
- },
- //企业-信息管理
- {
- path: '/enterprise/enterprisexx',
- name: 'enterprisexuqiu',
- component: () => import('../views/enterprise/enterprisexx.vue'),
- },
- //企业-发布信息列表
- {
- path: '/enterprise/enterprisefabu',
- name: 'enterprisefabu',
- component: () => import('../views/enterprise/enterprisefabu.vue'),
- },
- // 企业-需求发布
- {
- path: '/enterprise/enterprisexuqiu',
- name: 'enterprisexuqiu',
- component: () => import('../views/enterprise/enterprisexuqiu.vue'),
- },
- //企业-订购
- {
- path: '/enterprise/enterprisedg',
- name: 'enterprisedg',
- component: () => import('../views/enterprise/enterprisedg.vue'),
- },
- // 外审管理员
- {
- path: '/trial/index',
- name: 'trial',
- component: () => import('../views/trial/index.vue'),
- },
- ...live,
- ];
- const router = new VueRouter({
- mode: 'history',
- base: process.env.NODE_ENV === 'development' ? '/' : process.env.VUE_APP_ROUTER,
- routes,
- });
- checkLogin(router);
- export default router;
|