From 98e236f1a01c7baf4306d358552578aa000f272e Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 20 Apr 2023 16:59:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B1=85=E6=B0=91=E8=AE=A4=E8=AF=81=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=BD=91=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/project/fengdu/AppMine/userInfo.vue | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) 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 + } + }) + } } } }