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> <script>
import utilsAge from '@/assets/js/utils/age' import utilsAge from '@/assets/js/utils/age'
import { getWhitelist } from '@/api/ebiz/whitelist'
export default { export default {
name: 'HandleResult', name: 'HandleResult',
@@ -120,8 +121,21 @@ export default {
} }
}) })
}, },
toFace(config) { async toFace(config) {
console.log('----------', 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 // eslint-disable-next-line no-undef
EWebBridge.webCallAppInJs('face_auth', config) EWebBridge.webCallAppInJs('face_auth', config)
// 跳过人脸识别 // 跳过人脸识别