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
8255f21b
Commit
8255f21b
authored
Nov 14, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'测试附件'
parent
b559421d
Pipeline
#2905
canceled with stages
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
8 deletions
+11
-8
contract-detail.vue
src/pages/contractSigning/contract-detail.vue
+6
-3
contract-details.vue
src/pages/distributorSign/contract-details.vue
+5
-3
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+0
-1
hlsUtil.js
src/scripts/hlsUtil.js
+0
-1
No files found.
src/pages/contractSigning/contract-detail.vue
View file @
8255f21b
...
...
@@ -423,11 +423,14 @@ export default {
hlsPopup
.
showLongCenter
(
'请拍照'
)
}
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
// this.confirmContractSign('', status)
},
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
async
confirmContractSign
(
faceImg
,
status
)
{
let
idCardImgUrl
=
await
this
.
idCardImgUrlGet
()
this
.
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
if
(
idCardImgUrl
){
this
.
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
}
},
// 获取身份证照片
async
idCardImgUrlGet
()
{
...
...
@@ -439,10 +442,10 @@ export default {
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
&&
res
.
info
)
{
let
cardUrl
=
process
.
env
.
filePath
+
'attachment_id='
+
res
.
info
.
attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
return
cardUrl
}
else
if
(
res
.
result
===
'S'
&&
!
res
.
info
.
attachment_id
){
}
else
if
(
res
.
result
===
'S'
&&
!
res
.
info
){
hlsPopup
.
showLongCenter
(
'未找到身份证照片'
)
return
null
}
else
{
...
...
src/pages/distributorSign/contract-details.vue
View file @
8255f21b
...
...
@@ -316,7 +316,9 @@ export default {
// 执行同意的逻辑(查询对应的身份证正面图片->人脸识别->确认签约)
async
confirmContractSign
(
faceImg
,
status
)
{
let
idCardImgUrl
=
await
this
.
idCardImgUrlGet
()
this
.
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
if
(
idCardImgUrl
){
this
.
faceIdentify
(
faceImg
,
idCardImgUrl
,
status
)
}
},
// 获取身份证照片
async
idCardImgUrlGet
()
{
...
...
@@ -328,10 +330,10 @@ export default {
hlsPopup
.
showLoading
(
'请稍候'
)
let
res
=
await
vm
.
$post
(
url
,
param
)
hlsPopup
.
hideLoading
()
if
(
res
.
result
===
'S'
)
{
if
(
res
.
result
===
'S'
&&
res
.
info
)
{
let
cardUrl
=
process
.
env
.
filePath
+
'attachment_id='
+
res
.
info
.
attachment_id
+
'&access_token='
+
window
.
localStorage
.
access_token
return
cardUrl
}
else
if
(
res
.
result
===
'S'
&&
!
res
.
info
.
attachment_id
)
{
}
else
if
(
res
.
result
===
'S'
&&
!
res
.
info
)
{
hlsPopup
.
showLongCenter
(
'未找到身份证照片'
)
return
null
}
else
{
...
...
src/pages/userBind/np/naturePerson.vue
View file @
8255f21b
...
...
@@ -880,7 +880,6 @@ export default {
},
// 图片保存
save_picture
(
list
)
{
alert
(
JSON
.
stringify
(
list
))
let
vm
=
this
if
(
list
.
length
)
{
// hlsPopup.showLoading('图片上传请稍候')
...
...
src/scripts/hlsUtil.js
View file @
8255f21b
...
...
@@ -395,7 +395,6 @@ export default {
}
options
.
mimeType
=
'multipart/form-date'
let
ft
=
new
FileTransfer
()
// eslint-disable-line
alert
(
'options.fileName '
+
options
.
fileName
)
function
uploadSuccess
(
result
)
{
success
(
JSON
.
parse
(
result
.
response
))
}
...
...
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