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
7f3cd95f
Commit
7f3cd95f
authored
Oct 14, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'身份证识别'
parent
58a867bc
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
4 deletions
+5
-4
uat.env.js
config/uat.env.js
+1
-0
main.js
src/main.js
+2
-2
naturePerson.vue
src/pages/userBind/np/naturePerson.vue
+1
-1
hlsUtil.js
src/scripts/hlsUtil.js
+1
-1
No files found.
config/uat.env.js
View file @
7f3cd95f
...
@@ -7,6 +7,7 @@ module.exports = {
...
@@ -7,6 +7,7 @@ module.exports = {
loginPath
:
'"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=admin&password=" '
,
loginPath
:
'"http://180.104.121.66:8088/oauth/token?client_id=client2&client_secret=secret&grant_type=password&username=admin&password=" '
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_DEV&apiName="'
,
basePath
:
'"http://180.104.121.66:8088/r/api/interface?sysName=XCMG_DEV&apiName="'
,
rootPath
:
'"http://180.104.121.66:8088/r/api/interface"'
,
rootPath
:
'"http://180.104.121.66:8088/r/api/interface"'
,
ocrPath
:
'"http://180.104.121.66:8088/r/api"'
,
file_url
:
'"http://hlsapp.hand-china.com/file/"'
,
file_url
:
'"http://hlsapp.hand-china.com/file/"'
,
appId
:
'"com.hls.easy.car"'
,
appId
:
'"com.hls.easy.car"'
,
currentVersion
:
'"0.0.1"'
currentVersion
:
'"0.0.1"'
...
...
src/main.js
View file @
7f3cd95f
...
@@ -57,10 +57,10 @@ import Jpush from './scripts/jpushService'
...
@@ -57,10 +57,10 @@ import Jpush from './scripts/jpushService'
import
Jmessage
from
'./scripts/jmessageService'
import
Jmessage
from
'./scripts/jmessageService'
/*
if (process.env.CONFIG_ENV === 'uat') {
//
if (process.env.CONFIG_ENV === 'uat') {
const
VConsole
=
require
(
'vconsole'
)
const
VConsole
=
require
(
'vconsole'
)
new
VConsole
()
// eslint-disable-line
new
VConsole
()
// eslint-disable-line
} */
//}
Vue
.
use
(
componentInstall
)
Vue
.
use
(
componentInstall
)
Vue
.
use
(
components
)
Vue
.
use
(
components
)
...
...
src/pages/userBind/np/naturePerson.vue
View file @
7f3cd95f
...
@@ -483,7 +483,7 @@ export default {
...
@@ -483,7 +483,7 @@ export default {
alert
(
'fileUrl '
+
fileUrl
)
alert
(
'fileUrl '
+
fileUrl
)
let
vm
=
this
let
vm
=
this
hlsPopup
.
showLoading
(
'正在识别'
)
hlsPopup
.
showLoading
(
'正在识别'
)
let
url
=
process
.
env
.
root
Path
+
'/baidu/ocr/idCard'
let
url
=
process
.
env
.
ocr
Path
+
'/baidu/ocr/idCard'
hlsUtil
.
baiduOcr
(
fileUrl
,
url
,
function
(
res
)
{
hlsUtil
.
baiduOcr
(
fileUrl
,
url
,
function
(
res
)
{
hlsPopup
.
hideLoading
()
hlsPopup
.
hideLoading
()
alert
(
'识别结果: '
+
JSON
.
stringify
(
res
))
alert
(
'识别结果: '
+
JSON
.
stringify
(
res
))
...
...
src/scripts/hlsUtil.js
View file @
7f3cd95f
...
@@ -279,7 +279,7 @@ export default {
...
@@ -279,7 +279,7 @@ export default {
saveToPhotoAlbum
:
window
.
localStorage
.
savePhoto
||
false
,
saveToPhotoAlbum
:
window
.
localStorage
.
savePhoto
||
false
,
correctOrientation
:
true
,
correctOrientation
:
true
,
}
}
$cordovaCamera
.
getPicture
(
o
nSuccess
,
onFail
,
options
)
$cordovaCamera
.
getPicture
(
o
ptions
).
then
(
onSuccess
,
onFail
);
}
else
{
}
else
{
window
.
hlsPopup
.
showLongCenter
(
'参数有误!'
)
window
.
hlsPopup
.
showLongCenter
(
'参数有误!'
)
}
}
...
...
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