Commit 0bea5492 authored by caimeng's avatar caimeng

活体认证,查询的时候把 数据回显

parent f7b2f059
......@@ -199,6 +199,8 @@ export default {
if (res.result.userId !== null) {
this.result = res.result;
this.form.userId = res.result.userId;
if(res.result.natureUrl) this.form.natureUrl = res.result.natureUrl;
} else {
this.result = null;
this.$message({
......@@ -215,16 +217,23 @@ export default {
// 认证通过
async handleAuditPass() {
const form = this.form;
const res = await API.CustomerLiveAuthPass({...form});
if (res.success) {
this.$message({
message: res.message,
type: 'success'
})
await this.fetchData()
} else {
if(form.natureUrl){
const res = await API.CustomerLiveAuthPass({...form});
if (res.success) {
this.$message({
message: res.message,
type: 'success'
})
await this.fetchData()
} else {
this.$message({
message: res.message,
type: 'error'
})
}
}else{
this.$message({
message: res.message,
message: '请先上传图片',
type: 'error'
})
}
......
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