【fix】 完成 GFRS-1019【待确定】签收回执人脸识别修改为短信验证码

待发布到测试环境测试
This commit is contained in:
tian.guangyuan
2020-04-17 13:14:54 +08:00
parent 80cd78c72f
commit 39f3201457
2 changed files with 153 additions and 34 deletions

View File

@@ -363,36 +363,37 @@ export default {
},
// 回执签收
next() {
let that = this
if (this.faceAuthCount.appnt < this.smsAuthNum) {
if (this.appntDTO.idType == '1') {
//证件类型为身份证时,进行人脸识别
EWebBridge.webCallAppInJs('face_auth', {
number: this.appntDTO.idNo, //身份证号码
name: this.appntDTO.name //姓名
}).then(data => {
this.$toast.loading({
duration: 0, // 持续展示 toast
forbidClick: true, // 禁用背景点击
loadingType: 'spinner',
message: '加载中……'
})
this.$toast.clear()
if (JSON.parse(data).state == '1') {
this.toNextPage()
} else {
that.faceAuthCount.appnt++
if (that.faceAuthCount.appnt >= this.smsAuthNum) {
this.realPeopelCheck()
}
}
})
} else {
this.toNextPage()
}
} else {
this.realPeopelCheck()
}
this.toNextPage()
// let that = this
// if (this.faceAuthCount.appnt < this.smsAuthNum) {
// if (this.appntDTO.idType == '1') {
// //证件类型为身份证时,进行人脸识别
// EWebBridge.webCallAppInJs('face_auth', {
// number: this.appntDTO.idNo, //身份证号码
// name: this.appntDTO.name //姓名
// }).then(data => {
// this.$toast.loading({
// duration: 0, // 持续展示 toast
// forbidClick: true, // 禁用背景点击
// loadingType: 'spinner',
// message: '加载中……'
// })
// this.$toast.clear()
// if (JSON.parse(data).state == '1') {
// this.toNextPage()
// } else {
// that.faceAuthCount.appnt++
// if (that.faceAuthCount.appnt >= this.smsAuthNum) {
// this.realPeopelCheck()
// }
// }
// })
// } else {
// this.toNextPage()
// }
// } else {
// this.realPeopelCheck()
// }
},
toNextPage() {
let params = {