Commit 3a5414dd authored by 李晓兵's avatar 李晓兵

'法人识别'

parent 7378e1a9
...@@ -216,7 +216,7 @@ ...@@ -216,7 +216,7 @@
<img src="@/assets/userBind/close.png" @click="hideModal" > <img src="@/assets/userBind/close.png" @click="hideModal" >
</div> </div>
<img v-if="!bankImg" src="@/assets/userBind/addBack.png" class="addBack" @click="ocrShow('bankCard', '')"> <img v-if="!bankImg" src="@/assets/userBind/addBack.png" class="addBack" @click="ocrShow('bankCard', '')">
<img v-if="bankImg && !isApproved" :src="bankImg" class="addBack" style="height: 38%;"> <img v-if="bankImg && !isApproved" :src="bankImg" class="addBack" @click="ocrShow('bankCard', '')" style="height: 38%;">
<list-item :item-height="44" class="card-Info"> <list-item :item-height="44" class="card-Info">
<item> <item>
<div slot="name">银行卡卡号</div> <div slot="name">银行卡卡号</div>
......
...@@ -41,8 +41,8 @@ ...@@ -41,8 +41,8 @@
<div v-if="!licenseImg" @click="ocrShow('license', '')"> <div v-if="!licenseImg" @click="ocrShow('license', '')">
<img src="@/assets/userBind/camera.png"> <img src="@/assets/userBind/camera.png">
</div> </div>
<div v-if="licenseImg && !isApproved"> <div v-if="licenseImg && !isApproved" @click="ocrShow('license', '')" style="width: 100%;height: 100%">
<img :src="licenseImg"> <img :src="licenseImg" style="width: 100%;height: 100%;margin: 0">
</div> </div>
</div> </div>
</div> </div>
...@@ -277,7 +277,9 @@ ...@@ -277,7 +277,9 @@
<img src="@/assets/userBind/close.png" @click="hideModal"> <img src="@/assets/userBind/close.png" @click="hideModal">
</div> </div>
<img v-if="!bankImg" src="@/assets/userBind/addBack.png" class="addBack" @click="ocrShow('bankCard', '')"> <img v-if="!bankImg" src="@/assets/userBind/addBack.png" class="addBack" @click="ocrShow('bankCard', '')">
<img v-if="bankImg && !isApproved" :src="bankImg" class="addBack" style="height: 38%;"> <img
v-if="bankImg && !isApproved" :src="bankImg" class="addBack" style="height: 38%;"
@click="ocrShow('bankCard', '')">
<list-item :item-height="44" class="card-Info"> <list-item :item-height="44" class="card-Info">
<item> <item>
<div slot="name">银行卡卡号</div> <div slot="name">银行卡卡号</div>
...@@ -409,6 +411,7 @@ export default { ...@@ -409,6 +411,7 @@ export default {
idCardFront: '', // 身份证正面图片 idCardFront: '', // 身份证正面图片
idCardBack: '', // 身份证反面图片 idCardBack: '', // 身份证反面图片
licenseImg: '', // 营业执照照片 licenseImg: '', // 营业执照照片
bankImg: '', // 银行卡图片
} }
}, },
computed: {}, computed: {},
...@@ -455,10 +458,10 @@ export default { ...@@ -455,10 +458,10 @@ export default {
} }
}, },
'tabNum': function (newVal, oldVal) { 'tabNum': function (newVal, oldVal) {
/*if ((newVal === 1 && !this.bp_id) && !this.from) { /* if ((newVal === 1 && !this.bp_id) && !this.from) {
this.hlsPopup.showError('请先保存基本信息') this.hlsPopup.showError('请先保存基本信息')
this.tabNum = oldVal this.tabNum = oldVal
}*/ } */
}, },
}, },
created () { created () {
...@@ -1080,7 +1083,7 @@ export default { ...@@ -1080,7 +1083,7 @@ export default {
hlsUtil.baiduOcr(fileUrl, url, function (res) { hlsUtil.baiduOcr(fileUrl, url, function (res) {
hlsPopup.hideLoading() hlsPopup.hideLoading()
let result = res.result.words_result let result = res.result.words_result
if (flag) { // 未授权 姓名,身份证号 if (vm.flag) { // 未授权 姓名,身份证号
vm.baseInfo.legal_person = result.姓名.words vm.baseInfo.legal_person = result.姓名.words
vm.legal_personMsg.id_card_no = result.公民身份号码.words vm.legal_personMsg.id_card_no = result.公民身份号码.words
} else { // 已授权 姓名,身份证号 } else { // 已授权 姓名,身份证号
...@@ -1116,6 +1119,7 @@ export default { ...@@ -1116,6 +1119,7 @@ export default {
vm.baseInfo.legal_person = result.法人.words vm.baseInfo.legal_person = result.法人.words
vm.baseInfo.registered_place = result.地址.words vm.baseInfo.registered_place = result.地址.words
vm.baseInfo.organization_code = result.社会信用代码.words vm.baseInfo.organization_code = result.社会信用代码.words
alert(JSON.stringify(result))
}) })
}, },
}, },
......
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