diff --git a/src/project/fengdu/AppMine/userInfo.vue b/src/project/fengdu/AppMine/userInfo.vue index 0a6c566..a33350f 100644 --- a/src/project/fengdu/AppMine/userInfo.vue +++ b/src/project/fengdu/AppMine/userInfo.vue @@ -38,7 +38,7 @@

{{ user.realName || '' }}

- +

身份证号

@@ -207,12 +207,18 @@ export default { this.userGirdId = v.id }, idNumberInput() { - if(this.userIdNumber.length == 18) { - // this.$instance.post(`/app/appwechatuserqujing/idNumberAttestation`).then(res=> { - // if(res?.code==0) { - - // } - // }) + if(this.userIdNumber.length == 18 && this.userRealName) { + if(!this.userGirdId) { + this.$instance.post(`/app/appresidentapplet/queryDetailByIdNumberAndName`,{ + name: this.userRealName, + idNumber: this.userIdNumber + }).then(res=> { + if(res.data && res.data.id) { + this.userGirdId = res.data.id + this.userGirdName = res.data.girdName + } + }) + } } } }