hookehuyr

路由模块分类重构

export default [{
path: '/',
name: '首页',
component: () => import('./views/client/index.vue'),
meta: {
title: '童声无界',
name: 'index'
},
children: []
}, {
path: '/client/index',
name: '客户端入口页',
component: () => import('./views/client/index.vue'),
meta: {
title: '童声无界',
name: 'index'
},
children: []
}, {
path: '/client/chooseSchool',
name: '客户端选择幼儿园页',
component: () => import('./views/client/chooseSchool.vue'),
meta: {
title: '选择幼儿园'
},
children: []
}, {
path: '/client/chooseBook',
name: '客户端选择爱心书籍',
component: () => import('./views/client/chooseBook.vue'),
meta: {
title: '爱心书籍'
},
children: []
}, {
path: '/client/bookDetail',
name: '客户端选择书籍下视频作品',
component: () => import('./views/client/bookDetail.vue'),
meta: {
title: '书籍',
keepAlive: true,
name: 'bookDetail'
},
children: []
}, {
path: '/client/videoDetail',
name: '视频作品详情',
component: () => import('./views/client/videoDetail.vue'),
meta: {
title: '作品'
},
children: [
{
path: 'comment',
name: '评论详情',
component: () => import('./views/client/videoDetailComment.vue')
}
]
}, {
path: '/client/privacyNotice',
name: '客户端上传作品前须知',
component: () => import('./views/client/privacyNotice.vue'),
meta: {
title: '活动说明'
},
children: []
}, {
path: '/client/verifyPage',
name: '客户端上传作品/留言前实名认证',
component: () => import('./views/client/verifyPage.vue'),
meta: {
title: '实名认证'
},
children: []
}, {
path: '/client/finishUpload',
name: '客户端上传作品成功跳转页面',
component: () => import('./views/client/finishUpload.vue'),
meta: {
title: '作品上传'
},
children: []
}, {
path: '/client/wechatpayCallback',
name: '微信付款成功后跳转页面',
component: () => import('./views/client/wechatpayCallback.vue'),
meta: {
title: '微信支付'
},
children: []
}, {
path: '/client/donateCertificate',
name: '捐书成功后提示证书页面',
component: () => import('./views/client/donateCertificate.vue'),
meta: {
title: '捐赠证书'
},
children: []
}, {
path: '/client/personIndex',
name: '个人首页',
component: () => import('./views/client/personIndex.vue'),
meta: {
title: '个人首页',
keepAlive: true,
name: 'personIndex'
},
children: []
}, {
path: '/me/index',
name: '我的信息',
component: () => import('./views/me/index.vue'),
meta: {
title: '我的信息'
},
children: []
}, {
path: '/me/verifyUser',
name: '实名认证',
component: () => import('./views/me/verifyUser.vue'),
meta: {
title: '实名认证'
},
children: []
}, {
path: '/me/handleUser',
name: '新增/编辑儿童',
component: () => import('./views/me/handleUser.vue'),
meta: {
title: '儿童信息'
},
children: []
}, {
path: '/me/donateList',
name: '我的捐赠',
component: () => import('./views/me/donateList.vue'),
meta: {
title: '我的捐赠'
},
children: []
}, {
path: '/me/videoList',
name: '我的作品',
component: () => import('./views/me/videoList.vue'),
meta: {
title: '我的作品'
},
children: []
}, {
path: '/me/subscribe',
name: '我的订阅',
component: () => import('./views/me/subscribe.vue'),
meta: {
title: '我的订阅'
},
children: []
}, {
path: '/me/collection',
name: '我的收藏',
component: () => import('./views/me/collection.vue'),
meta: {
title: '我的收藏'
},
children: []
}, {
path: '/me/like',
name: '我的点赞',
component: () => import('./views/me/like.vue'),
meta: {
title: '我的点赞'
},
children: []
}, {
path: '/me/message',
name: '我的留言',
component: () => import('./views/me/message.vue'),
meta: {
title: '我的留言',
keepAlive: true,
name: 'message'
},
children: []
}, {
path: '/me/callMe',
name: '@我的',
component: () => import('./views/me/callMe.vue'),
meta: {
title: '@我的',
keepAlive: true,
name: 'callMe'
},
children: []
}, {
path: '/me/followList',
name: '关注',
component: () => import('./views/me/followList.vue'),
meta: {
title: '关注'
},
children: []
}, {
path: '/me/unwatchList',
name: '未看作品',
component: () => import('./views/me/unwatchList.vue'),
meta: {
title: '未看作品',
keepAlive: true,
name: 'unwatchList'
},
children: []
}, {
path: '/auth',
name: '授权跳转页',
component: () => import('./views/auth.vue'),
meta: {
title: '微信授权'
},
children: []
}, {
path: '/business/auditVideo',
name: '视频审核',
component: () => import('./views/business/auditVideo.vue'),
meta: {
title: '视频审核'
},
children: []
}, {
path: '/business/index',
name: '幼儿园所有上传视频',
component: () => import('./views/business/index.vue'),
meta: {
title: '幼儿园'
},
children: []
}, {
path: '/business/login',
name: '登录',
component: () => import('./views/business/login.vue'),
meta: {
title: '登录'
},
children: []
}, {
path: '/business/me',
name: '我的',
component: () => import('./views/business/me.vue'),
meta: {
title: '我的'
},
children: []
}, {
path: '/business/myVideo',
name: '我的视频',
component: () => import('./views/business/myVideo.vue'),
meta: {
title: '我的视频'
},
children: []
}];
export default [];
......
const index = [{
path: '/auth',
name: '授权跳转页',
component: () => import('@/views/auth.vue'),
meta: {
title: '微信授权'
},
children: []
}]
export default index;
const index = [{
path: '/router/test1',
name: 'test1',
component: () => import('@/views/about.vue'),
redirect: '',
path: '/business/auditVideo',
name: '视频审核',
component: () => import('@/views/business/auditVideo.vue'),
meta: {
icon: '',
title: '',
title: '视频审核'
},
children: [],
children: []
}, {
path: '/router/test2',
name: 'test2',
component: () => import('@/views/about.vue'),
redirect: '',
path: '/business/index',
name: '幼儿园所有上传视频',
component: () => import('@/views/business/index.vue'),
meta: {
icon: '',
title: '',
title: '幼儿园'
},
children: [],
children: []
}, {
path: '/business/login',
name: '登录',
component: () => import('@/views/business/login.vue'),
meta: {
title: '登录'
},
children: []
}, {
path: '/business/me',
name: '我的',
component: () => import('@/views/business/me.vue'),
meta: {
title: '我的'
},
children: []
}, {
path: '/business/myVideo',
name: '我的视频',
component: () => import('@/views/business/myVideo.vue'),
meta: {
title: '我的视频'
},
children: []
}];
export default index;
......
const test = [{
path: '/router/test1',
name: 'test1',
component: () => import('@/views/about.vue'),
redirect: '',
meta: {
icon: '',
title: '',
},
children: [],
}, {
path: '/router/test2',
name: 'test2',
component: () => import('@/views/about.vue'),
redirect: '',
meta: {
icon: '',
title: '',
},
children: [],
}];
export default test;
const action = [{
path: '/client/privacyNotice',
name: '客户端上传作品前须知',
component: () => import('@/views/client/privacyNotice.vue'),
meta: {
title: '活动说明'
},
children: []
}, {
path: '/client/verifyPage',
name: '客户端上传作品/留言前实名认证',
component: () => import('@/views/client/verifyPage.vue'),
meta: {
title: '实名认证'
},
children: []
}, {
path: '/client/finishUpload',
name: '客户端上传作品成功跳转页面',
component: () => import('@/views/client/finishUpload.vue'),
meta: {
title: '作品上传'
},
children: []
}, {
path: '/client/wechatpayCallback',
name: '微信付款成功后跳转页面',
component: () => import('@/views/client/wechatpayCallback.vue'),
meta: {
title: '微信支付'
},
children: []
}, {
path: '/client/donateCertificate',
name: '捐书成功后提示证书页面',
component: () => import('@/views/client/donateCertificate.vue'),
meta: {
title: '捐赠证书'
},
children: []
}]
export default action;
const index = [{
path: '/',
name: '首页',
component: () => import('@/views/client/index.vue'),
meta: {
title: '童声无界',
name: 'index'
},
children: []
}, {
path: '/client/index',
name: '客户端入口页',
component: () => import('@/views/client/index.vue'),
meta: {
title: '童声无界',
name: 'index'
},
children: []
}, {
path: '/client/chooseSchool',
name: '客户端选择幼儿园页',
component: () => import('@/views/client/chooseSchool.vue'),
meta: {
title: '选择幼儿园'
},
children: []
}, {
path: '/client/chooseBook',
name: '客户端选择爱心书籍',
component: () => import('@/views/client/chooseBook.vue'),
meta: {
title: '爱心书籍'
},
children: []
}, {
path: '/client/bookDetail',
name: '客户端选择书籍下视频作品',
component: () => import('@/views/client/bookDetail.vue'),
meta: {
title: '书籍',
keepAlive: true,
name: 'bookDetail'
},
children: []
}, {
path: '/client/videoDetail',
name: '视频作品详情',
component: () => import('@/views/client/videoDetail.vue'),
meta: {
title: '作品'
},
children: [
{
path: 'comment',
name: '评论详情',
component: () => import('@/views/client/videoDetailComment.vue')
}
]
}, {
path: '/client/personIndex',
name: '个人首页',
component: () => import('@/views/client/personIndex.vue'),
meta: {
title: '个人首页',
keepAlive: true,
name: 'personIndex'
},
children: []
}]
export default index;
const action = [{
path: '/me/index',
name: '我的信息',
component: () => import('@/views/me/index.vue'),
meta: {
title: '我的信息'
},
children: []
}, {
path: '/me/verifyUser',
name: '实名认证',
component: () => import('@/views/me/verifyUser.vue'),
meta: {
title: '实名认证'
},
children: []
}, {
path: '/me/handleUser',
name: '新增/编辑儿童',
component: () => import('@/views/me/handleUser.vue'),
meta: {
title: '儿童信息'
},
children: []
}]
export default action;
const index = [{
path: '/me/donateList',
name: '我的捐赠',
component: () => import('@/views/me/donateList.vue'),
meta: {
title: '我的捐赠'
},
children: []
}, {
path: '/me/videoList',
name: '我的作品',
component: () => import('@/views/me/videoList.vue'),
meta: {
title: '我的作品'
},
children: []
}, {
path: '/me/subscribe',
name: '我的订阅',
component: () => import('@/views/me/subscribe.vue'),
meta: {
title: '我的订阅'
},
children: []
}, {
path: '/me/collection',
name: '我的收藏',
component: () => import('@/views/me/collection.vue'),
meta: {
title: '我的收藏'
},
children: []
}, {
path: '/me/like',
name: '我的点赞',
component: () => import('@/views/me/like.vue'),
meta: {
title: '我的点赞'
},
children: []
}, {
path: '/me/message',
name: '我的留言',
component: () => import('@/views/me/message.vue'),
meta: {
title: '我的留言',
keepAlive: true,
name: 'message'
},
children: []
}, {
path: '/me/callMe',
name: '@我的',
component: () => import('@/views/me/callMe.vue'),
meta: {
title: '@我的',
keepAlive: true,
name: 'callMe'
},
children: []
}, {
path: '/me/followList',
name: '关注',
component: () => import('@/views/me/followList.vue'),
meta: {
title: '关注'
},
children: []
}, {
path: '/me/unwatchList',
name: '未看作品',
component: () => import('@/views/me/unwatchList.vue'),
meta: {
title: '未看作品',
keepAlive: true,
name: 'unwatchList'
},
children: []
}]
export default index;
......@@ -8,6 +8,16 @@ const index = [{
title: 'DOM转image',
},
children: [],
}, {
path: '/test-slot',
name: 'test-slot',
component: () => import('@/views/test/test-slot.vue'),
redirect: '',
meta: {
icon: '',
title: '测试slot插槽',
},
children: [],
}];
export default index;
......