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
d7aa4307
Commit
d7aa4307
authored
Mar 17, 2020
by
linxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
e875975d
Pipeline
#5212
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
4 deletions
+24
-4
base-info.vue
src/pages/userBindNew/np/base-info.vue
+24
-4
No files found.
src/pages/userBindNew/np/base-info.vue
View file @
d7aa4307
...
...
@@ -336,6 +336,10 @@ export default {
data
()
{
return
{
list
:
{},
idCardFrontUpload
:
''
,
idCardBackUpload
:
''
,
idCardFrontSpUpload
:
''
,
idCardBackSptSpUpload
:
''
,
isAddNewType
:
false
,
hasSP
:
false
,
isPaople
:
false
,
...
...
@@ -525,6 +529,10 @@ export default {
vm
.
idCardBackSp
=
''
// 配偶身份证反面图片
vm
.
searchPeople
=
false
vm
.
searchLecens
=
false
vm
.
idCardFrontUpload
=
''
vm
.
idCardBackUpload
=
''
vm
.
idCardFrontSpUpload
=
''
vm
.
idCardBackSptSpUpload
=
''
vm
.
idCardFrontUrlFlag
=
false
// 身份证正面图片查看标识,为false则用查询出来的,为true则用拍照出来的
vm
.
idCardBackUrlFlag
=
false
// 身份证反面图片,为false则用查询出来的,为true则用拍照出来的
vm
.
idCardFrontSpUrlFlag
=
false
// 配偶身份证正面图片,为false则用查询出来的,为true则用拍照出来的
...
...
@@ -594,6 +602,10 @@ export default {
address_sp
:
''
,
user_phone
:
window
.
localStorage
.
user_phone
,
}
vm
.
idCardFrontUpload
=
''
vm
.
idCardBackUpload
=
''
vm
.
idCardFrontSpUpload
=
''
vm
.
idCardBackSptSpUpload
=
''
vm
.
idCardFront
=
''
// 身份证正面图片
vm
.
idCardBack
=
''
// 身份证反面图片
vm
.
idCardFrontSp
=
''
// 配偶身份证正面图片
...
...
@@ -809,7 +821,7 @@ export default {
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
idCardFrontCheck_id
,
filePath
:
vm
.
idCardFront
,
filePath
:
vm
.
idCardFront
Upload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'自然人身份证正面'
,
...
...
@@ -828,7 +840,7 @@ export default {
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
idCardBackCheck_id
,
filePath
:
vm
.
idCardBack
,
filePath
:
vm
.
idCardBack
Upload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'自然人身份证背面'
,
...
...
@@ -847,7 +859,7 @@ export default {
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
idCardFrontSpCheck_id
,
filePath
:
vm
.
idCardFrontSp
,
filePath
:
vm
.
idCardFrontSp
Upload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'配偶身份证正面'
,
...
...
@@ -866,7 +878,7 @@ export default {
source_type
:
'PRJ_CDD_ITEM_CHECK'
,
picture
:
''
,
check_id
:
vm
.
idCardBackSpCheck_id
,
filePath
:
vm
.
idCardBackSp
,
filePath
:
vm
.
idCardBackSp
tSpUpload
,
attachment_id
:
''
,
user_id
:
1
,
fileName
:
'配偶身份证背面'
,
...
...
@@ -1258,18 +1270,22 @@ export default {
type
===
'front'
?
((
vm
.
idCardFront
=
hlsUtil
.
convertImageUrl
(
imgdata
)),
vm
.
idCardIdentify
(
imgdata
,
'idCard'
),
(
vm
.
idCardFrontUpload
=
imgdata
),
(
vm
.
idCardFrontEditFlag
=
true
))
:
((
vm
.
idCardBack
=
hlsUtil
.
convertImageUrl
(
imgdata
)),
vm
.
idCardBackIdentify
(
imgdata
,
'idCard'
),
(
vm
.
idCardBackUpload
=
imgdata
),
(
vm
.
idCardBackEditFlag
=
true
))
}
else
if
(
ocrType
===
'idCardSp'
)
{
// 配偶身份证识别
type
===
'front'
?
((
vm
.
idCardFrontSp
=
hlsUtil
.
convertImageUrl
(
imgdata
)),
vm
.
idCardIdentify
(
imgdata
,
'idCardSp'
),
(
vm
.
idCardFrontSpUpload
=
imgdata
),
(
vm
.
idCardFrontSpEditFlag
=
true
))
:
((
vm
.
idCardBackSp
=
hlsUtil
.
convertImageUrl
(
imgdata
)),
vm
.
idCardBackIdentify
(
imgdata
,
'idCardSp'
),
(
vm
.
idCardBackSptSpUpload
=
imgdata
),
(
vm
.
idCardBackSpEditFlag
=
true
))
}
else
if
(
ocrType
===
'bankCard'
)
{
vm
.
bankImg
=
hlsUtil
.
convertImageUrl
(
imgdata
)
...
...
@@ -1298,18 +1314,22 @@ export default {
type
===
'front'
?
((
vm
.
idCardFront
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])),
vm
.
idCardIdentify
(
imgUrl
[
0
],
'idCard'
),
(
vm
.
idCardFrontUpload
=
imgdata
),
(
vm
.
idCardFrontEditFlag
=
true
))
:
((
vm
.
idCardBack
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])),
vm
.
idCardBackIdentify
(
imgUrl
[
0
],
'idCard'
),
(
vm
.
idCardBackUpload
=
imgdata
),
(
vm
.
idCardBackEditFlag
=
true
))
}
else
if
(
ocrType
===
'idCardSp'
)
{
// 配偶身份证识别
type
===
'front'
?
((
vm
.
idCardFrontSp
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])),
vm
.
idCardIdentify
(
imgUrl
[
0
],
'idCardSp'
),
(
vm
.
idCardFrontSpUpload
=
imgdata
),
(
vm
.
idCardFrontSpEditFlag
=
true
))
:
((
vm
.
idCardBackSp
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])),
vm
.
idCardBackIdentify
(
imgUrl
[
0
],
'idCardSp'
),
(
vm
.
idCardBackSptSpUpload
=
imgdata
),
(
vm
.
idCardBackSpEditFlag
=
true
))
}
else
if
(
ocrType
===
'bankCard'
)
{
vm
.
bankImg
=
hlsUtil
.
convertImageUrl
(
imgUrl
[
0
])
...
...
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