Commit ad421757 authored by 李晓兵's avatar 李晓兵

'face'

parent 4f42e08f
......@@ -399,10 +399,9 @@ export default {
let vm = this
vm.faceListUpload = []
let obj = {
'pkvalue': 483,
'pkvalue': vm.confirm_id,
'source_type': 'PRJ_PROJECT_BP_CONFIRM',
'picture': '',
'check_id': 483,
'filePath': '',
'attachment_id': '',
'user_id': 1,
......@@ -413,8 +412,8 @@ export default {
cameraDirection: 1,
}
let success = function (imgdata) {
//obj.filePath = imgdata
obj.filePath = 'http://hlsapp.hand-china.com/file/XCMG/2.jpg'
obj.filePath = imgdata
//obj.filePath = 'http://hlsapp.hand-china.com/file/XCMG/2.jpg'
vm.confirmContractSign(imgdata,status)
vm.faceListUpload.push(obj)
}
......@@ -426,17 +425,14 @@ export default {
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
async confirmContractSign (faceImg,status) {
let idCardImgUrl = await this.idCardImgUrlGet()
alert('idCardImgUrl' + idCardImgUrl)
this.faceIdentify(faceImg, idCardImgUrl,status)
},
// 获取身份证照片
async idCardImgUrlGet () {
// 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 + 'prj_id_card_query'
let param = {
confirm_id: 483,
confirm_id: vm.confirm_id,
}
hlsPopup.showLoading('请稍候')
let res = await vm.$post(url, param)
......@@ -466,7 +462,6 @@ export default {
title: '提示',
content: `识别分数为${identifyScore}`,
onConfirm: () => {
alert(`识别分数为${identifyScore}`)
vm.doConfirm(status)
},
})
......@@ -476,8 +471,7 @@ export default {
// 确认签约逻辑
doConfirm (status) {
let vm = this
vm.save_picture(vm.faceListUpload)
/*let url = process.env.basePath + 'do_confrim_bp'
let url = process.env.basePath + 'do_confrim_bp'
let param = {
'master': {
confirm_id: vm.confirm_id,
......@@ -489,6 +483,7 @@ export default {
vm.hlsHttp.post(url, param).then(function (res) {
vm.hlsPopup.hideLoading()
if (res.result === 'S') {
vm.save_picture(vm.faceListUpload)
vm.hlsPopup.showSuccess('审批成功')
vm.$router.push({
name: 'ContractSigning',
......@@ -496,7 +491,7 @@ export default {
} else {
vm.hlsPopup.showSuccess(res.message)
}
})*/
})
},
// 图片保存
save_picture (list) {
......
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