'添加人脸识别白名单校验'

This commit is contained in:
proudlx
2021-04-12 09:08:10 +08:00
parent 2ef9a20f0c
commit bcbd67beb1

View File

@@ -117,6 +117,7 @@ import Order from '@/components/ebiz/insureAgain/Order'
import ReadingAgreement from '@/components/ebiz/insureAgain/ReadingAgreement' import ReadingAgreement from '@/components/ebiz/insureAgain/ReadingAgreement'
import CacheUtils from '@/assets/js/utils/cacheUtils' import CacheUtils from '@/assets/js/utils/cacheUtils'
import { getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain' import { getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain'
import { getWhitelist } from '@/api/ebiz/whitelist'
export default { export default {
name: 'InsureAgain', name: 'InsureAgain',
components: { components: {
@@ -256,8 +257,32 @@ export default {
// return this.$toast('人脸识别,验证失败!') // return this.$toast('人脸识别,验证失败!')
// } // }
// }) // })
getReAppntPolicy({ policyNo: order.policyNo }).then((res) => { getReAppntPolicy({ policyNo: order.policyNo }).then(async (res) => {
if (res.result == 0) { if (res.result == 0) {
if (res.orderDTO.appntDTO.idType == '1') {
// 白名单校验
const resData = await getWhitelist({
idNo: res.orderDTO.appntDTO.idNo,
name: res.orderDTO.appntDTO.name,
whiteType: 'reOrder_face_show'
})
if (resData.result === '0') {
// 在白名单内
if (resData.content && resData.content.length) {
this.goUrl(res)
return
}
} else {
this.$toast(resData.resultMessage)
}
} else {
}
} else {
this.$toast(res.resultMessage)
}
})
},
goUrl(res) {
let url let url
//投保人信息返显 //投保人信息返显
CacheUtils.setLocItem('orderDetailData', JSON.stringify(res)) CacheUtils.setLocItem('orderDetailData', JSON.stringify(res))
@@ -299,10 +324,6 @@ export default {
path: url path: url
} }
}) })
} else {
this.$toast(res.resultMessage)
}
})
}, },
uncommitInsureDetail(order) { uncommitInsureDetail(order) {
CacheUtils.setLocItem('policyNo', order.policyNo) CacheUtils.setLocItem('policyNo', order.policyNo)