diff --git a/src/views/money/user/index.vue b/src/views/money/user/index.vue index 00dd18e..874a1a7 100644 --- a/src/views/money/user/index.vue +++ b/src/views/money/user/index.vue @@ -112,7 +112,7 @@ export default { async navigateToRecharge() { try { const response = await checkRealNameAuth(this.authForm); - if (response.data && response.data.isAuthenticated) { + if (response.data && response.data.desc) { // 如果已实名认证,直接跳转页面 this.$router.push('/money/zfb'); } else { @@ -130,7 +130,7 @@ export default { try { const {name, idCard} = this.authForm; const authResponse = await checkRealNameAuth(this.authForm); - if (authResponse.code == 200) { + if (authResponse.data && authResponse.data.desc) { this.$message.success('实名认证成功'); this.dialogVisible = false; this.$router.push('/money/zfb');