mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 01:06:45 +08:00
重复人脸识别问题相关代码逻辑梳理并做相关功能改动
This commit is contained in:
@@ -458,6 +458,7 @@ export default {
|
||||
this.relationToAppnt = this.$route.query.relationToAppnt
|
||||
this.isShow = false
|
||||
await this.getOrderDetail()
|
||||
console.log('初始化this.appntSign ==', this.appntSign)
|
||||
if (
|
||||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
|
||||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2')
|
||||
@@ -656,27 +657,6 @@ export default {
|
||||
},
|
||||
// 人脸识别
|
||||
async start_ocr(val) {
|
||||
// val 0投保人 1被保险人 2本人
|
||||
// return this.$dialog
|
||||
// .alert({
|
||||
// className: 'dialog-alert',
|
||||
// title: '提示',
|
||||
// message: '为维护您的合法权益,请您务必认真观看防范销售误导视频。',
|
||||
// confirmButtonColor: '#ee0a24',
|
||||
// confirmButtonText: '确认'
|
||||
// })
|
||||
// .then(() => {
|
||||
// this.$jump({
|
||||
// flag: 'navigation',
|
||||
// extra: {
|
||||
// title: '防范销售误导',
|
||||
// hiddenRight: '1'
|
||||
// }
|
||||
// })
|
||||
// this.videoShow = true
|
||||
// this.isVideo = true
|
||||
// this.isVideoUrl = 'goUrl'
|
||||
// })
|
||||
console.log('人脸识别')
|
||||
console.log(val)
|
||||
let that = this
|
||||
@@ -687,9 +667,10 @@ export default {
|
||||
//idtype不为身份证跳过人脸识别
|
||||
if (JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType != '1') {
|
||||
that.goUrl()
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
// 白名单校验
|
||||
const res = await getWhitelist({
|
||||
let res = await getWhitelist({
|
||||
idNo: this.saleInsuredInfo.idNo,
|
||||
name: this.saleInsuredInfo.name,
|
||||
whiteType: 'sale_face_show'
|
||||
@@ -707,9 +688,16 @@ export default {
|
||||
//RID 状态--有效
|
||||
if (this.realPeopleRidInfo.appntRidFlag && this.realPeopleRidInfo.appntRidFlag == '0') {
|
||||
// 手机号鉴权 --通过
|
||||
let res = await this.realPeopleCheckMobile('appnt')
|
||||
if (res && res.result == '0') {
|
||||
that.goUrl()
|
||||
let insuredData = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||
let data = {
|
||||
name: insuredData.name,
|
||||
idType: insuredData.idType,
|
||||
idNo: insuredData.idNo,
|
||||
mobile: insuredData.mobile
|
||||
}
|
||||
let res1 = await checkPhone(data)
|
||||
if (res1 && res1.result == '0') {
|
||||
that.insuredUrl()
|
||||
return
|
||||
}
|
||||
}
|
||||
@@ -739,7 +727,7 @@ export default {
|
||||
that.insuredUrl()
|
||||
} else {
|
||||
// 白名单校验
|
||||
const res = await getWhitelist({
|
||||
let res = await getWhitelist({
|
||||
idNo: this.saleInsuredPersonInfo.idNo,
|
||||
name: this.saleInsuredPersonInfo.name,
|
||||
whiteType: 'sale_face_show'
|
||||
@@ -791,7 +779,7 @@ export default {
|
||||
}
|
||||
}
|
||||
// 白名单校验
|
||||
const res = await getWhitelist({
|
||||
let res = await getWhitelist({
|
||||
idNo: this.saleInsuredInfo.idNo,
|
||||
name: this.saleInsuredInfo.name,
|
||||
whiteType: 'sale_face_show'
|
||||
@@ -1758,9 +1746,18 @@ export default {
|
||||
})
|
||||
},
|
||||
getRecognitionResult(requestId, bizToken) {
|
||||
this.$toast.loading({
|
||||
// 持续展示 toast
|
||||
duration: 0,
|
||||
// 禁用背景点击s
|
||||
forbidClick: true,
|
||||
loadingType: 'spinner',
|
||||
message: '加载中……'
|
||||
})
|
||||
return new Promise(() => {
|
||||
getRecognitionResult({ requestId, bizToken }).then(
|
||||
(res) => {
|
||||
this.$toast.clear()
|
||||
if (res.result == '0') {
|
||||
this.recognizeResult = res.result
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user