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
7c93d14b
Commit
7c93d14b
authored
Oct 17, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'身份证上传'
parent
17102c61
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
9 deletions
+17
-9
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+8
-7
enterprise.vue
src/pages/userBind/org/enterprise.vue
+2
-0
hlsUtil.js
src/scripts/hlsUtil.js
+7
-2
No files found.
src/pages/userBind/np/naturePerson.vue
View file @
7c93d14b
...
...
@@ -447,9 +447,7 @@ export default {
hlsPopup
.
showLoading
(
'请稍候'
)
vm
.
$post
(
url
,
param
).
then
(
function
(
res
)
{
vm
.
hlsPopup
.
hideLoading
()
console
.
log
(
'%%%%%%%%%%%%'
+
res
)
if
(
res
.
result
===
'S'
)
{
console
.
log
(
'**********'
+
res
.
lists
)
}
else
{
hlsPopup
.
showLongCenter
(
res
.
message
)
}
...
...
@@ -498,13 +496,14 @@ export default {
var
list
=
[]
for
(
let
i
=
0
;
i
<
vm
.
idCardImgList
.
length
;
i
++
)
{
let
obj
=
{
'pkvalue'
:
vm
.
idCard
ImgList
[
0
].
c
heck_id
,
'pkvalue'
:
vm
.
idCard
C
heck_id
,
'source_type'
:
'PRJ_CDD_ITEM_CHECK'
,
'picture'
:
''
,
'check_id'
:
vm
.
idCard
ImgList
[
0
].
c
heck_id
,
'filePath'
:
vm
.
idCardImgList
[
i
],
'check_id'
:
vm
.
idCard
C
heck_id
,
'filePath'
:
vm
.
idCardImgList
[
i
]
.
url
,
'attachment_id'
:
''
,
'user_id'
:
1
,
'fileName'
:
vm
.
idCardImgList
[
i
].
fileName
,
}
list
.
push
(
obj
)
}
...
...
@@ -600,6 +599,7 @@ export default {
'filePath'
:
''
,
'attachment_id'
:
''
,
'user_id'
:
1
,
'fileName'
:
''
,
}
let
cameraoptions
=
{
quality
:
100
,
...
...
@@ -631,6 +631,7 @@ export default {
'filePath'
:
''
,
'attachment_id'
:
''
,
'user_id'
:
1
,
'fileName'
:
''
,
}
obj
.
picture
=
imgUrl
[
i
]
obj
.
filePath
=
imgUrl
[
i
]
...
...
@@ -745,7 +746,7 @@ export default {
}
else
{
if
(
ocrType
===
'idCard'
)
{
vm
.
idCardEditFlag
=
true
// 身份证图片状态已修改
type
===
'front'
?
(
vm
.
idCardFront
=
imgdata
,
vm
.
idCardIdentify
(
imgdata
),
vm
.
idCardImgList
.
push
(
imgdata
))
:
(
vm
.
idCardBack
=
imgdata
,
vm
.
idCardImgList
.
push
(
imgdata
))
type
===
'front'
?
(
vm
.
idCardFront
=
imgdata
,
vm
.
idCardIdentify
(
imgdata
),
vm
.
idCardImgList
.
push
(
{
'url'
:
imgdata
,
'fileName'
:
'front'
}))
:
(
vm
.
idCardBack
=
imgdata
,
vm
.
idCardImgList
.
push
({
'url'
:
imgdata
,
'fileName'
:
'back'
}
))
}
else
if
(
ocrType
===
'bankCard'
)
{
vm
.
bankImg
=
imgdata
vm
.
bankCardIdentify
(
imgdata
)
...
...
@@ -771,7 +772,7 @@ export default {
}
else
{
if
(
ocrType
===
'idCard'
)
{
vm
.
idCardEditFlag
=
true
// 身份证图片状态已修改
type
===
'front'
?
(
vm
.
idCardFront
=
imgUrl
[
0
],
vm
.
idCardIdentify
(
imgUrl
[
0
]),
vm
.
idCardImgList
.
push
(
imgUrl
[
0
]))
:
(
vm
.
idCardBack
=
imgUrl
[
0
],
vm
.
idCardImgList
.
push
(
imgUrl
[
0
]
))
type
===
'front'
?
(
vm
.
idCardFront
=
imgUrl
[
0
],
vm
.
idCardIdentify
(
imgUrl
[
0
]),
vm
.
idCardImgList
.
push
(
{
'url'
:
imgUrl
[
0
],
'fileName'
:
'front'
}))
:
(
vm
.
idCardBack
=
imgUrl
[
0
],
vm
.
idCardImgList
.
push
({
'url'
:
imgUrl
[
0
],
'fileName'
:
'back'
}
))
}
else
if
(
ocrType
===
'bankCard'
)
{
vm
.
bankImg
=
imgUrl
[
0
]
vm
.
bankCardIdentify
(
imgUrl
[
0
])
...
...
src/pages/userBind/org/enterprise.vue
View file @
7c93d14b
...
...
@@ -1306,6 +1306,7 @@ export default {
'filePath'
:
''
,
'attachment_id'
:
''
,
'user_id'
:
1
,
'fileName'
:
''
,
}
let
cameraoptions
=
{
quality
:
100
,
...
...
@@ -1339,6 +1340,7 @@ export default {
'filePath'
:
''
,
'attachment_id'
:
''
,
'user_id'
:
1
,
'fileName'
:
''
,
}
obj
.
picture
=
imgUrl
[
i
]
obj
.
filePath
=
imgUrl
[
i
]
...
...
src/scripts/hlsUtil.js
View file @
7c93d14b
...
...
@@ -372,7 +372,7 @@ export default {
fileUploadSvc
:
function
(
file
,
success
)
{
debugger
let
path
=
file
.
filePath
let
name
=
path
.
substr
(
path
.
lastIndexOf
(
'/'
)
+
1
)
var
name
=
path
.
substr
(
path
.
lastIndexOf
(
'/'
)
+
1
)
let
url
=
encodeURI
(
process
.
env
.
rootPath
+
'/app/fileUploadSvc?sysName=XCMG_DEV&apiName=attachment_upload'
)
let
options
=
new
FileUploadOptions
()
// eslint-disable-line
options
.
fileKey
=
'file'
...
...
@@ -387,7 +387,12 @@ export default {
'access_token'
:
window
.
localStorage
.
access_token
,
'filePath'
:
path
,
}
if
(
file
.
fileName
){
options
.
fileName
=
file
.
fileName
+
name
.
split
(
'.'
)[
1
]
}
else
{
options
.
fileName
=
name
}
options
.
mimeType
=
'multipart/form-date'
let
ft
=
new
FileTransfer
()
// eslint-disable-line
...
...
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