BUG 30545

This commit is contained in:
aixianling
2022-07-15 17:04:15 +08:00
parent 9b09468c0f
commit 1d5ed72119

View File

@@ -38,17 +38,16 @@ export default {
appName: "实名身份认证", appName: "实名身份认证",
data() { data() {
return { return {
status: '',
info: {} info: {}
} }
}, },
computed: { computed: {
...mapState(['user']), ...mapState(['user']),
isSuccess() { isSuccess() {
return this.status == 2 return this.user.status == 2
}, },
isFail() { isFail() {
return this.status?.toString() == "0" return this.user.status == "0"
}, },
authFail() { authFail() {
return this.user.status == -1 return this.user.status == -1
@@ -57,10 +56,7 @@ export default {
return this.authFail ? "审核未通过" : "正在审核中" return this.authFail ? "审核未通过" : "正在审核中"
} }
}, },
onLoad(options) { onLoad() {
if (options.status) {
this.status = options.status
}
if (!this.isSuccess && !this.isFail) this.getAuthResult() if (!this.isSuccess && !this.isFail) this.getAuthResult()
}, },
methods: { methods: {