diff --git a/src/views/ebiz/sale/SignatureConfirmation.vue b/src/views/ebiz/sale/SignatureConfirmation.vue index 491e0f1ca..fbde977f0 100644 --- a/src/views/ebiz/sale/SignatureConfirmation.vue +++ b/src/views/ebiz/sale/SignatureConfirmation.vue @@ -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