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
4e8b3c2a
Commit
4e8b3c2a
authored
Dec 23, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'经销商签约认证'
parent
9144b8e5
Pipeline
#4283
canceled with stages
Changes
3
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
51 additions
and
38 deletions
+51
-38
contract-details.vue
src/pages/distributorSign/contract-details.vue
+49
-37
contract-list.vue
src/pages/distributorSign/contract-list.vue
+1
-0
index.html
www/index.html
+1
-1
No files found.
src/pages/distributorSign/contract-details.vue
View file @
4e8b3c2a
...
@@ -167,19 +167,12 @@
...
@@ -167,19 +167,12 @@
</list-item>
</list-item>
</h-content>
</h-content>
<bottom-tab
v-
show=
"confirm_status!=='APPROVED'&&tabNum === 0"
class=
"footer-button
"
>
<bottom-tab
v-
if=
"confirm_status!=='APPROVED'"
class=
"add-box
"
>
<tab-button
class=
"
approve"
@
click
.
native=
"goBodyCheck
"
>
<tab-button
class=
"
before"
@
click
.
native=
"takePhonto
"
>
活体检测
<img
src=
"@/assets/constractSigning/certification.png"
>
认证
</tab-button>
</tab-button>
</bottom-tab>
<tab-button
class=
"next"
@
click
.
native=
"contractConfirm()"
>
<bottom-tab
v-show=
"confirm_status!=='APPROVED'&&tabNum === 0"
class=
"footer-button"
>
<img
src=
"@/assets/intoApproval/approve.png"
>
确认签约
<tab-button
class=
"approve"
@
click
.
native=
"goElectronicSign"
>
电子签
</tab-button>
</bottom-tab>
<bottom-tab
v-if=
"confirm_status!=='APPROVED'"
class=
"footer-button"
>
<tab-button
class=
"approve"
@
click
.
native=
"contractConfirm('APPROVED')"
>
确认签约
</tab-button>
</tab-button>
</bottom-tab>
</bottom-tab>
</h-view>
</h-view>
...
@@ -260,12 +253,16 @@ export default {
...
@@ -260,12 +253,16 @@ export default {
created
()
{},
created
()
{},
methods
:
methods
:
{
{
goBodyCheck
()
{
// 活体检测
goBodyCheck
(
confirm_id
)
{
// 活体检测
this
.
$router
.
push
({
this
.
$router
.
push
({
name
:
'BodyCheck'
,
name
:
'BodyCheck'
,
params
:
{
check_id
:
this
.
$route
.
params
.
check_id
,
confirm_id
:
confirm_id
,
},
})
})
},
},
goElectronicSign
()
{
// 电子签
/*
goElectronicSign () { // 电子签
let vm = this
let vm = this
let url = process.env.basePath + 'get_sign_url'
let url = process.env.basePath + 'get_sign_url'
let param = {
let param = {
...
@@ -286,40 +283,39 @@ export default {
...
@@ -286,40 +283,39 @@ export default {
vm.hlsPopup.showLongCenter(res.info.msg)
vm.hlsPopup.showLongCenter(res.info.msg)
}
}
})
})
},
},
*/
// 签约确认
// 签约确认
contractConfirm
(
status
)
{
contractConfirm
()
{
let
vm
=
this
let
vm
=
this
this
.
hlsPopup
.
showConfirm
({
this
.
hlsPopup
.
showConfirm
({
title
:
'提示'
,
title
:
'提示'
,
content
:
'您确认签约吗?'
,
content
:
'您确认签约吗?'
,
onConfirm
:
(
data
)
=>
{
onConfirm
:
(
data
)
=>
{
if
(
data
)
{
if
(
data
)
{
// this.issure('APPROVED')
vm
.
issure
(
'APPROVED'
)
vm
.
takePhonto
(
status
)
}
}
},
},
})
})
},
},
takePhonto
(
status
)
{
takePhonto
()
{
let
vm
=
this
let
vm
=
this
hlsPopup
.
showPopup
({
hlsPopup
.
showPopup
({
title
:
'提示'
,
title
:
'提示'
,
content
:
`请自拍一张`
,
content
:
`请自拍一张`
,
onConfirm
:
()
=>
{
onConfirm
:
()
=>
{
vm
.
takePhontoOpenCamera
(
status
)
vm
.
takePhontoOpenCamera
()
},
},
})
})
},
},
// 打开相机自拍
// 打开相机自拍
takePhontoOpenCamera
(
status
)
{
takePhontoOpenCamera
()
{
let
vm
=
this
let
vm
=
this
vm
.
faceListUpload
=
[]
vm
.
faceListUpload
=
[]
let
obj
=
{
let
obj
=
{
'pkvalue'
:
vm
.
confirm
_id
,
'pkvalue'
:
vm
.
$route
.
params
.
check
_id
,
'source_type'
:
'PRJ_
PROJECT_BP_CONFIRM
'
,
'source_type'
:
'PRJ_
CDD_ITEM_CHECK
'
,
'picture'
:
''
,
'picture'
:
''
,
'filePath'
:
''
,
'filePath'
:
''
,
'attachment_id'
:
''
,
'attachment_id'
:
''
,
...
@@ -333,7 +329,7 @@ export default {
...
@@ -333,7 +329,7 @@ export default {
let
success
=
function
(
imgdata
)
{
let
success
=
function
(
imgdata
)
{
obj
.
filePath
=
imgdata
obj
.
filePath
=
imgdata
// obj.filePath = 'http://hlsapp.hand-china.com/file/XCMG/2.jpg'
// obj.filePath = 'http://hlsapp.hand-china.com/file/XCMG/2.jpg'
vm
.
confirmContractSign
(
imgdata
,
status
)
vm
.
confirmContractSign
(
imgdata
)
vm
.
faceListUpload
.
push
(
obj
)
vm
.
faceListUpload
.
push
(
obj
)
}
}
let
error
=
function
()
{
let
error
=
function
()
{
...
@@ -342,10 +338,10 @@ export default {
...
@@ -342,10 +338,10 @@ export default {
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
},
},
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
async
confirmContractSign
(
faceImg
,
status
)
{
async
confirmContractSign
(
faceImg
)
{
let
idCardImgUrl
=
await
this
.
idCardImgUrlGet
()
let
idCardImgUrl
=
await
this
.
idCardImgUrlGet
()
if
(
idCardImgUrl
)
{
if
(
idCardImgUrl
)
{
this
.
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
this
.
faceIdentify
(
faceImg
,
idCardImgUrl
)
}
}
},
},
// 获取身份证照片
// 获取身份证照片
...
@@ -370,7 +366,7 @@ export default {
...
@@ -370,7 +366,7 @@ export default {
}
}
},
},
// 人脸比对
// 人脸比对
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
{
faceIdentify
(
faceImg
,
idCardImgUrl
)
{
let
vm
=
this
let
vm
=
this
let
obj
=
{
let
obj
=
{
'fileUrl'
:
faceImg
,
'fileUrl'
:
faceImg
,
...
@@ -381,16 +377,14 @@ export default {
...
@@ -381,16 +377,14 @@ export default {
hlsUtil
.
baiduOcrFace
(
obj
,
url
,
function
(
res
)
{
hlsUtil
.
baiduOcrFace
(
obj
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
hlsPopup
.
hideLoading
()
if
(
res
.
success
)
{
if
(
res
.
success
)
{
vm
.
save_picture
(
vm
.
faceListUpload
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
let
identifyScore
=
res
.
result
.
result
.
score
.
toFixed
(
0
)
hlsPopup
.
show
Confirm
({
hlsPopup
.
show
Popup
({
title
:
'提示'
,
title
:
'提示'
,
content
:
`识别分数为
${
identifyScore
}
`
,
content
:
`识别分数为
${
identifyScore
}
,请进行活体检测`
,
onConfirm
:
(
data
)
=>
{
onConfirm
:
()
=>
{
if
(
data
)
{
// 进入活体检测页面
vm
.
issure
(
status
)
vm
.
goBodyCheck
(
vm
.
confirm_id
)
}
else
{
}
},
},
})
})
}
else
{
}
else
{
...
@@ -425,7 +419,7 @@ export default {
...
@@ -425,7 +419,7 @@ export default {
},
},
// 图片保存
// 图片保存
save_picture
(
list
)
{
save_picture
(
list
)
{
alert
(
'list'
+
JSON
.
stringify
(
list
))
//
alert('list' + JSON.stringify(list))
let
vm
=
this
let
vm
=
this
if
(
list
.
length
)
{
if
(
list
.
length
)
{
// hlsPopup.showLoading('图片上传请稍候')
// hlsPopup.showLoading('图片上传请稍候')
...
@@ -446,7 +440,7 @@ export default {
...
@@ -446,7 +440,7 @@ export default {
if
(
list
[
j
].
filePath
===
res
.
response
.
filePath
)
{
if
(
list
[
j
].
filePath
===
res
.
response
.
filePath
)
{
list
[
j
].
attachment_id
=
res
.
response
.
attachment_id
list
[
j
].
attachment_id
=
res
.
response
.
attachment_id
vm
.
faceListUpload
.
push
(
list
[
j
])
vm
.
faceListUpload
.
push
(
list
[
j
])
alert
(
'faceListUpload'
+
JSON
.
stringify
(
vm
.
faceListUpload
))
//
alert('faceListUpload' + JSON.stringify(vm.faceListUpload))
break
break
}
}
}
}
...
@@ -890,6 +884,24 @@ export default {
...
@@ -890,6 +884,24 @@ export default {
background: #00469c;
background: #00469c;
border: 1px solid #00469c;
border: 1px solid #00469c;
}
}
.add-box {
.before {
border: 1px solid #fdb62f;
border-radius: 4px;
color: #fdb62f;
img{
width: 18px;
}
}
.next {
background: #1d3fff;
border-radius: 4px;
color: #fff;
img{
width: 18px;
}
}
}
}
}
.modal {
.modal {
background-color: rgba(0, 0, 0, 0) !important;
background-color: rgba(0, 0, 0, 0) !important;
...
...
src/pages/distributorSign/contract-list.vue
View file @
4e8b3c2a
...
@@ -313,6 +313,7 @@ export default {
...
@@ -313,6 +313,7 @@ export default {
name
:
'ContractDetails'
,
name
:
'ContractDetails'
,
params
:
{
params
:
{
item
:
item
,
item
:
item
,
check_id
:
item
.
check_id
,
},
},
})
})
},
},
...
...
www/index.html
View file @
4e8b3c2a
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"
></script><title>
徐工融租
</title><link
href=
./static/css/app.9fbb65bffac9a40fa256e66161900a01.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.3ad1d5771e9b13dbdad2.js
></script><script
type=
text/javascript
src=
./static/js/vendor.efd596b798e6119ce4a4.js
></script><script
type=
text/javascript
src=
./static/js/app.1749810cee9a3df49278.js
></script></body></html>
<!DOCTYPE html>
<html><head><meta
charset=
utf-8
><meta
name=
viewport
content=
"initial-scale=1,maximum-scale=1,minimum-scale=1,user-scalable=no,width=device-width,viewport-fit=cover"
><meta
name=
format-detection
content=
"telephone=no"
><meta
name=
format-detection
content=
"email=no"
><meta
name=
apple-mobile-web-app-capable
content=
yes
><meta
name=
apple-mobile-web-app-status-bar-style
content=
black
><script
type=
text/javascript
src=
./static/vuePlatform.js
></script><script
type=
text/javascript
src=
./static/prototype.js
></script><script
type=
text/javascript
src=
cordova.js
></script><script
type=
text/javascript
src=
"http://api.map.baidu.com/api?v=2.0&ak=o7fTnpVAGzXKN7SirV8xGU2xzWQS2NrI"
></script><title>
徐工融租
</title><link
href=
./static/css/app.c3b86c4dda542a57614e92689a640abf.css
rel=
stylesheet
></head><body><div
id=
app-box
></div><script
type=
text/javascript
src=
./static/js/manifest.3ad1d5771e9b13dbdad2.js
></script><script
type=
text/javascript
src=
./static/js/vendor.e547499500fbe65e7169.js
></script><script
type=
text/javascript
src=
./static/js/app.e1df2f9bad0382c6b3b4.js
></script></body></html>
\ No newline at end of file
\ No newline at end of file
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