diff --git a/pages/complete-info/EnterpriseForm.vue b/pages/complete-info/EnterpriseForm.vue index 32733e6..9af350f 100644 --- a/pages/complete-info/EnterpriseForm.vue +++ b/pages/complete-info/EnterpriseForm.vue @@ -342,6 +342,20 @@ export default { licenseOcr(url) { getLicenseOcr({ photoUrl: url }).then((res) => { if (res) { + if (!res.regNum) { + uni.showToast({ + title: '识别社会信用代码失败', + icon: 'none' + }) + return + } + if (!res.company) { + uni.showToast({ + title: '识别企业名称失败', + icon: 'none' + }) + return + } this.form.uniformSocialCreditCode = res.regNum this.form.name = res.company this.form.businessLicenseImg = url