matchCard() {
// 姓名 PeopleName
// 证件号码 PeopleIDCode
// 民族 PeopleNation
// 住址 PeopleAddress
this.$jsonp('http://127.0.0.1:8094/IDCard?', { callbackQuery: 'myFunction', callbackName: 'myFunction' }
).then(data => {
console.log(data)
if (data.ReturnMessage === '端口打开失败或其它未知错误') {
alert('端口打开失败或其它未知错误')
} else {
this.form.regApplyName = data.PeopleName
this.form.regApplyCardNum = data.PeopleIDCode
const code = codeNational(data.PeopleNation)
this.form.regApplyNational = code
this.form.regApplyAddr = data.PeopleAddress
if (this.form.regApplyType === '1' || this.form.regApplyType === 1) {
this.form.regPassiveQueryName = data.PeopleName
this.form.regPassiveQueryCard = data.PeopleIDCode
}
}
}).catch(err => {
console.log(err)
})
},
华视电子读卡器100N,读取二代身份证信息
最新推荐文章于 2024-07-30 01:01:22 发布