mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 04:36:44 +08:00
外国人永久居住证人脸识别的时候传递证件类型
This commit is contained in:
@@ -803,6 +803,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
|
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
|
||||||
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo
|
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo
|
||||||
|
this.idcardData.idType = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType
|
||||||
this.recognition()
|
this.recognition()
|
||||||
}
|
}
|
||||||
// if (this.faceAuthCount.appnt < this.smsAuthNum) {
|
// if (this.faceAuthCount.appnt < this.smsAuthNum) {
|
||||||
@@ -860,6 +861,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
||||||
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo
|
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo
|
||||||
|
this.idcardData.idType = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idType
|
||||||
this.recognition()
|
this.recognition()
|
||||||
}
|
}
|
||||||
// if (this.faceAuthCount.insured < this.smsAuthNum) {
|
// if (this.faceAuthCount.insured < this.smsAuthNum) {
|
||||||
@@ -905,11 +907,16 @@ export default {
|
|||||||
}
|
}
|
||||||
if (this.faceAuthCount.appnt < this.smsAuthNum) {
|
if (this.faceAuthCount.appnt < this.smsAuthNum) {
|
||||||
// 人脸识别
|
// 人脸识别
|
||||||
|
let thisidType = ''
|
||||||
|
if(that.saleInsuredInfo.idType == 8) {
|
||||||
|
thisidType = '05'
|
||||||
|
}
|
||||||
//eslint-disable-next-line no-undef
|
//eslint-disable-next-line no-undef
|
||||||
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
|
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
|
||||||
businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
|
businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
|
||||||
number: that.saleInsuredInfo.idNo, //身份证号码
|
number: that.saleInsuredInfo.idNo, //身份证号码
|
||||||
name: that.saleInsuredInfo.name //姓名
|
name: that.saleInsuredInfo.name, //姓名
|
||||||
|
idType: thisidType, //证件类型
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
if (JSON.parse(data).state == '1') {
|
if (JSON.parse(data).state == '1') {
|
||||||
// 保存rid 数据
|
// 保存rid 数据
|
||||||
@@ -969,11 +976,16 @@ export default {
|
|||||||
|
|
||||||
// 人脸识别
|
// 人脸识别
|
||||||
if (this.faceAuthCount.insured < this.smsAuthNum) {
|
if (this.faceAuthCount.insured < this.smsAuthNum) {
|
||||||
|
let thisidType = ''
|
||||||
|
if(that.saleInsuredPersonInfo.idType == 8) {
|
||||||
|
thisidType = '05'
|
||||||
|
}
|
||||||
// 调原生人脸识别
|
// 调原生人脸识别
|
||||||
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
|
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
|
||||||
businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
|
businessSource: '1', //业务来源:1-电投,2-入司,3-理赔,4-保全
|
||||||
number: that.saleInsuredPersonInfo.idNo, //身份证号码
|
number: that.saleInsuredPersonInfo.idNo, //身份证号码
|
||||||
name: that.saleInsuredPersonInfo.name //姓名
|
name: that.saleInsuredPersonInfo.name, //姓名
|
||||||
|
idType: thisidType, //证件类型
|
||||||
}).then((data) => {
|
}).then((data) => {
|
||||||
if (JSON.parse(data).state == '1') {
|
if (JSON.parse(data).state == '1') {
|
||||||
that.saveCustomerRidInfo('insured_rid', 'B')
|
that.saveCustomerRidInfo('insured_rid', 'B')
|
||||||
@@ -1746,6 +1758,9 @@ export default {
|
|||||||
redirectUrl: this.idcardData.redirectUrl,
|
redirectUrl: this.idcardData.redirectUrl,
|
||||||
businessSource: this.idcardData.businessSource
|
businessSource: this.idcardData.businessSource
|
||||||
}
|
}
|
||||||
|
if(this.idcardData.idType == 8) {
|
||||||
|
data.idType = '05'
|
||||||
|
}
|
||||||
getRecognitionUrl(data).then(
|
getRecognitionUrl(data).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
|
|||||||
Reference in New Issue
Block a user