Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xugong
hls-xcmg-vue-app
Commits
7f912dfb
Commit
7f912dfb
authored
Nov 12, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'face'
parent
091a3534
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
main.js
src/main.js
+2
-2
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+8
-4
No files found.
src/main.js
View file @
7f912dfb
...
@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService'
...
@@ -59,8 +59,8 @@ import Jpush from './scripts/jpushService'
import
Jmessage
from
'./scripts/jmessageService'
import
Jmessage
from
'./scripts/jmessageService'
// if (process.env.CONFIG_ENV === 'uat') {
// if (process.env.CONFIG_ENV === 'uat') {
//
const VConsole = require('vconsole')
const
VConsole
=
require
(
'vconsole'
)
//
new VConsole() // eslint-disable-line
new
VConsole
()
// eslint-disable-line
// }
// }
Vue
.
use
(
componentInstall
)
Vue
.
use
(
componentInstall
)
...
...
src/pages/contractSigning/contract-detail.vue
View file @
7f912dfb
...
@@ -425,11 +425,14 @@ export default {
...
@@ -425,11 +425,14 @@ export default {
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
async
confirmContractSign
(
faceImg
,
status
)
{
async
confirmContractSign
(
faceImg
,
status
)
{
let
idCardImgUrl
=
await
this
.
idCardImgUrlGet
()
let
idCardImgUrl
=
await
this
.
idCardImgUrlGet
()
alert
(
'idCardImgUrl'
+
idCardImgUrl
)
this
.
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
this
.
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
},
},
// 获取身份证照片
// 获取身份证照片
async
idCardImgUrlGet
()
{
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 url = $config.basePath + ''
let param = {
let param = {
...
@@ -442,7 +445,7 @@ export default {
...
@@ -442,7 +445,7 @@ export default {
} else {
} else {
hlsPopup.showLongCenter(res.info.msg)
hlsPopup.showLongCenter(res.info.msg)
return null
return null
}
}
*/
},
},
// 人脸比对
// 人脸比对
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
{
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
{
...
@@ -461,7 +464,8 @@ export default {
...
@@ -461,7 +464,8 @@ export default {
title
:
'提示'
,
title
:
'提示'
,
content
:
`识别分数为
${
identifyScore
}
`
,
content
:
`识别分数为
${
identifyScore
}
`
,
onConfirm
:
()
=>
{
onConfirm
:
()
=>
{
this
.
doConfirm
(
status
)
alert
(
`识别分数为
${
identifyScore
}
`
)
//this.doConfirm(status)
},
},
})
})
}
}
...
@@ -482,7 +486,7 @@ export default {
...
@@ -482,7 +486,7 @@ export default {
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsHttp
.
post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
)
{
vm
.
hlsPopup
.
showSuccess
(
`审批成功,已
${
val
}
`
)
vm
.
hlsPopup
.
showSuccess
(
'审批成功'
)
vm
.
$router
.
push
({
vm
.
$router
.
push
({
name
:
'ContractSigning'
,
name
:
'ContractSigning'
,
})
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment