Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
rebort-h5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
rebort-h5
Commits
c75f20eb
Commit
c75f20eb
authored
Jun 25, 2024
by
周亚武
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
身份证读取
parent
e41d95e9
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
10 deletions
+32
-10
.idea/robot_h5.iml
.idea/robot_h5.iml
+4
-1
public/index.html
public/index.html
+3
-3
src/views/Apply/fillScanMaterial.vue
src/views/Apply/fillScanMaterial.vue
+25
-6
No files found.
.idea/robot_h5.iml
View file @
c75f20eb
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<module
type=
"WEB_MODULE"
version=
"4"
>
<module
type=
"WEB_MODULE"
version=
"4"
>
<component
name=
"NewModuleRootManager"
>
<component
name=
"NewModuleRootManager"
inherit-compiler-output=
"true"
>
<exclude-output
/>
<content
url=
"file://$MODULE_DIR$"
>
<content
url=
"file://$MODULE_DIR$"
>
<excludeFolder
url=
"file://$MODULE_DIR$/temp"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/temp"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/.tmp"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/.tmp"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/tmp"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/tmp"
/>
<excludeFolder
url=
"file://$MODULE_DIR$/node_modules"
/>
</content>
</content>
<content
url=
"file://$MODULE_DIR$/node_modules"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"inheritedJdk"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
<orderEntry
type=
"sourceFolder"
forTests=
"false"
/>
</component>
</component>
...
...
public/index.html
View file @
c75f20eb
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
</head>
</head>
<body>
<body>
<script>
<script>
robotType
=
fals
e
;
//机器人硬件调用开关 true打开 false关闭
robotType
=
tru
e
;
//机器人硬件调用开关 true打开 false关闭
window
.
config
=
{
window
.
config
=
{
isUpRocrUrl
:
true
,
//是否更新ocrUrl true=更新 false=不更新
isUpRocrUrl
:
true
,
//是否更新ocrUrl true=更新 false=不更新
...
@@ -40,9 +40,9 @@
...
@@ -40,9 +40,9 @@
//测试环境
//测试环境
api
:
'
https://api.egovrobot.com/
'
,
api
:
'
https://api.egovrobot.com/
'
,
rocrUrl
:
"
http
://192.168.2.180:8099
/
"
,
rocrUrl
:
"
http
s://rocr.egovrobot.com
/
"
,
webSocketUrl
:
"
wss://api.egovrobot.com/websocket/
"
,
webSocketUrl
:
"
wss://api.egovrobot.com/websocket/
"
,
aiCaseUrl
:
"
http://192.168.0.
250
:8099/
"
aiCaseUrl
:
"
http://192.168.0.
173
:8099/
"
};
};
</script>
</script>
...
...
src/views/Apply/fillScanMaterial.vue
View file @
c75f20eb
...
@@ -115,6 +115,9 @@ export default{
...
@@ -115,6 +115,9 @@ export default{
callback
:
"
HighCameraCallback
"
callback
:
"
HighCameraCallback
"
},
},
count
:
0
,
count
:
0
,
personName
:
''
,
sex
:
''
,
idcardNum
:
''
,
}
}
},
},
created
()
{
created
()
{
...
@@ -140,12 +143,9 @@ export default{
...
@@ -140,12 +143,9 @@ export default{
this
.
imgFrames
.
push
({
'
imgSrc
'
:
require
(
'
../../assets/images/filebox.png
'
)});
this
.
imgFrames
.
push
({
'
imgSrc
'
:
require
(
'
../../assets/images/filebox.png
'
)});
this
.
imgFrames
.
push
({
'
imgSrc
'
:
require
(
'
../../assets/images/filebox.png
'
)});
this
.
imgFrames
.
push
({
'
imgSrc
'
:
require
(
'
../../assets/images/filebox.png
'
)});
this
.
imgFrames
.
push
({
'
imgSrc
'
:
require
(
'
../../assets/images/filebox.png
'
)});
this
.
imgFrames
.
push
({
'
imgSrc
'
:
require
(
'
../../assets/images/filebox.png
'
)});
}
else
if
(
this
.
formIndex
==
13
||
this
.
formIndex
==
14
||
this
.
formIndex
==
15
){
//只需要扫描身份证
}
else
if
(
this
.
formIndex
==
13
||
this
.
formIndex
==
14
||
this
.
formIndex
==
15
){
this
.
materials
.
push
({
'
name
'
:
'
身份证
'
,
'
fileUrl
'
:
''
,
'
fileId
'
:
''
,
'
type
'
:
''
});
//只需要扫描身份证 关闭高拍仪
this
.
imgDel
.
push
({
'
name
'
:
''
,
'
imgSrc
'
:
require
(
'
../../assets/images/ico/delete.png
'
)});
this
.
isOpenHighCamera
=
false
;
this
.
imgDel
.
push
({
'
name
'
:
''
,
'
imgSrc
'
:
require
(
'
../../assets/images/ico/delete.png
'
)});
this
.
imgFrames
.
push
({
'
imgSrc
'
:
require
(
'
../../assets/images/filebox.png
'
)});
this
.
imgFrames
.
push
({
'
imgSrc
'
:
require
(
'
../../assets/images/filebox.png
'
)});
}
else
{
}
else
{
this
.
materials
.
push
({
'
name
'
:
'
营业执照
'
,
'
fileUrl
'
:
''
,
'
fileId
'
:
''
,
'
type
'
:
''
});
this
.
materials
.
push
({
'
name
'
:
'
营业执照
'
,
'
fileUrl
'
:
''
,
'
fileId
'
:
''
,
'
type
'
:
''
});
this
.
imgDel
.
push
({
'
name
'
:
''
,
'
imgSrc
'
:
require
(
'
../../assets/images/ico/delete.png
'
)});
this
.
imgDel
.
push
({
'
name
'
:
''
,
'
imgSrc
'
:
require
(
'
../../assets/images/ico/delete.png
'
)});
...
@@ -158,9 +158,15 @@ export default{
...
@@ -158,9 +158,15 @@ export default{
this
.
openVoice
();
//语音播放
this
.
openVoice
();
//语音播放
}
}
robotsdk
.
readIDCard
({
remindvoice
:
"
请放置身份证到识别区
"
,
//播放的声音内容
callback
:
"
IDCardCallback
"
//接口回调函数
});
//将方法绑定到window下面,提供给外部调用
//将方法绑定到window下面,提供给外部调用
window
.
PlayAudioCallback
=
(
res
)
=>
this
.
PlayAudioCallback
(
res
);
//语音播放
window
.
PlayAudioCallback
=
(
res
)
=>
this
.
PlayAudioCallback
(
res
);
//语音播放
window
.
HighCameraCallback
=
(
success
,
obj
)
=>
this
.
HighCameraCallback
(
success
,
obj
);
//获取高拍仪照片
window
.
HighCameraCallback
=
(
success
,
obj
)
=>
this
.
HighCameraCallback
(
success
,
obj
);
//获取高拍仪照片
window
.
IDCardCallback
=
(
success
,
code
,
obj
)
=>
this
.
IDCardCallback
(
success
,
code
,
obj
);
//获取身份证
window
.
ConfirmCallback
=
(
res
)
=>
this
.
ConfirmCallback
(
res
);
//提示确认,取消对话框
window
.
ConfirmCallback
=
(
res
)
=>
this
.
ConfirmCallback
(
res
);
//提示确认,取消对话框
},
},
methods
:{
methods
:{
...
@@ -174,11 +180,14 @@ export default{
...
@@ -174,11 +180,14 @@ export default{
}
}
},
},
nextStep
()
{
//下一步
nextStep
()
{
//下一步
this
.
isOpenHighCamera
=
false
;
this
.
isOpenHighCamera
=
false
;
if
(
robotType
)
robotsdk
.
closeHighCamera
();
//关闭高拍仪
if
(
robotType
)
robotsdk
.
closeHighCamera
();
//关闭高拍仪
if
(
this
.
formIndex
==
1
){
if
(
this
.
formIndex
==
1
){
// this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.rocrUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=apply/XCYJYXKZ",materials:JSON.stringify(this.materials)}});
// this.$router.push({ path: '/iframePage',query:{pageUrl:window.config.rocrUrl+"lilo/aiCase/skipSanitationRegister?pageUrl=apply/XCYJYXKZ",materials:JSON.stringify(this.materials)}});
this
.
materials
.
push
({
'
personName
'
:
this
.
personName
,
'
sex
'
:
this
.
sex
,
'
idcardNum
'
:
this
.
idcardNum
});
this
.
$router
.
push
({
path
:
'
/iframePage
'
,
query
:{
pageUrl
:
window
.
config
.
aiCaseUrl
+
"
lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/XCYJYXKZ
"
,
materials
:
JSON
.
stringify
(
this
.
materials
)}});
this
.
$router
.
push
({
path
:
'
/iframePage
'
,
query
:{
pageUrl
:
window
.
config
.
aiCaseUrl
+
"
lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/XCYJYXKZ
"
,
materials
:
JSON
.
stringify
(
this
.
materials
)}});
}
}
if
(
this
.
formIndex
==
2
){
if
(
this
.
formIndex
==
2
){
...
@@ -211,6 +220,9 @@ export default{
...
@@ -211,6 +220,9 @@ export default{
}
}
this
.
$router
.
push
({
path
:
'
/iframePage
'
,
query
:{
pageUrl
:
window
.
config
.
aiCaseUrl
+
"
lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/JKZSQB
"
,
materials
:
JSON
.
stringify
(
this
.
identityList
)}});
this
.
$router
.
push
({
path
:
'
/iframePage
'
,
query
:{
pageUrl
:
window
.
config
.
aiCaseUrl
+
"
lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/JKZSQB
"
,
materials
:
JSON
.
stringify
(
this
.
identityList
)}});
}
}
if
(
this
.
formIndex
==
13
){
this
.
$router
.
push
({
path
:
'
/iframePage
'
,
query
:{
pageUrl
:
window
.
config
.
aiCaseUrl
+
"
lilo/aiCase/skipSanitationRegister?pageUrl=rpaForm/sichuan/yibin/web/YDJYBAGRCNS
"
,
materials
:
JSON
.
stringify
(
this
.
materials
)}});
}
},
},
scanBtn
(){
//扫描
scanBtn
(){
//扫描
...
@@ -251,6 +263,13 @@ export default{
...
@@ -251,6 +263,13 @@ export default{
}
}
},
},
IDCardCallback
(
success
,
code
,
info
){
//身份证识别回调
// alert(success+"--"+code+"--"+info);
if
(
success
){
}
},
HighCameraCallback
(
success
,
obj
){
////获取高拍仪照片
HighCameraCallback
(
success
,
obj
){
////获取高拍仪照片
if
(
success
)
{
if
(
success
)
{
let
res
=
eval
(
'
(
'
+
obj
+
'
)
'
);
//高拍仪回调的数据集
let
res
=
eval
(
'
(
'
+
obj
+
'
)
'
);
//高拍仪回调的数据集
...
...
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