From 192c8638508a7683de5521f834ae1c07ebe76409 Mon Sep 17 00:00:00 2001 From: yuweiqi Date: Fri, 8 May 2020 19:24:16 +0800 Subject: [PATCH 1/2] =?UTF-8?q?[FIX]=E3=80=90=E6=9B=B4=E6=8D=A2=E4=BA=BA?= =?UTF-8?q?=E8=84=B8=E8=AF=86=E5=88=AB=E5=8E=82=E5=95=86=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E7=AB=AF=E3=80=91=E6=89=93log=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/SignatureConfirmation.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/ebiz/sale/SignatureConfirmation.vue b/src/views/ebiz/sale/SignatureConfirmation.vue index 693009e85..49688400b 100644 --- a/src/views/ebiz/sale/SignatureConfirmation.vue +++ b/src/views/ebiz/sale/SignatureConfirmation.vue @@ -1203,7 +1203,7 @@ export default { this.faceAuthCount.insured + '&faceAuthCountWeixin=' + this.faceAuthCount.weixin - localStorage.setItem('9999111', JSON.stringify(this.faceAuthCount.weixin)) //调试专用 + localStorage.setItem('9999111', JSON.stringify(this.idcardData.redirectUrl)) //调试专用 let data = { realName: this.idcardData.realName, idno: this.idcardData.idno, redirectUrl: this.idcardData.redirectUrl } console.log('获取URL请求参数', data) getRecognitionUrl(data).then( From 56ce49712190efee5422c36106d194f562efa504 Mon Sep 17 00:00:00 2001 From: yuweiqi Date: Fri, 8 May 2020 20:44:36 +0800 Subject: [PATCH 2/2] =?UTF-8?q?[fix]=E3=80=90=E6=9B=B4=E6=8D=A2=E4=BA=BA?= =?UTF-8?q?=E8=84=B8=E8=AF=86=E5=88=AB=E5=8E=82=E5=95=86=E5=BE=AE=E4=BF=A1?= =?UTF-8?q?=E7=AB=AF=E3=80=91=E8=85=BE=E8=AE=AF=E8=AF=86=E5=88=AB=E5=9B=9E?= =?UTF-8?q?=E8=B0=83=E8=B7=B3=E8=BD=ACurl=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/ebiz/sale/SignatureConfirmation.vue | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/views/ebiz/sale/SignatureConfirmation.vue b/src/views/ebiz/sale/SignatureConfirmation.vue index 49688400b..a31e7407c 100644 --- a/src/views/ebiz/sale/SignatureConfirmation.vue +++ b/src/views/ebiz/sale/SignatureConfirmation.vue @@ -439,12 +439,9 @@ export default { // let params = { // orderNo: '' // } - console.log('init 111', this.$route.query.faceAuthCountWeixin, typeof this.$route.query.faceAuthCountWeixin) - console.log('init query', this.$route.query) 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) - console.log(1111, this.faceAuthCount.weixin, typeof this.faceAuthCount.weixin) } else { // 获取详情消息 @@ -1174,7 +1171,6 @@ export default { this.goUrl() } } else { - console.log('腾讯人脸识别失败111', this.faceAuthCount.weixin, typeof this.faceAuthCount.weixin) this.faceAuthCount.weixin++ console.log('腾讯人脸识别失败', this.faceAuthCount.weixin, typeof this.faceAuthCount.weixin) if (this.faceAuthCount.weixin >= this.smsAuthNum) { @@ -1193,16 +1189,22 @@ export default { await this.getRecognitionUrl() }, + //替换redirectUrl + replaceSearch() { + let obj = this.$route.query, + str = '?' + obj.faceAuthCountAppnt = this.faceAuthCount.appnt + obj.faceAuthCountInsured = this.faceAuthCount.insured + obj.faceAuthCountWeixin = this.faceAuthCount.weixin + for (let key in obj) { + str += `&${key}=${obj[key]}` + } + return str + }, + getRecognitionUrl() { return new Promise((resolve, reject) => { - this.idcardData.redirectUrl = - window.location.href + - '&faceAuthCountAppnt=' + - this.faceAuthCount.appnt + - '&faceAuthCountInsured=' + - this.faceAuthCount.insured + - '&faceAuthCountWeixin=' + - this.faceAuthCount.weixin + this.idcardData.redirectUrl = location.origin + this.replaceSearch() localStorage.setItem('9999111', JSON.stringify(this.idcardData.redirectUrl)) //调试专用 let data = { realName: this.idcardData.realName, idno: this.idcardData.idno, redirectUrl: this.idcardData.redirectUrl } console.log('获取URL请求参数', data)