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
483005f8
Commit
483005f8
authored
Oct 15, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
''
parent
07bb27b8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+5
-10
enterprise.vue
src/pages/userBind/org/enterprise.vue
+1
-4
No files found.
src/pages/userBind/np/naturePerson.vue
View file @
483005f8
...
...
@@ -406,7 +406,7 @@ export default {
}
},
beforeRouteEnter
(
to
,
from
,
next
)
{
if
(
from
.
fullPath
===
'/tab/my-info'
)
{
if
(
from
.
fullPath
===
'/tab/my-info'
)
{
// 绑定查询入口
next
(
vm
=>
{
vm
.
basicInfoQuery
()
vm
.
from
=
true
...
...
@@ -501,7 +501,7 @@ export default {
return
bpId
}
},
uploadIdCardFront
()
{
/*
uploadIdCardFront () {
let vm = this
let url = process.env.basePath + 'attachment_upload'
let param = {
...
...
@@ -516,7 +516,7 @@ export default {
console.log(res.response.attachment_id)
}
})
},
},
*/
ocrShow
(
ocrType
,
type
)
{
let
vm
=
this
hlsPopup
.
showActionSheet
({
...
...
@@ -540,9 +540,7 @@ export default {
}
let
success
=
function
(
imgdata
)
{
if
(
ocrType
===
'idCard'
)
{
type
===
'front'
?
(
vm
.
idCardFront
=
imgdata
)
:
(
vm
.
idCardBack
=
imgdata
)
type
===
'front'
?
(
vm
.
idCardFront
=
imgdata
)
:
(
vm
.
idCardBack
=
imgdata
)
vm
.
idCardIdentify
(
imgdata
)
}
else
if
(
ocrType
===
'bankCard'
)
{
vm
.
bankImg
=
imgdata
...
...
@@ -564,10 +562,7 @@ export default {
}
let
success
=
function
(
imgUrl
)
{
if
(
ocrType
===
'idCard'
)
{
type
===
'front'
?
(
vm
.
idCardFront
=
imgUrl
[
0
])
:
(
vm
.
idCardBack
=
imgUrl
[
0
])
vm
.
idCardIdentify
(
imgUrl
[
0
])
type
===
'front'
?
(
vm
.
idCardFront
=
imgUrl
[
0
],
vm
.
idCardIdentify
(
imgUrl
[
0
]))
:
(
vm
.
idCardBack
=
imgUrl
[
0
])
}
else
if
(
ocrType
===
'bankCard'
)
{
vm
.
bankImg
=
imgUrl
[
0
]
vm
.
bankCardIdentify
(
imgUrl
[
0
])
...
...
src/pages/userBind/org/enterprise.vue
View file @
483005f8
...
...
@@ -1134,10 +1134,7 @@ export default {
}
let
success
=
function
(
imgdata
)
{
if
(
ocrType
===
'idCard'
)
{
type
===
'front'
?
(
vm
.
idCardFront
=
imgdata
)
:
(
vm
.
idCardBack
=
imgdata
)
vm
.
idCardIdentify
(
imgdata
)
type
===
'front'
?
(
vm
.
idCardFront
=
imgdata
,
vm
.
idCardIdentify
(
imgdata
))
:
(
vm
.
idCardBack
=
imgdata
)
}
else
if
(
ocrType
===
'bankCard'
)
{
vm
.
bankImg
=
imgdata
vm
.
bankCardIdentify
(
imgdata
)
...
...
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