hookehuyr

✨ feat: 没有设置儿童调整调整,实名认证不能修改信息

...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: hookehuyr hookehuyr@gmail.com 2 * @Author: hookehuyr hookehuyr@gmail.com
3 * @Date: 2022-05-21 09:35:14 3 * @Date: 2022-05-21 09:35:14
4 * @LastEditors: hookehuyr hookehuyr@gmail.com 4 * @LastEditors: hookehuyr hookehuyr@gmail.com
5 - * @LastEditTime: 2022-06-09 14:55:26 5 + * @LastEditTime: 2022-06-09 15:23:36
6 * @FilePath: /tswj/src/views/client/bookDetail.vue 6 * @FilePath: /tswj/src/views/client/bookDetail.vue
7 * @Description: 7 * @Description:
8 --> 8 -->
...@@ -205,9 +205,21 @@ const onClose = () => { // 关闭提示框回调 ...@@ -205,9 +205,21 @@ const onClose = () => { // 关闭提示框回调
205 } 205 }
206 // 跳转个人中心 206 // 跳转个人中心
207 const onSubmit = () => { 207 const onSubmit = () => {
208 - $router.push({ 208 + if (userInfo.value.can_upload === -1) { // 未实名认证
209 - path: '/me/index' 209 + $router.push({
210 - }); 210 + path: '/me/verifyUser'
211 + });
212 + } else if (userInfo.value.can_upload === -2) { // 没有默认儿童
213 + $router.push({
214 + path: '/me/handleUser',
215 + query: {
216 + perf_id: '',
217 + kg_id: '',
218 + kg_name: '',
219 + type: 'ADD'
220 + }
221 + });
222 + }
211 } 223 }
212 224
213 const noticeText = ref('') 225 const noticeText = ref('')
...@@ -418,7 +430,7 @@ const goToDetail = (v) => { // 跳转作品详情页 ...@@ -418,7 +430,7 @@ const goToDetail = (v) => { // 跳转作品详情页
418 align-items: center; 430 align-items: center;
419 box-sizing: content-box; 431 box-sizing: content-box;
420 background-color: white; 432 background-color: white;
421 - padding: 1rem; 433 + padding: 0.7rem;
422 434
423 .text { 435 .text {
424 display: flex; 436 display: flex;
......
...@@ -157,7 +157,6 @@ const onClose = () => { // 关闭提示框回调 ...@@ -157,7 +157,6 @@ const onClose = () => { // 关闭提示框回调
157 157
158 // 新增/编辑儿童信息 158 // 新增/编辑儿童信息
159 const handleUser = (type) => { 159 const handleUser = (type) => {
160 - if (!actions.value.length) return; // 实名认证不允许修改,儿童信息可以修改
161 if (type === 'ADD') { 160 if (type === 'ADD') {
162 $router.push({ 161 $router.push({
163 path: '/me/handleUser', 162 path: '/me/handleUser',
...@@ -168,7 +167,8 @@ const handleUser = (type) => { ...@@ -168,7 +167,8 @@ const handleUser = (type) => {
168 type 167 type
169 } 168 }
170 }) 169 })
171 - } else { 170 + } else if (type === 'EDIT') {
171 + if (!userInfo.value.perf_id) return; // 实名认证不允许修改,儿童信息可以修改
172 $router.push({ 172 $router.push({
173 path: '/me/handleUser', 173 path: '/me/handleUser',
174 query: { 174 query: {
......