居民认证查询网格

This commit is contained in:
liuye
2023-04-20 16:59:18 +08:00
parent d773a26630
commit 98e236f1a0

View File

@@ -38,7 +38,7 @@
<div class="item-right" v-if="!editRealName">
<p class="name">{{ user.realName || '' }}</p>
</div>
<input class="item-right" v-else type="text" v-model="userRealName">
<input class="item-right" v-else type="text" v-model="userRealName" @input="idNumberInput">
</div>
<div class="item solid">
<p>身份证号</p>
@@ -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
}
})
}
}
}
}