Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
tswj
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2022-06-09 15:24:58 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a97c7736df1c03ea8616da1c469dc382760ec3f4
a97c7736
1 parent
4ed49148
✨ feat: 没有设置儿童调整调整,实名认证不能修改信息
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
7 deletions
src/views/client/bookDetail.vue
src/views/me/index.vue
src/views/client/bookDetail.vue
View file @
a97c773
...
...
@@ -2,7 +2,7 @@
* @Author: hookehuyr hookehuyr@gmail.com
* @Date: 2022-05-21 09:35:14
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2022-06-09 1
4:55:2
6
* @LastEditTime: 2022-06-09 1
5:23:3
6
* @FilePath: /tswj/src/views/client/bookDetail.vue
* @Description:
-->
...
...
@@ -205,9 +205,21 @@ const onClose = () => { // 关闭提示框回调
}
// 跳转个人中心
const onSubmit = () => {
$router.push({
path: '/me/index'
});
if (userInfo.value.can_upload === -1) { // 未实名认证
$router.push({
path: '/me/verifyUser'
});
} else if (userInfo.value.can_upload === -2) { // 没有默认儿童
$router.push({
path: '/me/handleUser',
query: {
perf_id: '',
kg_id: '',
kg_name: '',
type: 'ADD'
}
});
}
}
const noticeText = ref('')
...
...
@@ -418,7 +430,7 @@ const goToDetail = (v) => { // 跳转作品详情页
align-items: center;
box-sizing: content-box;
background-color: white;
padding:
1
rem;
padding:
0.7
rem;
.text {
display: flex;
...
...
src/views/me/index.vue
View file @
a97c773
...
...
@@ -157,7 +157,6 @@ const onClose = () => { // 关闭提示框回调
// 新增/编辑儿童信息
const handleUser = (type) => {
if (!actions.value.length) return; // 实名认证不允许修改,儿童信息可以修改
if (type === 'ADD') {
$router.push({
path: '/me/handleUser',
...
...
@@ -168,7 +167,8 @@ const handleUser = (type) => {
type
}
})
} else {
} else if (type === 'EDIT') {
if (!userInfo.value.perf_id) return; // 实名认证不允许修改,儿童信息可以修改
$router.push({
path: '/me/handleUser',
query: {
...
...
Please
register
or
login
to post a comment