Commit c657f15f authored by linwenqing's avatar linwenqing

fix:我的信息是否认证 判断修改

parent b13c07c4
...@@ -136,6 +136,7 @@ export default { ...@@ -136,6 +136,7 @@ export default {
}) })
.then((res) => { .then((res) => {
this.$u.toast('认证成功') this.$u.toast('认证成功')
this.student.isCertify = true
setTimeout(() => { setTimeout(() => {
this.$u.route({ this.$u.route({
type: 'back', type: 'back',
......
...@@ -95,7 +95,7 @@ export default { ...@@ -95,7 +95,7 @@ export default {
return this.student.workUnit || '' return this.student.workUnit || ''
}, },
getCertifyStatus() { getCertifyStatus() {
return !this.student.identityNumber ? '去认证' : '已认证' return !this.student.isCertify ? '去认证' : '已认证'
}, },
}, },
onLoad() { onLoad() {
...@@ -108,6 +108,7 @@ export default { ...@@ -108,6 +108,7 @@ export default {
} }
}) })
this.$u.api.getUserInfo().then((res) => { this.$u.api.getUserInfo().then((res) => {
res.isCertify = res.identityNumber ? true : false
this.student = res this.student = res
}) })
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment