hookehuyr

路由模块分类重构

1 -export default [{ 1 +export default [];
2 - path: '/',
3 - name: '首页',
4 - component: () => import('./views/client/index.vue'),
5 - meta: {
6 - title: '童声无界',
7 - name: 'index'
8 - },
9 - children: []
10 -}, {
11 - path: '/client/index',
12 - name: '客户端入口页',
13 - component: () => import('./views/client/index.vue'),
14 - meta: {
15 - title: '童声无界',
16 - name: 'index'
17 - },
18 - children: []
19 -}, {
20 - path: '/client/chooseSchool',
21 - name: '客户端选择幼儿园页',
22 - component: () => import('./views/client/chooseSchool.vue'),
23 - meta: {
24 - title: '选择幼儿园'
25 - },
26 - children: []
27 -}, {
28 - path: '/client/chooseBook',
29 - name: '客户端选择爱心书籍',
30 - component: () => import('./views/client/chooseBook.vue'),
31 - meta: {
32 - title: '爱心书籍'
33 - },
34 - children: []
35 -}, {
36 - path: '/client/bookDetail',
37 - name: '客户端选择书籍下视频作品',
38 - component: () => import('./views/client/bookDetail.vue'),
39 - meta: {
40 - title: '书籍',
41 - keepAlive: true,
42 - name: 'bookDetail'
43 - },
44 - children: []
45 -}, {
46 - path: '/client/videoDetail',
47 - name: '视频作品详情',
48 - component: () => import('./views/client/videoDetail.vue'),
49 - meta: {
50 - title: '作品'
51 - },
52 - children: [
53 - {
54 - path: 'comment',
55 - name: '评论详情',
56 - component: () => import('./views/client/videoDetailComment.vue')
57 - }
58 - ]
59 -}, {
60 - path: '/client/privacyNotice',
61 - name: '客户端上传作品前须知',
62 - component: () => import('./views/client/privacyNotice.vue'),
63 - meta: {
64 - title: '活动说明'
65 - },
66 - children: []
67 -}, {
68 - path: '/client/verifyPage',
69 - name: '客户端上传作品/留言前实名认证',
70 - component: () => import('./views/client/verifyPage.vue'),
71 - meta: {
72 - title: '实名认证'
73 - },
74 - children: []
75 -}, {
76 - path: '/client/finishUpload',
77 - name: '客户端上传作品成功跳转页面',
78 - component: () => import('./views/client/finishUpload.vue'),
79 - meta: {
80 - title: '作品上传'
81 - },
82 - children: []
83 -}, {
84 - path: '/client/wechatpayCallback',
85 - name: '微信付款成功后跳转页面',
86 - component: () => import('./views/client/wechatpayCallback.vue'),
87 - meta: {
88 - title: '微信支付'
89 - },
90 - children: []
91 -}, {
92 - path: '/client/donateCertificate',
93 - name: '捐书成功后提示证书页面',
94 - component: () => import('./views/client/donateCertificate.vue'),
95 - meta: {
96 - title: '捐赠证书'
97 - },
98 - children: []
99 -}, {
100 - path: '/client/personIndex',
101 - name: '个人首页',
102 - component: () => import('./views/client/personIndex.vue'),
103 - meta: {
104 - title: '个人首页',
105 - keepAlive: true,
106 - name: 'personIndex'
107 - },
108 - children: []
109 -}, {
110 - path: '/me/index',
111 - name: '我的信息',
112 - component: () => import('./views/me/index.vue'),
113 - meta: {
114 - title: '我的信息'
115 - },
116 - children: []
117 -}, {
118 - path: '/me/verifyUser',
119 - name: '实名认证',
120 - component: () => import('./views/me/verifyUser.vue'),
121 - meta: {
122 - title: '实名认证'
123 - },
124 - children: []
125 -}, {
126 - path: '/me/handleUser',
127 - name: '新增/编辑儿童',
128 - component: () => import('./views/me/handleUser.vue'),
129 - meta: {
130 - title: '儿童信息'
131 - },
132 - children: []
133 -}, {
134 - path: '/me/donateList',
135 - name: '我的捐赠',
136 - component: () => import('./views/me/donateList.vue'),
137 - meta: {
138 - title: '我的捐赠'
139 - },
140 - children: []
141 -}, {
142 - path: '/me/videoList',
143 - name: '我的作品',
144 - component: () => import('./views/me/videoList.vue'),
145 - meta: {
146 - title: '我的作品'
147 - },
148 - children: []
149 -}, {
150 - path: '/me/subscribe',
151 - name: '我的订阅',
152 - component: () => import('./views/me/subscribe.vue'),
153 - meta: {
154 - title: '我的订阅'
155 - },
156 - children: []
157 -}, {
158 - path: '/me/collection',
159 - name: '我的收藏',
160 - component: () => import('./views/me/collection.vue'),
161 - meta: {
162 - title: '我的收藏'
163 - },
164 - children: []
165 -}, {
166 - path: '/me/like',
167 - name: '我的点赞',
168 - component: () => import('./views/me/like.vue'),
169 - meta: {
170 - title: '我的点赞'
171 - },
172 - children: []
173 -}, {
174 - path: '/me/message',
175 - name: '我的留言',
176 - component: () => import('./views/me/message.vue'),
177 - meta: {
178 - title: '我的留言',
179 - keepAlive: true,
180 - name: 'message'
181 - },
182 - children: []
183 -}, {
184 - path: '/me/callMe',
185 - name: '@我的',
186 - component: () => import('./views/me/callMe.vue'),
187 - meta: {
188 - title: '@我的',
189 - keepAlive: true,
190 - name: 'callMe'
191 - },
192 - children: []
193 -}, {
194 - path: '/me/followList',
195 - name: '关注',
196 - component: () => import('./views/me/followList.vue'),
197 - meta: {
198 - title: '关注'
199 - },
200 - children: []
201 -}, {
202 - path: '/me/unwatchList',
203 - name: '未看作品',
204 - component: () => import('./views/me/unwatchList.vue'),
205 - meta: {
206 - title: '未看作品',
207 - keepAlive: true,
208 - name: 'unwatchList'
209 - },
210 - children: []
211 -}, {
212 - path: '/auth',
213 - name: '授权跳转页',
214 - component: () => import('./views/auth.vue'),
215 - meta: {
216 - title: '微信授权'
217 - },
218 - children: []
219 -}, {
220 - path: '/business/auditVideo',
221 - name: '视频审核',
222 - component: () => import('./views/business/auditVideo.vue'),
223 - meta: {
224 - title: '视频审核'
225 - },
226 - children: []
227 -}, {
228 - path: '/business/index',
229 - name: '幼儿园所有上传视频',
230 - component: () => import('./views/business/index.vue'),
231 - meta: {
232 - title: '幼儿园'
233 - },
234 - children: []
235 -}, {
236 - path: '/business/login',
237 - name: '登录',
238 - component: () => import('./views/business/login.vue'),
239 - meta: {
240 - title: '登录'
241 - },
242 - children: []
243 -}, {
244 - path: '/business/me',
245 - name: '我的',
246 - component: () => import('./views/business/me.vue'),
247 - meta: {
248 - title: '我的'
249 - },
250 - children: []
251 -}, {
252 - path: '/business/myVideo',
253 - name: '我的视频',
254 - component: () => import('./views/business/myVideo.vue'),
255 - meta: {
256 - title: '我的视频'
257 - },
258 - children: []
259 -}];
......
1 +const index = [{
2 + path: '/auth',
3 + name: '授权跳转页',
4 + component: () => import('@/views/auth.vue'),
5 + meta: {
6 + title: '微信授权'
7 + },
8 + children: []
9 +}]
10 +
11 +export default index;
1 const index = [{ 1 const index = [{
2 - path: '/router/test1', 2 + path: '/business/auditVideo',
3 - name: 'test1', 3 + name: '视频审核',
4 - component: () => import('@/views/about.vue'), 4 + component: () => import('@/views/business/auditVideo.vue'),
5 - redirect: '',
6 meta: { 5 meta: {
7 - icon: '', 6 + title: '视频审核'
8 - title: '',
9 }, 7 },
10 - children: [], 8 + children: []
11 }, { 9 }, {
12 - path: '/router/test2', 10 + path: '/business/index',
13 - name: 'test2', 11 + name: '幼儿园所有上传视频',
14 - component: () => import('@/views/about.vue'), 12 + component: () => import('@/views/business/index.vue'),
15 - redirect: '',
16 meta: { 13 meta: {
17 - icon: '', 14 + title: '幼儿园'
18 - title: '',
19 }, 15 },
20 - children: [], 16 + children: []
17 +}, {
18 + path: '/business/login',
19 + name: '登录',
20 + component: () => import('@/views/business/login.vue'),
21 + meta: {
22 + title: '登录'
23 + },
24 + children: []
25 +}, {
26 + path: '/business/me',
27 + name: '我的',
28 + component: () => import('@/views/business/me.vue'),
29 + meta: {
30 + title: '我的'
31 + },
32 + children: []
33 +}, {
34 + path: '/business/myVideo',
35 + name: '我的视频',
36 + component: () => import('@/views/business/myVideo.vue'),
37 + meta: {
38 + title: '我的视频'
39 + },
40 + children: []
21 }]; 41 }];
22 42
23 export default index; 43 export default index;
......
1 +const test = [{
2 + path: '/router/test1',
3 + name: 'test1',
4 + component: () => import('@/views/about.vue'),
5 + redirect: '',
6 + meta: {
7 + icon: '',
8 + title: '',
9 + },
10 + children: [],
11 +}, {
12 + path: '/router/test2',
13 + name: 'test2',
14 + component: () => import('@/views/about.vue'),
15 + redirect: '',
16 + meta: {
17 + icon: '',
18 + title: '',
19 + },
20 + children: [],
21 +}];
22 +
23 +export default test;
1 +const action = [{
2 + path: '/client/privacyNotice',
3 + name: '客户端上传作品前须知',
4 + component: () => import('@/views/client/privacyNotice.vue'),
5 + meta: {
6 + title: '活动说明'
7 + },
8 + children: []
9 +}, {
10 + path: '/client/verifyPage',
11 + name: '客户端上传作品/留言前实名认证',
12 + component: () => import('@/views/client/verifyPage.vue'),
13 + meta: {
14 + title: '实名认证'
15 + },
16 + children: []
17 +}, {
18 + path: '/client/finishUpload',
19 + name: '客户端上传作品成功跳转页面',
20 + component: () => import('@/views/client/finishUpload.vue'),
21 + meta: {
22 + title: '作品上传'
23 + },
24 + children: []
25 +}, {
26 + path: '/client/wechatpayCallback',
27 + name: '微信付款成功后跳转页面',
28 + component: () => import('@/views/client/wechatpayCallback.vue'),
29 + meta: {
30 + title: '微信支付'
31 + },
32 + children: []
33 +}, {
34 + path: '/client/donateCertificate',
35 + name: '捐书成功后提示证书页面',
36 + component: () => import('@/views/client/donateCertificate.vue'),
37 + meta: {
38 + title: '捐赠证书'
39 + },
40 + children: []
41 +}]
42 +
43 +export default action;
1 +const index = [{
2 + path: '/',
3 + name: '首页',
4 + component: () => import('@/views/client/index.vue'),
5 + meta: {
6 + title: '童声无界',
7 + name: 'index'
8 + },
9 + children: []
10 +}, {
11 + path: '/client/index',
12 + name: '客户端入口页',
13 + component: () => import('@/views/client/index.vue'),
14 + meta: {
15 + title: '童声无界',
16 + name: 'index'
17 + },
18 + children: []
19 +}, {
20 + path: '/client/chooseSchool',
21 + name: '客户端选择幼儿园页',
22 + component: () => import('@/views/client/chooseSchool.vue'),
23 + meta: {
24 + title: '选择幼儿园'
25 + },
26 + children: []
27 +}, {
28 + path: '/client/chooseBook',
29 + name: '客户端选择爱心书籍',
30 + component: () => import('@/views/client/chooseBook.vue'),
31 + meta: {
32 + title: '爱心书籍'
33 + },
34 + children: []
35 +}, {
36 + path: '/client/bookDetail',
37 + name: '客户端选择书籍下视频作品',
38 + component: () => import('@/views/client/bookDetail.vue'),
39 + meta: {
40 + title: '书籍',
41 + keepAlive: true,
42 + name: 'bookDetail'
43 + },
44 + children: []
45 +}, {
46 + path: '/client/videoDetail',
47 + name: '视频作品详情',
48 + component: () => import('@/views/client/videoDetail.vue'),
49 + meta: {
50 + title: '作品'
51 + },
52 + children: [
53 + {
54 + path: 'comment',
55 + name: '评论详情',
56 + component: () => import('@/views/client/videoDetailComment.vue')
57 + }
58 + ]
59 +}, {
60 + path: '/client/personIndex',
61 + name: '个人首页',
62 + component: () => import('@/views/client/personIndex.vue'),
63 + meta: {
64 + title: '个人首页',
65 + keepAlive: true,
66 + name: 'personIndex'
67 + },
68 + children: []
69 +}]
70 +
71 +export default index;
1 +const action = [{
2 + path: '/me/index',
3 + name: '我的信息',
4 + component: () => import('@/views/me/index.vue'),
5 + meta: {
6 + title: '我的信息'
7 + },
8 + children: []
9 +}, {
10 + path: '/me/verifyUser',
11 + name: '实名认证',
12 + component: () => import('@/views/me/verifyUser.vue'),
13 + meta: {
14 + title: '实名认证'
15 + },
16 + children: []
17 +}, {
18 + path: '/me/handleUser',
19 + name: '新增/编辑儿童',
20 + component: () => import('@/views/me/handleUser.vue'),
21 + meta: {
22 + title: '儿童信息'
23 + },
24 + children: []
25 +}]
26 +
27 +export default action;
1 +const index = [{
2 + path: '/me/donateList',
3 + name: '我的捐赠',
4 + component: () => import('@/views/me/donateList.vue'),
5 + meta: {
6 + title: '我的捐赠'
7 + },
8 + children: []
9 +}, {
10 + path: '/me/videoList',
11 + name: '我的作品',
12 + component: () => import('@/views/me/videoList.vue'),
13 + meta: {
14 + title: '我的作品'
15 + },
16 + children: []
17 +}, {
18 + path: '/me/subscribe',
19 + name: '我的订阅',
20 + component: () => import('@/views/me/subscribe.vue'),
21 + meta: {
22 + title: '我的订阅'
23 + },
24 + children: []
25 +}, {
26 + path: '/me/collection',
27 + name: '我的收藏',
28 + component: () => import('@/views/me/collection.vue'),
29 + meta: {
30 + title: '我的收藏'
31 + },
32 + children: []
33 +}, {
34 + path: '/me/like',
35 + name: '我的点赞',
36 + component: () => import('@/views/me/like.vue'),
37 + meta: {
38 + title: '我的点赞'
39 + },
40 + children: []
41 +}, {
42 + path: '/me/message',
43 + name: '我的留言',
44 + component: () => import('@/views/me/message.vue'),
45 + meta: {
46 + title: '我的留言',
47 + keepAlive: true,
48 + name: 'message'
49 + },
50 + children: []
51 +}, {
52 + path: '/me/callMe',
53 + name: '@我的',
54 + component: () => import('@/views/me/callMe.vue'),
55 + meta: {
56 + title: '@我的',
57 + keepAlive: true,
58 + name: 'callMe'
59 + },
60 + children: []
61 +}, {
62 + path: '/me/followList',
63 + name: '关注',
64 + component: () => import('@/views/me/followList.vue'),
65 + meta: {
66 + title: '关注'
67 + },
68 + children: []
69 +}, {
70 + path: '/me/unwatchList',
71 + name: '未看作品',
72 + component: () => import('@/views/me/unwatchList.vue'),
73 + meta: {
74 + title: '未看作品',
75 + keepAlive: true,
76 + name: 'unwatchList'
77 + },
78 + children: []
79 +}]
80 +
81 +export default index;
...@@ -8,6 +8,16 @@ const index = [{ ...@@ -8,6 +8,16 @@ const index = [{
8 title: 'DOM转image', 8 title: 'DOM转image',
9 }, 9 },
10 children: [], 10 children: [],
11 +}, {
12 + path: '/test-slot',
13 + name: 'test-slot',
14 + component: () => import('@/views/test/test-slot.vue'),
15 + redirect: '',
16 + meta: {
17 + icon: '',
18 + title: '测试slot插槽',
19 + },
20 + children: [],
11 }]; 21 }];
12 22
13 export default index; 23 export default index;
......