|
@@ -33,9 +33,10 @@
|
|
|
</view>
|
|
|
<view style="margin: 30rpx;">
|
|
|
<u-button type="primary" @click="nextStep" v-if="showLicense&&showStore">下一步</u-button>
|
|
|
- <!-- <u-button type="primary" @click="nextStep">下一步</u-button> -->
|
|
|
+ <!-- <u-button type="primary" @click="nextStep">下一步</u-button> -->
|
|
|
</view>
|
|
|
- <u-modal v-model="modalShow" :content="storecontent" :show-cancel-button="true" confirm-text="同意" cancel-text="不同意" @cancel="cancelModal"></u-modal>
|
|
|
+ <u-modal v-model="modalShow" :content="storecontent" :show-cancel-button="true" confirm-text="同意" cancel-text="不同意"
|
|
|
+ @cancel="cancelModal"></u-modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -54,53 +55,77 @@
|
|
|
storepicType: {
|
|
|
"pictype": "store"
|
|
|
},
|
|
|
- showLicense:false,
|
|
|
- showStore:false,
|
|
|
- modalShow:false,
|
|
|
- storecontent:"此操作需要上传正规的营业执照照片,并确保系统识别出来的信息与营业执照一致,是否同意?",
|
|
|
- Analyse:"正在识别,请稍等"
|
|
|
+ showLicense: false,
|
|
|
+ showStore: false,
|
|
|
+ modalShow: false,
|
|
|
+ storecontent: "此操作需要上传正规的营业执照照片,并确保系统识别出来的信息与营业执照一致,是否同意?",
|
|
|
+ Analyse: "正在识别,请稍等",
|
|
|
+ appStoreBusinessLicenseDto: ''
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
uni.getSystemInfo({
|
|
|
- success:res=>{
|
|
|
- this.SystemInfo=res
|
|
|
- }
|
|
|
+ success: res => {
|
|
|
+ this.SystemInfo = res
|
|
|
+ }
|
|
|
});
|
|
|
- if(this.SystemInfo.platform=='ios'){
|
|
|
+ if (this.SystemInfo.platform == 'ios') {
|
|
|
uni.showModal({
|
|
|
title: "温馨提示",
|
|
|
content: "此操作需要上传正规的营业执照照片,并确保系统识别出来的信息与营业执照一致,是否同意?",
|
|
|
cancelText: "不同意",
|
|
|
confirmText: "同意",
|
|
|
- success:res=> {
|
|
|
+ success: res => {
|
|
|
if (res.cancel) {
|
|
|
uni.navigateBack({})
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
- }else{
|
|
|
- this.modalShow=true
|
|
|
+ } else {
|
|
|
+ this.modalShow = true
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
nextStep() {
|
|
|
- if(this.Analyse!="success"){
|
|
|
+ if (this.Analyse != "success") {
|
|
|
this.$u.toast(this.Analyse);
|
|
|
return
|
|
|
}
|
|
|
this.$u.route({
|
|
|
url: 'pages/login/register_2',
|
|
|
})
|
|
|
- if(this.licenseDate){
|
|
|
- uni.$emit('licenseData',this.licenseDate)
|
|
|
+ if (this.licenseDate) {
|
|
|
+ uni.$emit('licenseData', this.licenseDate)
|
|
|
+ }
|
|
|
+ this.appStoreBusinessLicenseDto = {
|
|
|
+ "address": this.licenseDate.site.words,
|
|
|
+ "businessLicense": this.licenseDate.business.words,
|
|
|
+ "businessScope": this.licenseDate.business.words,
|
|
|
+ "capital": this.licenseDate.registered.words,
|
|
|
+ "composing": this.licenseDate.certificate.words,
|
|
|
+ "createTime": "",
|
|
|
+ "creditCode": this.licenseDate.credit.words,
|
|
|
+ "identityNumber": this.licenseDate.credit.words,
|
|
|
+ "indate": this.licenseDate.validity.words,
|
|
|
+ "legalPerson": this.licenseDate.person.words,
|
|
|
+ "nameStatus": "",
|
|
|
+ "organization": this.licenseDate.company.words,
|
|
|
+ "recognition": "",
|
|
|
+ "registerDate": this.licenseDate.establishment.words,
|
|
|
+ "status": "",
|
|
|
+ "storeId": 0,
|
|
|
+ "type": this.licenseDate.site.words
|
|
|
}
|
|
|
- uni.$emit('dataUrl',{licenseUrl:this.licenseUrl,storeUrl:this.storeUrl})
|
|
|
+ uni.$emit('dataUrl', {
|
|
|
+ licenseUrl: this.licenseUrl,
|
|
|
+ storeUrl: this.storeUrl,
|
|
|
+ appStoreBusinessLicenseDto: this.appStoreBusinessLicenseDto
|
|
|
+ })
|
|
|
},
|
|
|
getLicensedata(res, index, lists, name) {
|
|
|
if (res.statusCode == 200) {
|
|
|
this.$u.toast('上传成功');
|
|
|
- this.showLicense=true
|
|
|
+ this.showLicense = true
|
|
|
uni.hideLoading();
|
|
|
this.licenseUrl = JSON.parse(res.data).data
|
|
|
request({
|
|
@@ -113,14 +138,15 @@
|
|
|
if (res.data.code == 0) {
|
|
|
this.$u.toast('识别成功');
|
|
|
this.licenseDate = res.data.data.wordsResultQuery
|
|
|
- this.Analyse=res.data.msg
|
|
|
+ this.Analyse = res.data.msg
|
|
|
}
|
|
|
if (res.data.code == 500) {
|
|
|
this.$u.toast(res.data.msg);
|
|
|
- this.Analyse=res.data.msg
|
|
|
+ this.Analyse = res.data.msg
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
this.$u.toast('识别失败');
|
|
|
+ this.Analyse = "识别失败"
|
|
|
}).finally(() => {})
|
|
|
}
|
|
|
},
|
|
@@ -128,19 +154,18 @@
|
|
|
if (res.statusCode == 200) {
|
|
|
this.$u.toast('上传成功');
|
|
|
this.storeUrl = JSON.parse(res.data).data
|
|
|
- this.showStore=true
|
|
|
+ this.showStore = true
|
|
|
}
|
|
|
},
|
|
|
- cancelModal(){
|
|
|
- uni.navigateBack({
|
|
|
- })
|
|
|
+ cancelModal() {
|
|
|
+ uni.navigateBack({})
|
|
|
},
|
|
|
- licenseRemove(){
|
|
|
- this.showLicense=false
|
|
|
- this.Analyse="正在识别,请稍等"
|
|
|
+ licenseRemove() {
|
|
|
+ this.showLicense = false
|
|
|
+ this.Analyse = "正在识别,请稍等"
|
|
|
},
|
|
|
- storeRemove(){
|
|
|
- this.showStore=false
|
|
|
+ storeRemove() {
|
|
|
+ this.showStore = false
|
|
|
}
|
|
|
},
|
|
|
}
|