user.js
5.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
const userRouter = [
{
path: '/user/login/phone',
name: 'LoginPhone',
meta: {
title: '登录',
isLogin: false
},
component: () => import(/* webpackChunkName: "loginPhone" */ '@/views/user/login/loginPhone.vue') // 手机号登录
},
{
path: '/user/login/username',
name: 'LoginUserName',
meta: {
title: '登录',
isLogin: false
},
component: () => import(/* webpackChunkName: "login" */ '@/views/user/login/loginUserName.vue') // 账号密码登录
},
{
path: '/user/register',
name: 'Register',
meta: {
title: '注册',
isLogin: false
},
component: () => import(/* webpackChunkName: "register" */ '@/views/user/login/register.vue') // 注册
},
{
path: '/user/findPassword',
name: 'FindPassword',
meta: {
title: '',
isLogin: false
},
component: () => import(/* webpackChunkName: "findPassword" */ '@/views/user/login/findPassword.vue') // 手机号找回密码 邮箱找回密码
},
{
path: '/user/setPassword',
name: 'SetPassword',
meta: {
title: '设置密码',
isLogin: false
},
component: () => import(/* webpackChunkName: "center" */ '@/views/user/login/setPassword.vue') // 设置密码
},
{
path: '/user/resetPassword',
name: 'ResetPassword',
meta: {
title: '重置密码',
isLogin: false
},
component: () => import(/* webpackChunkName: "center" */ '@/views/user/login/resetPassword.vue') // 重置密码
},
{
path: '/user/sendVerification',
name: 'SendVerification',
meta: {
title: '',
isLogin: true
},
component: () => import(/* webpackChunkName: "center" */ '@/views/user/setting/sendVerification.vue') // 重置密码或者解除绑定 输入验证码页面
},
{
path: '/user/center',
name: 'Center',
meta: {
menu: true,
title: '个人中心',
isLogin: false
},
component: () => import(/* webpackChunkName: "center" */ '@/views/user/center.vue') // 个人中心
},
{
path: '/user/message',
name: 'Message',
meta: {
title: '我的消息',
isLogin: true
},
component: () => import(/* webpackChunkName: "message" */ '@/views/user/message/list.vue') // 消息
},
{
path: '/user/collect',
name: 'Collect',
meta: {
title: '我的收藏',
isLogin: true
},
component: () => import(/* webpackChunkName: "collect" */ '@/views/user/collect/index.vue') // 我的收藏
},
{
path: '/user/study',
name: 'Study',
meta: {
title: '我的学习',
isLogin: true
},
component: () => import(/* webpackChunkName: "study" */ '@/views/user/study/index.vue') // 我到学习
},
{
path: '/user/question',
name: 'Question',
meta: {
title: '常见问题',
isLogin: false
},
component: () => import(/* webpackChunkName: "question" */ '@/views/user/question/list.vue') // 常见问题列表
},
{
path: '/user/questionDetail',
name: 'QuestionDetail',
meta: {
title: '常见问题',
isLogin: false
},
component: () => import(/* webpackChunkName: "questionDetail" */ '@/views/user/question/detail.vue') // 常见问题详情
},
{
path: '/user/feedback',
name: 'FeedBack',
meta: {
title: '意见反馈',
isLogin: true
},
component: () => import(/* webpackChunkName: "feedback" */ '@/views/user/feedback/index.vue') // 意见反馈
},
{
path: '/user/about',
name: 'About',
meta: {
title: '关于协会',
isLogin: false
},
component: () => import(/* webpackChunkName: "about" */ '@/views/user/about/index.vue') // 关于协会
},
{
path: '/user/setting',
name: 'Setting',
meta: {
title: '设置',
isLogin: true
},
component: () => import(/* webpackChunkName: "setting" */ '@/views/user/setting/index.vue') // 设置
},
{
path: '/user/privacy',
name: 'Privacy',
meta: {
title: '隐私协议',
isLogin: false
},
component: () => import(/* webpackChunkName: "privacy" */ '@/views/user/privacy/index.vue') // 隐私协议
},
{
path: '/user/service',
name: 'Service',
meta: {
title: '服务协议',
isLogin: false
},
component: () => import(/* webpackChunkName: "service" */ '@/views/user/service/index.vue') // 服务协议
},
{
path: '/user/person',
name: 'Person',
meta: {
title: '个人信息',
isLogin: true
},
component: () => import(/* webpackChunkName: "person" */ '@/views/user/person/index.vue') // 个人信息
},
{
path: '/user/commonEdit',
name: 'CommonEdit',
meta: {
title: '',
isLogin: true
},
component: () => import(/* webpackChunkName: "commonEdit" */ '@/views/user/person/commonEdit.vue') // 个人信息
},
{
path: '/user/nationality',
name: 'Nationality',
meta: {
title: '',
isLogin: true
},
component: () => import(/* webpackChunkName: "nationality" */ '@/views/user/nationality/index.vue') // 设置国籍
},
]
export default userRouter