mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 02:16:44 +08:00
重复人脸识别问题相关代码逻辑梳理并做相关功能改动
This commit is contained in:
@@ -458,55 +458,56 @@ export default {
|
|||||||
this.relationToAppnt = this.$route.query.relationToAppnt
|
this.relationToAppnt = this.$route.query.relationToAppnt
|
||||||
this.isShow = false
|
this.isShow = false
|
||||||
await this.getOrderDetail()
|
await this.getOrderDetail()
|
||||||
if (
|
console.log('初始化this.appntSign ==', this.appntSign)
|
||||||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
|
if (
|
||||||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2')
|
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
|
||||||
) {
|
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2')
|
||||||
// this.$toast('签名成功,请联系业务员进行后续流程!')
|
) {
|
||||||
Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
|
// this.$toast('签名成功,请联系业务员进行后续流程!')
|
||||||
} else if (this.insuredSignStatus == '3' && sessionStorage.getItem('shareCode') == '1') {
|
Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
|
||||||
Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
|
} else if (this.insuredSignStatus == '3' && sessionStorage.getItem('shareCode') == '1') {
|
||||||
}
|
Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
|
||||||
if (this.changeCard && this.appntSign.documentStatus == '1') {
|
}
|
||||||
Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
|
if (this.changeCard && this.appntSign.documentStatus == '1') {
|
||||||
}
|
Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
|
||||||
// localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得,认证相关参数
|
}
|
||||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
// localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得,认证相关参数
|
||||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||||
}
|
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
||||||
|
}
|
||||||
|
|
||||||
if (sessionStorage.shareCode == '1') {
|
if (sessionStorage.shareCode == '1') {
|
||||||
console.log('进来被保险人')
|
console.log('进来被保险人')
|
||||||
this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
||||||
} else if(sessionStorage.shareCode == '3'){
|
} else if(sessionStorage.shareCode == '3'){
|
||||||
console.log('进来代理人')
|
console.log('进来代理人')
|
||||||
this.tipsName =this.recmd.name
|
this.tipsName =this.recmd.name
|
||||||
}else {
|
}else {
|
||||||
console.log('进来投保人')
|
console.log('进来投保人')
|
||||||
this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
|
this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
|
||||||
// console.log('localStorage.saleInsuredInfo', localStorage.saleInsuredInfo)
|
// console.log('localStorage.saleInsuredInfo', localStorage.saleInsuredInfo)
|
||||||
// console.log('localStorage.saleInsuredInfo.name', localStorage.saleInsuredInfo.name)
|
// console.log('localStorage.saleInsuredInfo.name', localStorage.saleInsuredInfo.name)
|
||||||
// console.log('this.tipName', this.tipsName)
|
// console.log('this.tipName', this.tipsName)
|
||||||
}
|
}
|
||||||
weixinShare({
|
weixinShare({
|
||||||
title: '国富人寿计划书',
|
title: '国富人寿计划书',
|
||||||
imgUrl: 'http://47.96.143.111:8000/app/images/logo.png',
|
imgUrl: 'http://47.96.143.111:8000/app/images/logo.png',
|
||||||
desc: '国富为您量身定制的保险产品,请查收'
|
desc: '国富为您量身定制的保险产品,请查收'
|
||||||
})
|
})
|
||||||
// let params = {
|
// let params = {
|
||||||
// orderNo: ''
|
// orderNo: ''
|
||||||
// }
|
// }
|
||||||
this.faceAuthCount.appnt = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt)
|
this.faceAuthCount.appnt = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt)
|
||||||
this.faceAuthCount.insured = this.$route.query.faceAuthCountInsured == undefined ? 0 : Number(this.$route.query.faceAuthCountInsured)
|
this.faceAuthCount.insured = this.$route.query.faceAuthCountInsured == undefined ? 0 : Number(this.$route.query.faceAuthCountInsured)
|
||||||
this.faceAuthCount.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin)
|
this.faceAuthCount.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin)
|
||||||
} else {
|
} else {
|
||||||
// 获取详情消息
|
// 获取详情消息
|
||||||
|
|
||||||
this.getOrderDetail()
|
this.getOrderDetail()
|
||||||
this.getSignInvalid()
|
this.getSignInvalid()
|
||||||
this.isShow = true
|
this.isShow = true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 获取消息和阅读状态
|
// 获取消息和阅读状态
|
||||||
realPeopelCheck() {
|
realPeopelCheck() {
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
@@ -656,27 +657,6 @@ export default {
|
|||||||
},
|
},
|
||||||
// 人脸识别
|
// 人脸识别
|
||||||
async start_ocr(val) {
|
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('人脸识别')
|
||||||
console.log(val)
|
console.log(val)
|
||||||
let that = this
|
let that = this
|
||||||
@@ -687,9 +667,10 @@ export default {
|
|||||||
//idtype不为身份证跳过人脸识别
|
//idtype不为身份证跳过人脸识别
|
||||||
if (JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType != '1') {
|
if (JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idType != '1') {
|
||||||
that.goUrl()
|
that.goUrl()
|
||||||
} else {
|
}
|
||||||
|
else {
|
||||||
// 白名单校验
|
// 白名单校验
|
||||||
const res = await getWhitelist({
|
let res = await getWhitelist({
|
||||||
idNo: this.saleInsuredInfo.idNo,
|
idNo: this.saleInsuredInfo.idNo,
|
||||||
name: this.saleInsuredInfo.name,
|
name: this.saleInsuredInfo.name,
|
||||||
whiteType: 'sale_face_show'
|
whiteType: 'sale_face_show'
|
||||||
@@ -707,9 +688,16 @@ export default {
|
|||||||
//RID 状态--有效
|
//RID 状态--有效
|
||||||
if (this.realPeopleRidInfo.appntRidFlag && this.realPeopleRidInfo.appntRidFlag == '0') {
|
if (this.realPeopleRidInfo.appntRidFlag && this.realPeopleRidInfo.appntRidFlag == '0') {
|
||||||
// 手机号鉴权 --通过
|
// 手机号鉴权 --通过
|
||||||
let res = await this.realPeopleCheckMobile('appnt')
|
let insuredData = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo'))
|
||||||
if (res && res.result == '0') {
|
let data = {
|
||||||
that.goUrl()
|
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
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -739,7 +727,7 @@ export default {
|
|||||||
that.insuredUrl()
|
that.insuredUrl()
|
||||||
} else {
|
} else {
|
||||||
// 白名单校验
|
// 白名单校验
|
||||||
const res = await getWhitelist({
|
let res = await getWhitelist({
|
||||||
idNo: this.saleInsuredPersonInfo.idNo,
|
idNo: this.saleInsuredPersonInfo.idNo,
|
||||||
name: this.saleInsuredPersonInfo.name,
|
name: this.saleInsuredPersonInfo.name,
|
||||||
whiteType: 'sale_face_show'
|
whiteType: 'sale_face_show'
|
||||||
@@ -791,7 +779,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// 白名单校验
|
// 白名单校验
|
||||||
const res = await getWhitelist({
|
let res = await getWhitelist({
|
||||||
idNo: this.saleInsuredInfo.idNo,
|
idNo: this.saleInsuredInfo.idNo,
|
||||||
name: this.saleInsuredInfo.name,
|
name: this.saleInsuredInfo.name,
|
||||||
whiteType: 'sale_face_show'
|
whiteType: 'sale_face_show'
|
||||||
@@ -1584,70 +1572,70 @@ export default {
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
//自定义key值排序用
|
//自定义key值排序用
|
||||||
addKey(item) {
|
addKey(item) {
|
||||||
//ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明
|
//ducumentCode 1投保须知 2投保单 3产品说明书 4提示书 6免除保险人责任条款说明书 7保险销售行为双录说明
|
||||||
// 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 11柳州保险行业寿险投保风险提示书 12个人信息使用授权
|
// 8指定保单生效日 9短期险投保须知 10国富人寿自保件承诺书 11柳州保险行业寿险投保风险提示书 12个人信息使用授权
|
||||||
// documentStatus: 文档状态 0 未读 1 已读 2 未签名 3 已签名
|
// documentStatus: 文档状态 0 未读 1 已读 2 未签名 3 已签名
|
||||||
// documentType: 文档类型 0 阅读文档 1 签名文档
|
// documentType: 文档类型 0 阅读文档 1 签名文档
|
||||||
// signType: 签名类型 0 投保人 1 被保人 2 本人
|
// signType: 签名类型 0 投保人 1 被保人 2 本人
|
||||||
if (item.documentCode == '1') {
|
if (item.documentCode == '1') {
|
||||||
item.key = 2
|
item.key = 2
|
||||||
// item.key = 4
|
// item.key = 4
|
||||||
item.routePath = 'insuranceInformation'
|
item.routePath = 'insuranceInformation'
|
||||||
} else if (item.documentCode == '2') {
|
} else if (item.documentCode == '2') {
|
||||||
// item.key = 9
|
// item.key = 9
|
||||||
item.key = 11
|
item.key = 11
|
||||||
item.routePath = 'SignatureOfElectronic'
|
item.routePath = 'SignatureOfElectronic'
|
||||||
} else if (item.documentCode == '3') {
|
} else if (item.documentCode == '3') {
|
||||||
// item.key = 4
|
// item.key = 4
|
||||||
item.key = 6
|
item.key = 6
|
||||||
item.routePath = 'productTip'
|
item.routePath = 'productTip'
|
||||||
} else if (item.documentCode == '4') {
|
} else if (item.documentCode == '4') {
|
||||||
// item.key = 5
|
// item.key = 5
|
||||||
item.key = 7
|
item.key = 7
|
||||||
item.routePath = 'InsuranceTip'
|
item.routePath = 'InsuranceTip'
|
||||||
} else if (item.documentCode == '6') {
|
} else if (item.documentCode == '6') {
|
||||||
// item.key = 7
|
// item.key = 7
|
||||||
item.key = 9
|
item.key = 9
|
||||||
item.routePath = 'avoidDutyTip'
|
item.routePath = 'avoidDutyTip'
|
||||||
} else if (item.documentCode == '7') {
|
} else if (item.documentCode == '7') {
|
||||||
// item.key = 8
|
// item.key = 8
|
||||||
item.key = 10
|
item.key = 10
|
||||||
item.routePath = 'doubleRecordTip'
|
item.routePath = 'doubleRecordTip'
|
||||||
} else if (item.documentCode == '8') {
|
} else if (item.documentCode == '8') {
|
||||||
item.key = 1
|
item.key = 1
|
||||||
item.routePath = 'apointValidDoc'
|
item.routePath = 'apointValidDoc'
|
||||||
} else if (item.documentCode == '9') {
|
} else if (item.documentCode == '9') {
|
||||||
// item.key = 3
|
// item.key = 3
|
||||||
item.key = 5
|
item.key = 5
|
||||||
item.routePath = 'shortPeriodProduct'
|
item.routePath = 'shortPeriodProduct'
|
||||||
}else if (item.documentCode == '10') {
|
}else if (item.documentCode == '10') {
|
||||||
item.key = 1
|
item.key = 1
|
||||||
item.routePath = 'commitmentSelfProtect'
|
item.routePath = 'commitmentSelfProtect'
|
||||||
} else if (item.documentCode == '11') {
|
} else if (item.documentCode == '11') {
|
||||||
// item.key = 6
|
// item.key = 6
|
||||||
item.key = 8
|
item.key = 8
|
||||||
item.routePath = 'InsuranceRiskReminder'
|
item.routePath = 'InsuranceRiskReminder'
|
||||||
} else if (item.documentCode == '12') {
|
} else if (item.documentCode == '12') {
|
||||||
// item.key = 10
|
// item.key = 10
|
||||||
item.key = 12
|
item.key = 12
|
||||||
item.routePath = 'PersonalInformation'
|
item.routePath = 'PersonalInformation'
|
||||||
} else if (item.documentCode == '13') {
|
} else if (item.documentCode == '13') {
|
||||||
// item.key = 2
|
// item.key = 2
|
||||||
item.key = 4
|
item.key = 4
|
||||||
item.routePath = 'insuranceClauses'
|
item.routePath = 'insuranceClauses'
|
||||||
}else if (item.documentCode == '14') {//风险评估pdf
|
}else if (item.documentCode == '14') {//风险评估pdf
|
||||||
item.key = 3
|
item.key = 3
|
||||||
item.routePath = 'AnswerTip'
|
item.routePath = 'AnswerTip'
|
||||||
} else if (item.documentCode == '15') {
|
} else if (item.documentCode == '15') {
|
||||||
item.key = 7.1
|
item.key = 7.1
|
||||||
item.routePath = 'universalRiskNotifyingMessageTip'
|
item.routePath = 'universalRiskNotifyingMessageTip'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getSignInvalid() {
|
getSignInvalid() {
|
||||||
this.$toast.loading({
|
this.$toast.loading({
|
||||||
duration: 0, // 持续展示 toast
|
duration: 0, // 持续展示 toast
|
||||||
|
|
||||||
forbidClick: true, // 禁用背景点击
|
forbidClick: true, // 禁用背景点击
|
||||||
|
|
||||||
@@ -1758,9 +1746,18 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
getRecognitionResult(requestId, bizToken) {
|
getRecognitionResult(requestId, bizToken) {
|
||||||
|
this.$toast.loading({
|
||||||
|
// 持续展示 toast
|
||||||
|
duration: 0,
|
||||||
|
// 禁用背景点击s
|
||||||
|
forbidClick: true,
|
||||||
|
loadingType: 'spinner',
|
||||||
|
message: '加载中……'
|
||||||
|
})
|
||||||
return new Promise(() => {
|
return new Promise(() => {
|
||||||
getRecognitionResult({ requestId, bizToken }).then(
|
getRecognitionResult({ requestId, bizToken }).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
|
this.$toast.clear()
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.recognizeResult = res.result
|
this.recognizeResult = res.result
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user