|
|
|
import Vue from 'vue'
|
|
|
|
import VueRouter from 'vue-router'
|
|
|
|
import Layout from '../views/layout/Layout.vue';
|
|
|
|
import mytemplate from '../views/template.vue';
|
|
|
|
|
|
|
|
Vue.use(VueRouter)
|
|
|
|
|
|
|
|
const routes = [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
component: Layout,
|
|
|
|
name: '',
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
name: 'home',
|
|
|
|
hidden: true,
|
|
|
|
component: () => import ('../views/home/index.vue'),
|
|
|
|
meta: { title: '首页', icon: 'register', noCache: true },
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'union',
|
|
|
|
name: 'union',
|
|
|
|
meta: { title: '关于联盟', icon: 'register', noCache: true },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'introduce',
|
|
|
|
name: 'introduceUnion',
|
|
|
|
meta: {title: '联盟介绍', icon: 'register', noCache: true,typeId:'LMJS'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'rules',
|
|
|
|
name: 'rulesUnion',
|
|
|
|
meta: {title: '联盟章程', icon: 'register', noCache: true,typeId:'LMZC'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'frame',
|
|
|
|
name: 'frameUnion',
|
|
|
|
meta: {title: '组织架构', icon: 'register', noCache: true,typeId:'ZZJG'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'member',
|
|
|
|
name: 'memberUnion',
|
|
|
|
meta: {title: '联盟成员', icon: 'register', noCache: true,typeId:'LMCY'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'us',
|
|
|
|
name: 'usUnion',
|
|
|
|
meta: {title: '联系我们', icon: 'register', noCache: true,typeId:'LXWM'},
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'meeting',
|
|
|
|
name: 'meeting',
|
|
|
|
component: mytemplate,
|
|
|
|
meta: { title: '互联网大会', icon: 'register', noCache: true },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'introduce',
|
|
|
|
name: 'introduceMeeting',
|
|
|
|
meta: {title: '大会介绍', icon: 'register', noCache: true,typeId:'DHJS'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'schedule',
|
|
|
|
name: 'scheduleMeeting',
|
|
|
|
meta: {title: '会议日程', icon: 'register', noCache: true,typeId:'HYRC'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'news',
|
|
|
|
name: 'newsMeeting',
|
|
|
|
components:{
|
|
|
|
banner: () => import('@/components/banner'),
|
|
|
|
default:() => import('@/views/meeting/news.vue')
|
|
|
|
|
|
|
|
},
|
|
|
|
meta: {title: '大会新闻', icon: 'register', noCache: true},
|
|
|
|
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// path: 'replay',
|
|
|
|
// name: 'replayMeeting',
|
|
|
|
// meta: {title: '大会回看', icon: 'register', noCache: true,typeId:'DHHK'},
|
|
|
|
// }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'forum',
|
|
|
|
name: 'forum',
|
|
|
|
component: mytemplate,
|
|
|
|
meta: { title: '转型升级论坛', icon: 'register', noCache: true },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'introduce',
|
|
|
|
name: 'introduceForum',
|
|
|
|
meta: {title: '论坛介绍', icon: 'register', noCache: true,typeId:'LTJS'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'schedule',
|
|
|
|
name: 'scheduleForum',
|
|
|
|
meta: {title: '论坛日程', icon: 'register', noCache: true,typeId:'LTRC'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'news',
|
|
|
|
name: 'newsForum',
|
|
|
|
components:{
|
|
|
|
banner: () => import('@/components/banner'),
|
|
|
|
default:() => import('@/views/forum/news.vue')
|
|
|
|
|
|
|
|
},
|
|
|
|
meta: {title: '论坛新闻', icon: 'register', noCache: true},
|
|
|
|
},
|
|
|
|
// {
|
|
|
|
// path: 'replay',
|
|
|
|
// name: 'replayForum',
|
|
|
|
// meta: {title: '论坛回顾', icon: 'register', noCache: true,typeId:'LTHG'},
|
|
|
|
// }
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'harvest',
|
|
|
|
name: 'harvest',
|
|
|
|
meta: { title: '联盟成果', icon: 'register', noCache: true },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'whitepaper',
|
|
|
|
name: 'whitepaper',
|
|
|
|
meta: {title: '白皮书', icon: 'register', noCache: true,typeId:'BPS'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'benchmark',
|
|
|
|
name: 'benchmark',
|
|
|
|
meta: {title: '技术标准', icon: 'register', noCache: true,typeId:'JSBZ'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'electronicMeetings ',
|
|
|
|
name: 'electronicMeetings ',
|
|
|
|
meta: {title: '电子会刊', icon: 'register', noCache: true,typeId:'DZHK'},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'example',
|
|
|
|
name: 'example',
|
|
|
|
meta: {title: '应用案例', icon: 'register', noCache: true,typeId:'YYAL'},
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'public',
|
|
|
|
name: 'public',
|
|
|
|
component: mytemplate,
|
|
|
|
meta: { title: '公共服务', icon: 'register', noCache: true },
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
path: 'platform',
|
|
|
|
name: 'platform',
|
|
|
|
components:{
|
|
|
|
banner: () => import('@/components/banner'),
|
|
|
|
default:() => import('@/views/public/platform.vue')
|
|
|
|
|
|
|
|
},
|
|
|
|
meta: {title: '平台', icon: 'register', noCache: true},
|
|
|
|
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{path: '/login', name: 'login', component: () => import('@/views/login/index.vue'), hidden: true},
|
|
|
|
{
|
|
|
|
path: 'editPassword',
|
|
|
|
component: () => import('@/views/login/editPassword.vue'),
|
|
|
|
name: 'editPassword',
|
|
|
|
hidden: true,
|
|
|
|
meta: {title: '修改密码', icon: 'eye', noCache: true},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'userInfo',
|
|
|
|
component: () => import('@/views/login/userInfo.vue'),
|
|
|
|
name: 'userInfo',
|
|
|
|
hidden: true,
|
|
|
|
meta: {title: '个人中心', icon: 'eye', noCache: true},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'register',
|
|
|
|
component: () => import('@/views/login/register.vue'),
|
|
|
|
name: 'register',
|
|
|
|
hidden: true,
|
|
|
|
meta: {title: '注册', icon: 'eye', noCache: true},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: 'retrievePassword',
|
|
|
|
component: () => import('@/views/login/retrievePassword.vue'),
|
|
|
|
name: 'retrievePassword',
|
|
|
|
hidden: true,
|
|
|
|
meta: {title: '找回密码', icon: 'eye', noCache: true},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/noticeShow',
|
|
|
|
name:'noticeShow',
|
|
|
|
component: () =>
|
|
|
|
import ('../views/notice/noticeShow.vue'),
|
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
path: '/search',
|
|
|
|
name:'search',
|
|
|
|
component: () =>
|
|
|
|
import ('../views/search/index.vue'),
|
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
path: '/404',
|
|
|
|
component: () =>
|
|
|
|
import ('../views/404.vue'),
|
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
{ path: '*', redirect: '/404', hidden: true }
|
|
|
|
]
|
|
|
|
|
|
|
|
const router = new VueRouter({
|
|
|
|
routes
|
|
|
|
})
|
|
|
|
|
|
|
|
export default router
|