feature: 白名单管理

1. 保全人脸识别白名单
This commit is contained in:
mengxiaolong
2020-12-08 11:23:04 +08:00
parent 52a13630b4
commit 981702696d

View File

@@ -14,6 +14,7 @@
<script>
import utilsAge from '@/assets/js/utils/age'
import { getWhitelist } from '@/api/ebiz/whitelist'
export default {
name: 'HandleResult',
@@ -120,8 +121,21 @@ export default {
}
})
},
toFace(config) {
console.log('----------', config)
async toFace(config) {
const res = await getWhitelist({
idNo: this.customerInfo.idNo,
name: this.customerInfo.customerName,
whiteType: 'edor_face_show'
})
if (res.result === '0') {
// 用户在白名单内
if (res.content && res.content.length) {
this.jumpNextPage(this.path)
return
}
} else {
this.$toast(res.resultMessage)
}
// eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('face_auth', config)
// 跳过人脸识别