Commit 7f3cd95f authored by 李晓兵's avatar 李晓兵

'身份证识别'

parent 58a867bc
...@@ -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"'
......
...@@ -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)
......
...@@ -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.rootPath + '/baidu/ocr/idCard' let url = process.env.ocrPath + '/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))
......
...@@ -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(onSuccess, onFail, options) $cordovaCamera.getPicture(options).then(onSuccess, onFail);
} else { } else {
window.hlsPopup.showLongCenter('参数有误!') window.hlsPopup.showLongCenter('参数有误!')
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment