Commit ee450c5d authored by 李晓兵's avatar 李晓兵

'bug修复'

parent 6c5f1333
...@@ -58,8 +58,8 @@ import Jpush from './scripts/jpushService' ...@@ -58,8 +58,8 @@ 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)
......
...@@ -396,8 +396,9 @@ export default { ...@@ -396,8 +396,9 @@ export default {
background: #00469c; background: #00469c;
border-radius: 4px; border-radius: 4px;
color: #fff; color: #fff;
margin-bottom: 60px; margin-bottom: 68px;
margin-left:2%; margin-left:2%;
margin-top: 20px;
} }
} }
.content { .content {
......
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
<input <input
slot="content" slot="content"
v-model="bank.bank_account_num" v-model="bank.bank_account_num"
readonly
placeholder="识别银行卡自动填充" placeholder="识别银行卡自动填充"
> >
</item> </item>
...@@ -267,7 +267,7 @@ ...@@ -267,7 +267,7 @@
</item> </item>
<item> <item>
<div slot="name">银行名称</div> <div slot="name">银行名称</div>
<input slot="content" v-model="bank.bank_full_name" readonly placeholder="识别银行卡自动填充" > <input slot="content" v-model="bank.bank_full_name" placeholder="识别银行卡自动填充" >
</item> </item>
<item> <item>
<div slot="name">支行名称</div> <div slot="name">支行名称</div>
...@@ -410,9 +410,9 @@ export default { ...@@ -410,9 +410,9 @@ export default {
beforeRouteEnter (to, from, next) { beforeRouteEnter (to, from, next) {
if (from.fullPath === '/tab/my-info') { // 绑定查询入口 if (from.fullPath === '/tab/my-info') { // 绑定查询入口
next(vm => { next(vm => {
vm.from = true
vm.basicInfoQuery() vm.basicInfoQuery()
vm.loadItemList()// 附件查询 vm.loadItemList()// 附件查询
vm.from = true
}) })
} }
next() next()
...@@ -457,6 +457,7 @@ export default { ...@@ -457,6 +457,7 @@ export default {
}) })
}, },
async verified () { async verified () {
this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片
let bpId = await this.saveWord() let bpId = await this.saveWord()
this.getBankInfo() this.getBankInfo()
// 查询资料清单 // 查询资料清单
...@@ -464,7 +465,7 @@ export default { ...@@ -464,7 +465,7 @@ export default {
}, },
loadItemList () { loadItemList () {
let vm = this let vm = this
let bpId = window.localStorage.getItem('user_id') let bpId = vm.from ? vm.$route.params.bp_id : window.localStorage.getItem('user_id')
let url = process.env.basePath + 'prj_cdd_check_list' let url = process.env.basePath + 'prj_cdd_check_list'
let param = { let param = {
master: { master: {
...@@ -711,12 +712,17 @@ export default { ...@@ -711,12 +712,17 @@ export default {
height: 1382, height: 1382,
} }
let success = function (imgdata) { let success = function (imgdata) {
if (ocrType === 'idCard') { if(!imgdata){
type === 'front' ? (vm.idCardFront = imgdata) : (vm.idCardBack = imgdata) hlsPopup.showLongCenter('请拍照')
vm.idCardIdentify(imgdata) }
} else if (ocrType === 'bankCard') { else{
vm.bankImg = imgdata if (ocrType === 'idCard') {
vm.bankCardIdentify(imgdata) type === 'front' ? (vm.idCardFront = imgdata, vm.idCardIdentify(imgdata)) : (vm.idCardBack = imgdata)
vm.idCardIdentify(imgdata)
} else if (ocrType === 'bankCard') {
vm.bankImg = imgdata
vm.bankCardIdentify(imgdata)
}
} }
} }
let error = function () { let error = function () {
...@@ -733,11 +739,16 @@ export default { ...@@ -733,11 +739,16 @@ export default {
maxCount: 1, maxCount: 1,
} }
let success = function (imgUrl) { let success = function (imgUrl) {
if (ocrType === 'idCard') { if(!imgUrl){
type === 'front' ? (vm.idCardFront = imgUrl[0], vm.idCardIdentify(imgUrl[0])) : (vm.idCardBack = imgUrl[0]) hlsPopup.showLongCenter('请选择一张图片')
} else if (ocrType === 'bankCard') { }
vm.bankImg = imgUrl[0] else{
vm.bankCardIdentify(imgUrl[0]) if (ocrType === 'idCard') {
type === 'front' ? (vm.idCardFront = imgUrl[0], vm.idCardIdentify(imgUrl[0])) : (vm.idCardBack = imgUrl[0])
} else if (ocrType === 'bankCard') {
vm.bankImg = imgUrl[0]
vm.bankCardIdentify(imgUrl[0])
}
} }
} }
let error = function () { let error = function () {
......
...@@ -690,6 +690,7 @@ export default { ...@@ -690,6 +690,7 @@ export default {
}, },
verified () { verified () {
this.dowload_list = [] // 保存之前将图片下载列表清空,防止出现重复的图片
if (this.flag) { if (this.flag) {
// this.flag = false // this.flag = false
for (let i in this.authMsg) { for (let i in this.authMsg) {
...@@ -1139,14 +1140,19 @@ export default { ...@@ -1139,14 +1140,19 @@ export default {
height: 1382, height: 1382,
} }
let success = function (imgdata) { let success = function (imgdata) {
if (ocrType === 'idCard') { if(!imgdata){
type === 'front' ? (vm.idCardFront = imgdata, vm.idCardIdentify(imgdata)) : (vm.idCardBack = imgdata) hlsPopup.showLongCenter('请拍照')
} else if (ocrType === 'bankCard') { }
vm.bankImg = imgdata else{
vm.bankCardIdentify(imgdata) if (ocrType === 'idCard') {
} else if (ocrType === 'license') { type === 'front' ? (vm.idCardFront = imgdata, vm.idCardIdentify(imgdata)) : (vm.idCardBack = imgdata)
vm.licenseImg = imgdata } else if (ocrType === 'bankCard') {
vm.licenseIdentify(imgdata) vm.bankImg = imgdata
vm.bankCardIdentify(imgdata)
} else if (ocrType === 'license') {
vm.licenseImg = imgdata
vm.licenseIdentify(imgdata)
}
} }
} }
let error = function () { let error = function () {
...@@ -1163,17 +1169,20 @@ export default { ...@@ -1163,17 +1169,20 @@ export default {
maxCount: 1, maxCount: 1,
} }
let success = function (imgUrl) { let success = function (imgUrl) {
if (ocrType === 'idCard') { if(!imgUrl){
type === 'front' hlsPopup.showLongCenter('请选择一张图片')
? (vm.idCardFront = imgUrl[0]) }
: (vm.idCardBack = imgUrl[0]) else{
vm.idCardIdentify(imgUrl[0]) if (ocrType === 'idCard') {
} else if (ocrType === 'bankCard') { type === 'front' ? (vm.idCardFront = imgUrl[0], vm.idCardIdentify(imgUrl[0])) : (vm.idCardBack = imgUrl[0])
vm.bankImg = imgUrl[0] vm.idCardIdentify(imgUrl[0])
vm.bankCardIdentify(imgUrl[0]) } else if (ocrType === 'bankCard') {
} else if (ocrType === 'license') { vm.bankImg = imgUrl[0]
vm.licenseImg = imgUrl[0] vm.bankCardIdentify(imgUrl[0])
vm.licenseIdentify(imgUrl[0]) } else if (ocrType === 'license') {
vm.licenseImg = imgUrl[0]
vm.licenseIdentify(imgUrl[0])
}
} }
} }
let error = function () { let error = function () {
......
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