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,14 +712,19 @@ export default { ...@@ -711,14 +712,19 @@ export default {
height: 1382, height: 1382,
} }
let success = function (imgdata) { let success = function (imgdata) {
if(!imgdata){
hlsPopup.showLongCenter('请拍照')
}
else{
if (ocrType === 'idCard') { if (ocrType === 'idCard') {
type === 'front' ? (vm.idCardFront = imgdata) : (vm.idCardBack = imgdata) type === 'front' ? (vm.idCardFront = imgdata, vm.idCardIdentify(imgdata)) : (vm.idCardBack = imgdata)
vm.idCardIdentify(imgdata) vm.idCardIdentify(imgdata)
} else if (ocrType === 'bankCard') { } else if (ocrType === 'bankCard') {
vm.bankImg = imgdata vm.bankImg = imgdata
vm.bankCardIdentify(imgdata) vm.bankCardIdentify(imgdata)
} }
} }
}
let error = function () { let error = function () {
hlsPopup.showLongCenter(error) hlsPopup.showLongCenter(error)
} }
...@@ -733,6 +739,10 @@ export default { ...@@ -733,6 +739,10 @@ export default {
maxCount: 1, maxCount: 1,
} }
let success = function (imgUrl) { let success = function (imgUrl) {
if(!imgUrl){
hlsPopup.showLongCenter('请选择一张图片')
}
else{
if (ocrType === 'idCard') { if (ocrType === 'idCard') {
type === 'front' ? (vm.idCardFront = imgUrl[0], vm.idCardIdentify(imgUrl[0])) : (vm.idCardBack = imgUrl[0]) type === 'front' ? (vm.idCardFront = imgUrl[0], vm.idCardIdentify(imgUrl[0])) : (vm.idCardBack = imgUrl[0])
} else if (ocrType === 'bankCard') { } else if (ocrType === 'bankCard') {
...@@ -740,6 +750,7 @@ export default { ...@@ -740,6 +750,7 @@ export default {
vm.bankCardIdentify(imgUrl[0]) vm.bankCardIdentify(imgUrl[0])
} }
} }
}
let error = function () { let error = function () {
hlsPopup.showLongCenter(error) hlsPopup.showLongCenter(error)
} }
......
...@@ -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,6 +1140,10 @@ export default { ...@@ -1139,6 +1140,10 @@ export default {
height: 1382, height: 1382,
} }
let success = function (imgdata) { let success = function (imgdata) {
if(!imgdata){
hlsPopup.showLongCenter('请拍照')
}
else{
if (ocrType === 'idCard') { if (ocrType === 'idCard') {
type === 'front' ? (vm.idCardFront = imgdata, vm.idCardIdentify(imgdata)) : (vm.idCardBack = imgdata) type === 'front' ? (vm.idCardFront = imgdata, vm.idCardIdentify(imgdata)) : (vm.idCardBack = imgdata)
} else if (ocrType === 'bankCard') { } else if (ocrType === 'bankCard') {
...@@ -1149,6 +1154,7 @@ export default { ...@@ -1149,6 +1154,7 @@ export default {
vm.licenseIdentify(imgdata) vm.licenseIdentify(imgdata)
} }
} }
}
let error = function () { let error = function () {
hlsPopup.showLongCenter(error) hlsPopup.showLongCenter(error)
} }
...@@ -1163,10 +1169,12 @@ export default { ...@@ -1163,10 +1169,12 @@ export default {
maxCount: 1, maxCount: 1,
} }
let success = function (imgUrl) { let success = function (imgUrl) {
if(!imgUrl){
hlsPopup.showLongCenter('请选择一张图片')
}
else{
if (ocrType === 'idCard') { if (ocrType === 'idCard') {
type === 'front' type === 'front' ? (vm.idCardFront = imgUrl[0], vm.idCardIdentify(imgUrl[0])) : (vm.idCardBack = imgUrl[0])
? (vm.idCardFront = imgUrl[0])
: (vm.idCardBack = imgUrl[0])
vm.idCardIdentify(imgUrl[0]) vm.idCardIdentify(imgUrl[0])
} else if (ocrType === 'bankCard') { } else if (ocrType === 'bankCard') {
vm.bankImg = imgUrl[0] vm.bankImg = imgUrl[0]
...@@ -1176,6 +1184,7 @@ export default { ...@@ -1176,6 +1184,7 @@ export default {
vm.licenseIdentify(imgUrl[0]) vm.licenseIdentify(imgUrl[0])
} }
} }
}
let error = function () { let error = function () {
hlsPopup.showLongCenter(error) hlsPopup.showLongCenter(error)
} }
......
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