mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-09 18:06:44 +08:00
'添加人脸识别白名单校验'
This commit is contained in:
@@ -117,6 +117,7 @@ import Order from '@/components/ebiz/insureAgain/Order'
|
||||
import ReadingAgreement from '@/components/ebiz/insureAgain/ReadingAgreement'
|
||||
import CacheUtils from '@/assets/js/utils/cacheUtils'
|
||||
import { getReAppntPolicy } from '@/api/ebiz/insureAgain/insureAgain'
|
||||
import { getWhitelist } from '@/api/ebiz/whitelist'
|
||||
export default {
|
||||
name: 'InsureAgain',
|
||||
components: {
|
||||
@@ -256,8 +257,32 @@ export default {
|
||||
// return this.$toast('人脸识别,验证失败!')
|
||||
// }
|
||||
// })
|
||||
getReAppntPolicy({ policyNo: order.policyNo }).then((res) => {
|
||||
getReAppntPolicy({ policyNo: order.policyNo }).then(async (res) => {
|
||||
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
|
||||
//投保人信息返显
|
||||
CacheUtils.setLocItem('orderDetailData', JSON.stringify(res))
|
||||
@@ -299,10 +324,6 @@ export default {
|
||||
path: url
|
||||
}
|
||||
})
|
||||
} else {
|
||||
this.$toast(res.resultMessage)
|
||||
}
|
||||
})
|
||||
},
|
||||
uncommitInsureDetail(order) {
|
||||
CacheUtils.setLocItem('policyNo', order.policyNo)
|
||||
|
||||
Reference in New Issue
Block a user