mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-13 07:16:43 +08:00
getRecognitionResult 接口加个保单号入参
This commit is contained in:
@@ -127,7 +127,7 @@ export default {
|
|||||||
num++
|
num++
|
||||||
await this.getRecognitionUrl(val, num)
|
await this.getRecognitionUrl(val, num)
|
||||||
if (this.requestId && this.bizToken) {
|
if (this.requestId && this.bizToken) {
|
||||||
await this.getRecognitionResult(this.requestId, this.bizToken)
|
await this.getRecognitionResult(this.requestId, this.bizToken, localStorage.getItem('orderNo'))
|
||||||
} else {
|
} else {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -155,9 +155,9 @@ export default {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getRecognitionResult(requestId, bizToken) {
|
getRecognitionResult(requestId, bizToken, orderNo) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
getRecognitionResult({ requestId, bizToken }).then(
|
getRecognitionResult({ requestId, bizToken, orderNo :orderNo }).then(
|
||||||
res => {
|
res => {
|
||||||
console.log('getRecognitionResult', res)
|
console.log('getRecognitionResult', res)
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ export default {
|
|||||||
|
|
||||||
//获取腾讯人脸识别URL后,重新跳回页面,验证腾讯人脸识别结果,成功的话调签字面板
|
//获取腾讯人脸识别URL后,重新跳回页面,验证腾讯人脸识别结果,成功的话调签字面板
|
||||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||||
}
|
}
|
||||||
this.faceAuthCount.enjoy = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt)
|
this.faceAuthCount.enjoy = this.$route.query.faceAuthCountAppnt == undefined ? 0 : Number(this.$route.query.faceAuthCountAppnt)
|
||||||
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)
|
||||||
@@ -291,9 +291,9 @@ export default {
|
|||||||
return str
|
return str
|
||||||
},
|
},
|
||||||
//微信初始化--获取腾讯人脸识别结果接口
|
//微信初始化--获取腾讯人脸识别结果接口
|
||||||
getRecognitionResult(requestId, bizToken) {
|
getRecognitionResult(requestId, bizToken, orderNo) {
|
||||||
return new Promise(() => {
|
return new Promise(() => {
|
||||||
getRecognitionResult({ requestId, bizToken }).then(
|
getRecognitionResult({ requestId, bizToken, orderNo:orderNo }).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.recognizeResult = res.result
|
this.recognizeResult = res.result
|
||||||
|
|||||||
@@ -132,7 +132,7 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken']) {
|
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken']) {
|
||||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -396,8 +396,8 @@ export default {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getRecognitionResult(requestId, bizToken) {
|
getRecognitionResult(requestId, bizToken, orderNo) {
|
||||||
getRecognitionResult({ requestId, bizToken })
|
getRecognitionResult({ requestId, bizToken, orderNo: orderNo })
|
||||||
.then(res => {
|
.then(res => {
|
||||||
console.log('getRecognitionResult', res)
|
console.log('getRecognitionResult', res)
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
|
|||||||
@@ -442,7 +442,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// 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 != undefined) {
|
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sessionStorage.shareCode == '1') {
|
if (sessionStorage.shareCode == '1') {
|
||||||
@@ -1400,9 +1400,9 @@ export default {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getRecognitionResult(requestId, bizToken) {
|
getRecognitionResult(requestId, bizToken, orderNo) {
|
||||||
return new Promise(() => {
|
return new Promise(() => {
|
||||||
getRecognitionResult({ requestId, bizToken }).then(
|
getRecognitionResult({ requestId, bizToken, orderNo: orderNo }).then(
|
||||||
res => {
|
res => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.recognizeResult = res.result
|
this.recognizeResult = res.result
|
||||||
|
|||||||
@@ -427,6 +427,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
|
console.log('保单号',localStorage.getItem('orderNo'));
|
||||||
if(this.$route.query.token){
|
if(this.$route.query.token){
|
||||||
window.localStorage.setItem('token', this.$route.query.token)
|
window.localStorage.setItem('token', this.$route.query.token)
|
||||||
}
|
}
|
||||||
@@ -591,7 +592,7 @@ export default {
|
|||||||
Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
|
Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
|
||||||
}
|
}
|
||||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||||
}
|
}
|
||||||
if (sessionStorage.shareCode == '1') {
|
if (sessionStorage.shareCode == '1') {
|
||||||
console.log('进来被保险人')
|
console.log('进来被保险人')
|
||||||
@@ -807,7 +808,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// 人脸识别
|
// 人脸识别
|
||||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||||
} else {
|
} else {
|
||||||
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
|
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).name
|
||||||
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo
|
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredInfo')).idNo
|
||||||
@@ -864,7 +865,7 @@ export default {
|
|||||||
}
|
}
|
||||||
// 人脸识别
|
// 人脸识别
|
||||||
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
|
||||||
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']))
|
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), localStorage.getItem('orderNo'))
|
||||||
} else {
|
} else {
|
||||||
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
this.idcardData.realName = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).name
|
||||||
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo
|
this.idcardData.idno = JSON.parse(this.$CacheUtils.getLocItem('saleInsuredPersonInfo')).idNo
|
||||||
@@ -1771,9 +1772,9 @@ export default {
|
|||||||
)
|
)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
getRecognitionResult(requestId, bizToken) {
|
getRecognitionResult(requestId, bizToken , orderNo) {
|
||||||
return new Promise(() => {
|
return new Promise(() => {
|
||||||
getRecognitionResult({ requestId, bizToken }).then(
|
getRecognitionResult({ requestId, bizToken, orderNo: orderNo }).then(
|
||||||
(res) => {
|
(res) => {
|
||||||
if (res.result == '0') {
|
if (res.result == '0') {
|
||||||
this.recognizeResult = res.result
|
this.recognizeResult = res.result
|
||||||
|
|||||||
Reference in New Issue
Block a user