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
8078359a
Commit
8078359a
authored
Oct 23, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'合同签约银行卡识别'
parent
86606b37
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
292 additions
and
296 deletions
+292
-296
entry-info.vue
src/pages/contractSigning/entry-info.vue
+292
-296
No files found.
src/pages/contractSigning/entry-info.vue
View file @
8078359a
...
...
@@ -19,10 +19,10 @@
<div
class=
"info-header"
>
<p>
请上传银行卡照片
</p>
<div
v-if=
"!bankImg"
class=
"bank-pic"
>
<img
src=
"@/assets/constractSigning/bank.png"
alt=
""
@
click=
"ocrShow(
'bankCard', '')"
>
<img
src=
"@/assets/constractSigning/bank.png"
alt=
""
@
click=
"ocrShow(
)"
>
</div>
<div
v-if=
"bankImg"
class=
"bank-pic2"
>
<img
:src=
"bankImg"
alt=
""
@
click=
"ocrShow(
'bankCard', '')"
>
<img
:src=
"bankImg"
alt=
""
@
click=
"ocrShow(
)"
>
</div>
</div>
<list-item
:item-height=
"44"
class=
"info-center"
>
...
...
@@ -100,21 +100,21 @@ export default {
},
methods
:
{
// ocr识别入口
ocrShow
(
ocrType
,
type
)
{
ocrShow
(
)
{
let
vm
=
this
hlsPopup
.
showActionSheet
({
titleText
:
'请选择照片'
,
buttonArray
:
[
'拍照'
,
'从相册取'
],
callback
:
index
=>
{
if
(
index
===
0
)
{
vm
.
openCamera
(
ocrType
,
type
)
vm
.
openCamera
(
)
}
else
{
vm
.
takePicture
(
ocrType
,
type
)
vm
.
takePicture
(
)
}
},
})
},
openCamera
(
ocrType
,
type
)
{
openCamera
(
)
{
let
vm
=
this
let
cameraoptions
=
{
quality
:
60
,
...
...
@@ -125,18 +125,16 @@ export default {
if
(
!
imgdata
)
{
hlsPopup
.
showLongCenter
(
'请拍照'
)
}
else
{
if
(
ocrType
===
'bankCard'
)
{
vm
.
bankImg
=
imgdata
vm
.
bankCardIdentify
(
imgdata
)
}
}
}
let
error
=
function
()
{
hlsPopup
.
showLongCenter
(
error
)
}
hlsUtil
.
openCamera
(
cameraoptions
,
success
,
error
)
},
takePicture
(
ocrType
,
type
)
{
takePicture
(
)
{
let
vm
=
this
var
cameraoptions
=
{
quality
:
70
,
...
...
@@ -148,12 +146,10 @@ export default {
if
(
imgUrl
.
length
===
0
)
{
hlsPopup
.
showLongCenter
(
'请选择一张图片'
)
}
else
{
if
(
ocrType
===
'bankCard'
)
{
vm
.
bankImg
=
imgUrl
[
0
]
vm
.
bankCardIdentify
(
imgUrl
[
0
])
}
}
}
let
error
=
function
()
{
hlsPopup
.
showLongCenter
(
error
)
}
...
...
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