Merge branch 'feature/GFRS-860【0514】更换人脸识别厂商-微信端' into dev

This commit is contained in:
yuweiqi
2020-05-08 16:26:41 +08:00

View File

@@ -319,7 +319,7 @@ export default {
idcardData: {
realName: '',
idno: '',
redirectUrl: window.location.href
redirectUrl: ''
},
// idcardData: {
// typeface: false,
@@ -1190,6 +1190,7 @@ export default {
getRecognitionUrl() {
return new Promise((resolve, reject) => {
this.idcardData.redirectUrl = `${window.location.href}&faceAuthCountAppnt=${this.faceAuthCount.appnt}&faceAuthCountInsured=${this.faceAuthCount.insured}&faceAuthCountWeixin=${this.faceAuthCount.weixin}`
let data = { realName: this.idcardData.realName, idno: this.idcardData.idno, redirectUrl: this.idcardData.redirectUrl }
console.log('获取URL请求参数', data)
getRecognitionUrl(data).then(
@@ -1198,7 +1199,7 @@ export default {
if (res.result == '0') {
localStorage.setItem('faceAuthWeXin-requestId', JSON.stringify(res.content.requestId))
localStorage.setItem('faceAuthWeXin-bizToken', JSON.stringify(res.content.bizToken))
window.location.href = `${res.content.url}&faceAuthCountAppnt=${this.faceAuthCount.appnt}&faceAuthCountInsured=${this.faceAuthCount.insured}&faceAuthCountWeixin=${this.faceAuthCount.weixin}`
window.location.href = res.content.url
} else {
this.$toast(res.resultMessage)
}