|
@@ -43,28 +43,28 @@
|
|
|
</div>
|
|
|
<div style="color: #606266;font-size: 15px;font-weight: 600;text-align: center;">上传图片只能是 JPG,PNG,BMP 格式!大小不能超过 7MB!</div>
|
|
|
<el-row>
|
|
|
- <el-button type="primary" @click="license()">营业执照</el-button>
|
|
|
- <el-button type="primary" @click="IDcardR()">身份证-人像面</el-button>
|
|
|
- <el-button type="primary" @click="creditCode()">统一信用代码</el-button>
|
|
|
- <el-button type="primary" @click="IDcardG()">身份证-国徽面</el-button>
|
|
|
- <el-button type="primary" @click="driving()">行驶证</el-button>
|
|
|
- <el-button type="primary" @click="household()">户口本</el-button>
|
|
|
- <el-button type="primary" @click="deed()">房产证</el-button>
|
|
|
- <el-button type="primary" @click="Marriage()">结婚证</el-button>
|
|
|
- <el-button type="primary" @click="mainlandPassport()">大陆护照</el-button>
|
|
|
- <el-button type="primary" @click="universal()">通用印刷体</el-button>
|
|
|
- <el-button type="primary">营业执照(英文)</el-button>
|
|
|
- <el-button type="primary">统一信用代码(英文)</el-button>
|
|
|
- <el-button type="primary">身份证-人像面(英文)</el-button>
|
|
|
- <el-button type="primary">身份证-国徽面(英文)</el-button>
|
|
|
- <el-button type="primary">行驶证(英文)</el-button>
|
|
|
- <el-button type="primary">户口本(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="license(1)">营业执照</el-button>
|
|
|
+ <el-button type="primary" @click="creditCode(1)">统一信用代码</el-button>
|
|
|
+ <el-button type="primary" @click="IDcardR(1)">身份证-人像面</el-button>
|
|
|
+ <el-button type="primary" @click="IDcardG(1)">身份证-国徽面</el-button>
|
|
|
+ <el-button type="primary" @click="driving(1)">行驶证</el-button>
|
|
|
+ <el-button type="primary" @click="household(1)">户口本</el-button>
|
|
|
+ <el-button type="primary" @click="deed(1)">房产证</el-button>
|
|
|
+ <el-button type="primary" @click="Marriage(1)">结婚证</el-button>
|
|
|
+ <el-button type="primary" @click="mainlandPassport(1)">大陆护照</el-button>
|
|
|
+ <el-button type="primary" @click="universal(1)">通用印刷体</el-button>
|
|
|
+ <el-button type="primary" @click="license(2)">营业执照(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="creditCode(2)">统一信用代码(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="IDcardR(2)">身份证-人像面(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="IDcardG(2)">身份证-国徽面(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="driving(2)">行驶证(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="household(2)">户口本(英文)</el-button>
|
|
|
<!-- <el-button type="primary">户口本-成员页</el-button> -->
|
|
|
<!-- <el-button type="primary">户口本-成员页(英文)</el-button> -->
|
|
|
- <el-button type="primary">房产证(英文)</el-button>
|
|
|
- <el-button type="primary">结婚证(英文)</el-button>
|
|
|
- <el-button type="primary">大陆护照(英文)</el-button>
|
|
|
- <el-button type="primary">通用印刷体(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="deed(2)">房产证(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="Marriage(2)">结婚证(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="mainlandPassport(2)">大陆护照(英文)</el-button>
|
|
|
+ <el-button type="primary" @click="universal(2)">通用印刷体(英文)</el-button>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -141,7 +141,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
//身份证人像面
|
|
|
- IDcardR(){
|
|
|
+ IDcardR(val){
|
|
|
this.fullscreenLoading = true;
|
|
|
var url="/api/TencentOCR/GetIDCard"
|
|
|
var that=this
|
|
@@ -155,7 +155,7 @@ export default {
|
|
|
data:{
|
|
|
portType: 1,
|
|
|
userId:that.userid,
|
|
|
- language:'en',
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
cardSide:0
|
|
|
}
|
|
@@ -182,7 +182,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//身份证国徽面
|
|
|
- IDcardG(){
|
|
|
+ IDcardG(val){
|
|
|
this.fullscreenLoading = true;
|
|
|
var url="/api/TencentOCR/GetIDCard"
|
|
|
var that=this
|
|
@@ -197,6 +197,7 @@ export default {
|
|
|
data:{
|
|
|
portType: 1,
|
|
|
userId:that.userid,
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
cardSide:1
|
|
|
}
|
|
@@ -223,7 +224,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//营业执照
|
|
|
- license(){
|
|
|
+ license(val){
|
|
|
this.fullscreenLoading=true;
|
|
|
var url="/api/TencentOCR/GetBizLicenseOCR"
|
|
|
var that=this
|
|
@@ -236,6 +237,7 @@ export default {
|
|
|
Authorization:'Bearer '+this.token
|
|
|
},
|
|
|
data:{
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
}
|
|
|
}).then(function(res){
|
|
@@ -260,7 +262,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//统一信用代码
|
|
|
- creditCode(){
|
|
|
+ creditCode(val){
|
|
|
this.fullscreenLoading = true;
|
|
|
var url="/api/TencentOCR/GetOrgCodeCertOCR"
|
|
|
var that=this
|
|
@@ -273,6 +275,7 @@ export default {
|
|
|
Authorization:'Bearer '+this.token
|
|
|
},
|
|
|
data:{
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
}
|
|
|
}).then(function(res){
|
|
@@ -298,7 +301,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//行驶证
|
|
|
- driving(){
|
|
|
+ driving(val){
|
|
|
this.fullscreenLoading = true;
|
|
|
var url="/api/TencentOCR/GetVehicleLicense"
|
|
|
var that=this
|
|
@@ -311,6 +314,7 @@ export default {
|
|
|
Authorization:'Bearer '+this.token
|
|
|
},
|
|
|
data:{
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
cardSide:0
|
|
|
}
|
|
@@ -337,7 +341,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//户口本
|
|
|
- household(){
|
|
|
+ household(val){
|
|
|
this.fullscreenLoading = true;
|
|
|
var url="/api/TencentOCR/GetResidenceBookletOCR"
|
|
|
var that=this
|
|
@@ -350,6 +354,7 @@ export default {
|
|
|
Authorization:'Bearer '+this.token
|
|
|
},
|
|
|
data:{
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
}
|
|
|
}).then(function(res){
|
|
@@ -375,7 +380,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//房产证
|
|
|
- deed(){
|
|
|
+ deed(val){
|
|
|
this.fullscreenLoading = true;
|
|
|
var url="/api/TencentOCR/GetPropOwnerCert"
|
|
|
var that=this
|
|
@@ -388,6 +393,7 @@ export default {
|
|
|
Authorization:'Bearer '+this.token
|
|
|
},
|
|
|
data:{
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
}
|
|
|
}).then(function(res){
|
|
@@ -413,7 +419,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//结婚证
|
|
|
- Marriage(){
|
|
|
+ Marriage(val){
|
|
|
this.fullscreenLoading = true;
|
|
|
var url="/api/TencentOCR/GetMarriageLicense"
|
|
|
var that=this
|
|
@@ -426,6 +432,7 @@ export default {
|
|
|
Authorization:'Bearer '+this.token
|
|
|
},
|
|
|
data:{
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
}
|
|
|
}).then(function(res){
|
|
@@ -451,7 +458,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//大陆护照
|
|
|
- mainlandPassport(){
|
|
|
+ mainlandPassport(val){
|
|
|
this.fullscreenLoading = true;
|
|
|
var url="/api/TencentOCR/GetPassport"
|
|
|
var that=this
|
|
@@ -464,6 +471,7 @@ export default {
|
|
|
Authorization:'Bearer '+this.token
|
|
|
},
|
|
|
data:{
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
}
|
|
|
}).then(function(res){
|
|
@@ -489,7 +497,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
//通用印刷体
|
|
|
- universal(){
|
|
|
+ universal(val){
|
|
|
this.fullscreenLoading = true;
|
|
|
var url="/api/TencentOCR/GetGeneralBasic"
|
|
|
var that=this
|
|
@@ -502,6 +510,7 @@ export default {
|
|
|
Authorization:'Bearer '+this.token
|
|
|
},
|
|
|
data:{
|
|
|
+ language:val,
|
|
|
picBase64:that.picBase64,
|
|
|
}
|
|
|
}).then(function(res){
|