mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 02:56:43 +08:00
feature: 白名单管理
1. 保全人脸识别白名单
This commit is contained in:
@@ -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)
|
||||
// 跳过人脸识别
|
||||
|
||||
Reference in New Issue
Block a user