入参赋值

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: '确认完成,请联系业务员完成后续流程!' }) 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) {
if(JSON.parse(localStorage['orderNo'])) { if(this.$route.query.orderNo) {
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']), this.$route.query.orderNo)
} else { } else {
this.$toast('没有orderNo') this.$toast('没有orderNo')
} }
@@ -623,8 +623,8 @@ export default {
this.isShow = true this.isShow = true
} }
if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) { if (localStorage['faceAuthWeXin-requestId'] && localStorage['faceAuthWeXin-bizToken'] && this.$route.query.faceAuthCountWeixin != undefined) {
if(localStorage['orderNo']) { if(this.$route.query.orderNo) {
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']), this.$route.query.orderNo)
} else { } else {
this.$toast('没有orderNo') this.$toast('没有orderNo')
} }
@@ -819,8 +819,8 @@ 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) {
if(JSON.parse(localStorage['orderNo'])) { if(this.$route.query.orderNo) {
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']), this.$route.query.orderNo)
} else { } else {
this.$toast('没有orderNo') this.$toast('没有orderNo')
} }
@@ -880,8 +880,8 @@ 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) {
if(JSON.parse(localStorage['orderNo'])) { if(this.$route.query.orderNo) {
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']), this.$route.query.orderNo)
} else { } else {
this.$toast('没有orderNo') this.$toast('没有orderNo')
} }
@@ -1794,7 +1794,7 @@ export default {
}, },
getRecognitionResult(requestId, bizToken , orderNo) { getRecognitionResult(requestId, bizToken , orderNo) {
return new Promise(() => { return new Promise(() => {
getRecognitionResult({ requestId, bizToken, orderNo }).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