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
c97855ec
Commit
c97855ec
authored
Feb 29, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
32c69236
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
37 additions
and
25 deletions
+37
-25
confirm-detail.vue
src/pages/carConfirm/confirm-detail.vue
+12
-8
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+12
-8
contract-details.vue
src/pages/distributorSign/contract-details.vue
+12
-8
hlsPopup.js
src/scripts/hlsPopup.js
+1
-1
No files found.
src/pages/carConfirm/confirm-detail.vue
View file @
c97855ec
...
@@ -442,17 +442,21 @@ export default {
...
@@ -442,17 +442,21 @@ export default {
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/face'
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/face'
hlsUtil
.
baiduOcrFace
(
obj
,
url
,
function
(
res
)
{
hlsUtil
.
baiduOcrFace
(
obj
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
hlsPopup
.
hideLoading
()
if
(
res
.
success
)
{
if
(
res
.
success
&&
res
.
result
.
result
.
score
)
{
vm
.
save_picture
(
vm
.
faceListUpload
)
vm
.
save_picture
(
vm
.
faceListUpload
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
hlsPopup
.
showPopup
({
if
(
identifyScore
>=
50
)
{
title
:
'提示'
,
hlsPopup
.
showPopup
({
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
title
:
'提示'
,
onConfirm
:
()
=>
{
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
onConfirm
:
()
=>
{
// 进入活体检测页面
// 进入活体检测页面
vm
.
goBodyCheck
(
vm
.
confirm_id
)
vm
.
goBodyCheck
(
vm
.
confirm_id
)
},
},
})
})
}
else
{
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
}
...
...
src/pages/contractSigning/contract-detail.vue
View file @
c97855ec
...
@@ -701,17 +701,21 @@ export default {
...
@@ -701,17 +701,21 @@ export default {
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/face'
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/face'
hlsUtil
.
baiduOcrFace
(
obj
,
url
,
function
(
res
)
{
hlsUtil
.
baiduOcrFace
(
obj
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
hlsPopup
.
hideLoading
()
if
(
res
.
success
)
{
if
(
res
.
success
&&
res
.
result
.
result
.
score
)
{
vm
.
save_picture
(
vm
.
faceListUpload
)
vm
.
save_picture
(
vm
.
faceListUpload
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
hlsPopup
.
showPopup
({
if
(
identifyScore
>
50
)
{
title
:
'提示'
,
hlsPopup
.
showPopup
({
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
title
:
'提示'
,
onConfirm
:
()
=>
{
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
onConfirm
:
()
=>
{
// 进入活体检测页面
// 进入活体检测页面
vm
.
goBodyCheck
(
vm
.
confirm_id
)
vm
.
goBodyCheck
(
vm
.
confirm_id
)
},
},
})
})
}
else
{
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
}
else
{
}
else
{
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
}
...
...
src/pages/distributorSign/contract-details.vue
View file @
c97855ec
...
@@ -519,17 +519,21 @@ export default {
...
@@ -519,17 +519,21 @@ export default {
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/face'
let
url
=
process
.
env
.
ocrPath
+
'/baidu/ocr/face'
vm
.
hlsUtil
.
baiduOcrFace
(
obj
,
url
,
function
(
res
)
{
vm
.
hlsUtil
.
baiduOcrFace
(
obj
,
url
,
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
vm
.
hlsPopup
.
hideLoading
()
if
(
res
.
success
)
{
if
(
res
.
success
&&
res
.
result
.
result
.
score
)
{
vm
.
save_picture
(
vm
.
faceListUpload
)
vm
.
save_picture
(
vm
.
faceListUpload
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
vm
.
hlsPopup
.
showPopup
({
if
(
identifyScore
>=
50
)
{
title
:
'提示'
,
vm
.
hlsPopup
.
showPopup
({
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
title
:
'提示'
,
onConfirm
:
()
=>
{
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
onConfirm
:
()
=>
{
// 进入活体检测页面
// 进入活体检测页面
vm
.
goBodyCheck
()
vm
.
goBodyCheck
()
},
},
})
})
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
}
else
{
}
else
{
vm
.
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
vm
.
hlsPopup
.
showLongCenter
(
'比对失败,请保证和绑定时是同一个人'
)
}
}
...
...
src/scripts/hlsPopup.js
View file @
c97855ec
...
@@ -59,7 +59,7 @@ export default {
...
@@ -59,7 +59,7 @@ export default {
position: 'middle',
position: 'middle',
}) */
}) */
}
}
},
6
0000
)
},
12
0000
)
},
},
/**
/**
* 隐藏
* 隐藏
...
...
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