白名单+短信

This commit is contained in:
mengxiaolong
2020-12-10 11:56:59 +08:00
parent f4c17d6e63
commit 5dee06bdb8
3 changed files with 112 additions and 23 deletions

View File

@@ -362,17 +362,16 @@ export default {
if (this.faceAuthCount < 3) {
try {
// eslint-disable-next-line no-undef
// const authRes = await EWebBridge.webCallAppInJs('face_auth', {
// businessSource: '2', //业务来源:1-电投2-入司3-理赔4-保全
// number: this.agentInfo.idNo, //身份证号码
// name: this.agentInfo.name //姓名
// })
const authRes = await this.fakeFaceAuth(true)
const authRes = await EWebBridge.webCallAppInJs('face_auth', {
businessSource: '2', //业务来源:1-电投2-入司3-理赔4-保全
number: this.agentInfo.idNo, //身份证号码
name: this.agentInfo.name //姓名
})
// const authRes = await this.fakeFaceAuth(true)
console.log(authRes)
if (authRes.state == '1') {
if (JSON.parse(authRes).state == '1') {
this.goUrl(code)
} else {
this.$toast('人脸识别失败')
// 人脸验证失败更新faceAuthCount
this.faceAuthCount++
}