Commit 59ebd0d6 authored by 李晓兵's avatar 李晓兵

'合同签约银行卡识别'

parent 2f97c4af
......@@ -58,8 +58,8 @@ import Jpush from './scripts/jpushService'
import Jmessage from './scripts/jmessageService'
//if (process.env.CONFIG_ENV === 'uat') {
// const VConsole = require('vconsole')
// new VConsole() // eslint-disable-line
const VConsole = require('vconsole')
new VConsole() // eslint-disable-line
//}
Vue.use(componentInstall)
......
......@@ -179,8 +179,11 @@ export default {
hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading()
let result = res.result.result
alert('result' + result)
vm.bank_lists[0].bank_account_num = result.bank_card_number.replace(/\s*/g, '') // 卡号
vm.bank_lists[0].bank_full_name = result.bank_name // 银行名称
vm.bank_lists.sort()
alert('数组'+ JSON.stringify(vm.bank_lists))
// vm.bank_lists.bank_card_type = result.bank_card_type
})
},
......
......@@ -971,7 +971,12 @@ export default {
getInfo (i, isClear) {
this.isClear = isClear
if (isClear) {
this.bank_lists = {}
// this.bank_lists = {}
this.bank_lists.bank_account_num = ''
this.bank_lists.bank_account_name = ''
this.bank_lists.bank_card_type = ''
this.bank_lists.bank_full_name = ''
this.bank_lists.bank_branch_name = ''
}
this.showModalValue = i
},
......
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