mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-24 21:52:53 +08:00
Merge branch 'feature/GFRS-860【0514】更换人脸识别厂商-微信端' into dev
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user