mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 05:46:44 +08:00
[fix]【更换人脸识别厂商】上一次人脸识别失败影像到下一次的签名进入显示问题
This commit is contained in:
@@ -372,12 +372,12 @@ export default {
|
||||
if (this.$route.query.airSign) {
|
||||
sessionStorage.setItem('airSign', this.$route.query.airSign)
|
||||
}
|
||||
// window.localStorage.setItem('saleInsuredInfo', this.$route.query.saleInsuredInfo)
|
||||
// window.localStorage.setItem('saleInsuredPersonInfo', this.$route.query.saleInsuredPersonInfo)
|
||||
if (this.$route.query.faceAuthCountWeixin == undefined) {
|
||||
localStorage['faceAuthWeXin-requestId'] = ''
|
||||
localStorage['faceAuthWeXin-bizToken'] = ''
|
||||
}
|
||||
window.localStorage.setItem('token', this.$route.query.token)
|
||||
window.localStorage.setItem('orderNo', this.$route.query.orderNo)
|
||||
// window.localStorage.setItem('relationToAppnt', this.$route.query.relationToAppnt)
|
||||
// window.localStorage.setItem('productCode', this.$route.query.productCode)
|
||||
if (this.$route.query.changeCard == '0') {
|
||||
localStorage.setItem('changeCard', true)
|
||||
} else {
|
||||
@@ -403,48 +403,37 @@ export default {
|
||||
this.changeCard = localStorage.getItem('changeCard')
|
||||
this.relationToAppnt = this.$route.query.relationToAppnt
|
||||
this.isShow = false
|
||||
this.getOrderDetail().then(() => {
|
||||
setTimeout(() => {
|
||||
console.log('初始化this.appntSign ==', this.appntSign)
|
||||
if (
|
||||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
|
||||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2')
|
||||
) {
|
||||
// this.$toast('签名成功,请联系业务员进行后续流程!')
|
||||
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: '确认完成,请联系业务员完成后续流程!' })
|
||||
}
|
||||
// localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得,认证相关参数
|
||||
if ((localStorage['faceAuthWeXin-requestId'] || localStorage['faceAuthWeXin-bizToken']) && this.$route.query.faceAuthCountWeixin) {
|
||||
localStorage['faceAuthWeXin-requestId'] = undefined
|
||||
localStorage['faceAuthWeXin-bizToken'] = undefined
|
||||
} else if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && !this.$route.query.faceAuthCountWeixin) {
|
||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
||||
}
|
||||
}, 5000)
|
||||
})
|
||||
await this.getOrderDetail()
|
||||
console.log('初始化this.appntSign ==', this.appntSign)
|
||||
if (
|
||||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
|
||||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2')
|
||||
) {
|
||||
// this.$toast('签名成功,请联系业务员进行后续流程!')
|
||||
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: '确认完成,请联系业务员完成后续流程!' })
|
||||
}
|
||||
// localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得,认证相关参数
|
||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && !this.$route.query.faceAuthCountWeixin) {
|
||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
||||
}
|
||||
|
||||
if (sessionStorage.shareCode == '1') {
|
||||
console.log('进来被保险人')
|
||||
this.tipsName = JSON.parse(localStorage.saleInsuredPersonInfo).name
|
||||
} else {
|
||||
console.log('进来投保人')
|
||||
this.tipsName = JSON.parse(localStorage.saleInsuredInfo).name
|
||||
// console.log('localStorage.saleInsuredInfo', localStorage.saleInsuredInfo)
|
||||
// console.log('localStorage.saleInsuredInfo.name', localStorage.saleInsuredInfo.name)
|
||||
// console.log('this.tipName', this.tipsName)
|
||||
}
|
||||
weixinShare({
|
||||
title: '国富人寿计划书',
|
||||
imgUrl: 'http://47.96.143.111:8000/app/images/logo.png',
|
||||
desc: '国富为您量身定制的保险产品,请查收'
|
||||
})
|
||||
// let params = {
|
||||
// orderNo: ''
|
||||
// }
|
||||
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.weixin = this.$route.query.faceAuthCountWeixin == undefined ? 0 : Number(this.$route.query.faceAuthCountWeixin)
|
||||
|
||||
Reference in New Issue
Block a user