Commit 7f912dfb authored by 李晓兵's avatar 李晓兵

'face'

parent 091a3534
......@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService'
import Jmessage from './scripts/jmessageService'
// if (process.env.CONFIG_ENV === 'uat') {
//const VConsole = require('vconsole')
// new VConsole() // eslint-disable-line
const VConsole = require('vconsole')
new VConsole() // eslint-disable-line
// }
Vue.use(componentInstall)
......
......@@ -425,11 +425,14 @@ export default {
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
async confirmContractSign (faceImg,status) {
let idCardImgUrl = await this.idCardImgUrlGet()
alert('idCardImgUrl' + idCardImgUrl)
this.faceIdentify(faceImg, idCardImgUrl,status)
},
// 获取身份证照片
async idCardImgUrlGet () {
let vm = this
let idCardUrl = 'http://180.104.121.66:8088/r/api/app/fileViewSvc?sysName=XCMG_DEV&apiName=file_view&attachment_id=87930&access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOlsiYXBpLXJlc291cmNlIl0sInJvbGVJZHMiOlsxMDAwMSwxMDAwMl0sInVzZXJfbmFtZSI6ImFkbWluIiwic2NvcGUiOlsicmVhZCIsIndyaXRlIiwidHJ1c3QiXSwiZXhwIjoxNTc0MjQxOTYwLCJsb2NhbGUiOiJ6aF9DTiIsInVzZXJJZCI6MTAwMDEsImF1dGhvcml0aWVzIjpbIlJPTEVfVVNFUiIsIkVNUExPWUVFIiwiQURNSU4iXSwianRpIjoiYjllZDI2ODYtOGYwYy00ZGVmLWI5MzItMzRjNDA3MWFiYjMxIiwiY2xpZW50X2lkIjoiY2xpZW50MiIsImVtcGxveWVlQ29kZSI6IkFETUlOIn0.auac7h0v7qlSmf8KWhHj1TCGFr37RXYqz0qu3BjSo9s'
return idCardUrl
/* let vm = this
let url = $config.basePath + ''
let param = {
......@@ -442,7 +445,7 @@ export default {
} else {
hlsPopup.showLongCenter(res.info.msg)
return null
}
}*/
},
// 人脸比对
faceIdentify (faceImg, idCardImgUrl,status) {
......@@ -461,7 +464,8 @@ export default {
title: '提示',
content: `识别分数为${identifyScore}`,
onConfirm: () => {
this.doConfirm(status)
alert(`识别分数为${identifyScore}`)
//this.doConfirm(status)
},
})
}
......@@ -482,7 +486,7 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.hlsPopup.showSuccess(`审批成功,已${val}`)
vm.hlsPopup.showSuccess('审批成功')
vm.$router.push({
name: 'ContractSigning',
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment