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

''

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