[fix]【更换人脸识别厂商】上一次人脸识别失败影像到下一次的签名进入显示问题

This commit is contained in:
yuweiqi
2020-05-28 13:54:24 +08:00
parent 75d94907da
commit 978591f588

View File

@@ -372,12 +372,12 @@ export default {
if (this.$route.query.airSign) { if (this.$route.query.airSign) {
sessionStorage.setItem('airSign', this.$route.query.airSign) sessionStorage.setItem('airSign', this.$route.query.airSign)
} }
// window.localStorage.setItem('saleInsuredInfo', this.$route.query.saleInsuredInfo) if (this.$route.query.faceAuthCountWeixin == undefined) {
// window.localStorage.setItem('saleInsuredPersonInfo', this.$route.query.saleInsuredPersonInfo) localStorage['faceAuthWeXin-requestId'] = ''
localStorage['faceAuthWeXin-bizToken'] = ''
}
window.localStorage.setItem('token', this.$route.query.token) window.localStorage.setItem('token', this.$route.query.token)
window.localStorage.setItem('orderNo', this.$route.query.orderNo) 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') { if (this.$route.query.changeCard == '0') {
localStorage.setItem('changeCard', true) localStorage.setItem('changeCard', true)
} else { } else {
@@ -403,48 +403,37 @@ export default {
this.changeCard = localStorage.getItem('changeCard') this.changeCard = localStorage.getItem('changeCard')
this.relationToAppnt = this.$route.query.relationToAppnt this.relationToAppnt = this.$route.query.relationToAppnt
this.isShow = false this.isShow = false
this.getOrderDetail().then(() => { await this.getOrderDetail()
setTimeout(() => { console.log('初始化this.appntSign ==', this.appntSign)
console.log('初始化this.appntSign ==', this.appntSign) if (
if ( (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') ||
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '0') || (this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2')
(this.appntSignStatus == '3' && sessionStorage.getItem('shareCode') == '2') ) {
) { // this.$toast('签名成功,请联系业务员进行后续流程!')
// this.$toast('签名成功,请联系业务员进行后续流程!') Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' }) } else if (this.insuredSignStatus == '3' && sessionStorage.getItem('shareCode') == '1') {
} else if (this.insuredSignStatus == '3' && sessionStorage.getItem('shareCode') == '1') { Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' })
Dialog.alert({ title: '提示', message: '签名成功,请联系业务员进行后续流程!' }) }
} if (this.changeCard && this.appntSign.documentStatus == '1') {
if (this.changeCard && this.appntSign.documentStatus == '1') { Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' }) }
} // localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得认证相关参数
// localStorage['faceAuthWeXin-requestId'] localStorage['faceAuthWeXin-bizToken']--微信端人脸识别获取腾讯认证url接口获得认证相关参数 if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && !this.$route.query.faceAuthCountWeixin) {
if ((localStorage['faceAuthWeXin-requestId'] || localStorage['faceAuthWeXin-bizToken']) && this.$route.query.faceAuthCountWeixin) { this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
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)
})
if (sessionStorage.shareCode == '1') { if (sessionStorage.shareCode == '1') {
console.log('进来被保险人') console.log('进来被保险人')
this.tipsName = JSON.parse(localStorage.saleInsuredPersonInfo).name this.tipsName = JSON.parse(localStorage.saleInsuredPersonInfo).name
} else { } else {
console.log('进来投保人') console.log('进来投保人')
this.tipsName = JSON.parse(localStorage.saleInsuredInfo).name 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({ 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 = {
// 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)