Commit 0bea5492 authored by caimeng's avatar caimeng

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

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