Commit 483005f8 authored by 李晓兵's avatar 李晓兵

''

parent 07bb27b8
......@@ -406,7 +406,7 @@ export default {
}
},
beforeRouteEnter (to, from, next) {
if (from.fullPath === '/tab/my-info') {
if (from.fullPath === '/tab/my-info') { // 绑定查询入口
next(vm => {
vm.basicInfoQuery()
vm.from = true
......@@ -501,7 +501,7 @@ export default {
return bpId
}
},
uploadIdCardFront () {
/* uploadIdCardFront () {
let vm = this
let url = process.env.basePath + 'attachment_upload'
let param = {
......@@ -516,7 +516,7 @@ export default {
console.log(res.response.attachment_id)
}
})
},
},*/
ocrShow (ocrType, type) {
let vm = this
hlsPopup.showActionSheet({
......@@ -540,9 +540,7 @@ export default {
}
let success = function (imgdata) {
if (ocrType === 'idCard') {
type === 'front'
? (vm.idCardFront = imgdata)
: (vm.idCardBack = imgdata)
type === 'front' ? (vm.idCardFront = imgdata) : (vm.idCardBack = imgdata)
vm.idCardIdentify(imgdata)
} else if (ocrType === 'bankCard') {
vm.bankImg = imgdata
......@@ -564,10 +562,7 @@ export default {
}
let success = function (imgUrl) {
if (ocrType === 'idCard') {
type === 'front'
? (vm.idCardFront = imgUrl[0])
: (vm.idCardBack = imgUrl[0])
vm.idCardIdentify(imgUrl[0])
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])
......
......@@ -1134,10 +1134,7 @@ export default {
}
let success = function (imgdata) {
if (ocrType === 'idCard') {
type === 'front'
? (vm.idCardFront = imgdata)
: (vm.idCardBack = imgdata)
vm.idCardIdentify(imgdata)
type === 'front' ? (vm.idCardFront = imgdata, vm.idCardIdentify(imgdata)) : (vm.idCardBack = imgdata)
} else if (ocrType === 'bankCard') {
vm.bankImg = imgdata
vm.bankCardIdentify(imgdata)
......
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