mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-10 09:16:43 +08:00
优化getRecognitionResult接口传参4
This commit is contained in:
@@ -427,6 +427,7 @@ export default {
|
||||
}
|
||||
},
|
||||
async created() {
|
||||
console.log('保单号',localStorage.getItem('orderNo'));
|
||||
if(this.$route.query.token){
|
||||
window.localStorage.setItem('token', this.$route.query.token)
|
||||
}
|
||||
@@ -544,7 +545,7 @@ export default {
|
||||
// 初始化
|
||||
async init() {
|
||||
localStorage.doubleRecordFlag = '0' //0不是双录单 1是双录单
|
||||
// if (this.isWeixin) {
|
||||
if (this.isWeixin) {
|
||||
if (this.$route.query.airSign) {
|
||||
sessionStorage.setItem('airSign', this.$route.query.airSign)
|
||||
}
|
||||
@@ -590,9 +591,9 @@ export default {
|
||||
if (this.changeCard && this.appntSign.documentStatus == '1') {
|
||||
Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
|
||||
}
|
||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||
}
|
||||
// if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||
// this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||
// }
|
||||
if (sessionStorage.shareCode == '1') {
|
||||
console.log('进来被保险人')
|
||||
this.tipsName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
||||
@@ -611,13 +612,15 @@ export default {
|
||||
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)
|
||||
// } else {
|
||||
} else {
|
||||
// 获取详情消息
|
||||
this.getOrderDetail()
|
||||
this.getSignInvalid()
|
||||
this.isShow = true
|
||||
// }
|
||||
// }
|
||||
}
|
||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), JSON.parse(localStorage['orderNo']))
|
||||
}
|
||||
},
|
||||
// 获取消息和阅读状态
|
||||
realPeopelCheck() {
|
||||
@@ -773,7 +776,7 @@ export default {
|
||||
}
|
||||
// val 0投保人 1被保险人 2本人
|
||||
let that = this
|
||||
// if (this.isWeixin) {
|
||||
if (this.isWeixin) {
|
||||
window.localStorage.setItem('sign-val', val)
|
||||
window.localStorage.setItem('sign-appnt', JSON.stringify(that.appntSign))
|
||||
if (val == '0' || val == '2') {
|
||||
@@ -865,7 +868,7 @@ export default {
|
||||
}
|
||||
// 人脸识别
|
||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), JSON.parse(localStorage['orderNo']))
|
||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||
} else {
|
||||
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
||||
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo
|
||||
@@ -881,7 +884,7 @@ export default {
|
||||
// }
|
||||
}
|
||||
}
|
||||
// } else {
|
||||
} else {
|
||||
if (val == '0' || val == '2') {
|
||||
window.localStorage.setItem('sign-val', val)
|
||||
window.localStorage.setItem('sign-appnt', JSON.stringify(that.appntSign))
|
||||
@@ -1001,7 +1004,7 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
// }
|
||||
}
|
||||
},
|
||||
goUrl() {
|
||||
let that = this
|
||||
@@ -1762,6 +1765,7 @@ export default {
|
||||
localStorage.setItem('faceAuthWeXin-requestId', JSON.stringify(res.content.requestId))
|
||||
localStorage.setItem('faceAuthWeXin-bizToken', JSON.stringify(res.content.bizToken))
|
||||
window.location.href = res.content.url
|
||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
@@ -1774,13 +1778,7 @@ export default {
|
||||
},
|
||||
getRecognitionResult(requestId, bizToken , orderNo) {
|
||||
return new Promise(() => {
|
||||
let data = {
|
||||
bizToken: bizToken,
|
||||
requestId: requestId,
|
||||
orderNo: orderNo,
|
||||
|
||||
}
|
||||
getRecognitionResult(data).then(
|
||||
getRecognitionResult({ requestId, bizToken, orderNo }).then(
|
||||
(res) => {
|
||||
if (res.result == '0') {
|
||||
this.recognizeResult = res.result
|
||||
|
||||
Reference in New Issue
Block a user