入参赋值

This commit is contained in:
xuxingjun
2025-01-06 16:03:20 +08:00
parent 5b7ef08984
commit e9ade69acd

View File

@@ -592,8 +592,8 @@ export default {
Dialog.alert({ title: '提示', message: '确认完成,请联系业务员完成后续流程!' })
}
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
if(JSON.parse(localStorage['orderNo'])) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), JSON.parse(localStorage['orderNo']))
if(this.$route.query.orderNo) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), this.$route.query.orderNo)
} else {
this.$toast('没有orderNo')
}
@@ -623,8 +623,8 @@ export default {
this.isShow = true
}
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
if(localStorage['orderNo']) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), JSON.parse(localStorage['orderNo']))
if(this.$route.query.orderNo) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), this.$route.query.orderNo)
} else {
this.$toast('没有orderNo')
}
@@ -819,8 +819,8 @@ export default {
}
// 人脸识别
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
if(JSON.parse(localStorage['orderNo'])) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), JSON.parse(localStorage['orderNo']))
if(this.$route.query.orderNo) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), this.$route.query.orderNo)
} else {
this.$toast('没有orderNo')
}
@@ -880,8 +880,8 @@ export default {
}
// 人脸识别
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
if(JSON.parse(localStorage['orderNo'])) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), JSON.parse(localStorage['orderNo']))
if(this.$route.query.orderNo) {
this.getRecognitionResult(JSON.parse(localStorage['faceAuthWeXin-requestId']), JSON.parse(localStorage['faceAuthWeXin-bizToken']), this.$route.query.orderNo)
} else {
this.$toast('没有orderNo')
}
@@ -1794,7 +1794,7 @@ export default {
},
getRecognitionResult(requestId, bizToken , orderNo) {
return new Promise(() => {
getRecognitionResult({ requestId, bizToken, orderNo }).then(
getRecognitionResult({ requestId, bizToken, orderNo: orderNo }).then(
(res) => {
if (res.result == '0') {
this.recognizeResult = res.result