|
@@ -4,39 +4,39 @@
|
|
|
<view slot="head">
|
|
|
<view class="u-flex">
|
|
|
<view style="width: 8rpx;height: 34rpx;background: #0292FD;margin-right:20rpx;"></view>
|
|
|
- 请按照要求上传您的营业执照和门头照片
|
|
|
+ {{$t('register.tips')}}
|
|
|
</view>
|
|
|
</view>
|
|
|
<view slot="body">
|
|
|
<u-upload :custom-btn="true" max-count="1" class="u-flex u-row-center" :action="action" :form-data="licensepicType"
|
|
|
- @on-change="getLicensedata" @on-remove="licenseRemove">
|
|
|
+ @on-change="getLicensedata" @on-remove="licenseRemove" :show-tips="false" :reloadText="this.$t('register.reloadText')">
|
|
|
<view slot="addBtn" hover-class="slot-btn__hover" hover-stay-time="150">
|
|
|
<u-image width="475rpx" height="303rpx" src="../../static/sailun/upload_preview.png"></u-image>
|
|
|
</view>
|
|
|
</u-upload>
|
|
|
<view class="u-flex u-row-center" style="color: #787878;margin: 20rpx 0 60rpx 0;">
|
|
|
- 请上传营业执照
|
|
|
+ {{$t('register.uplicense')}}
|
|
|
</view>
|
|
|
<u-upload :custom-btn="true" max-count="1" class="u-flex u-row-center" :action="action" :form-data="storepicType"
|
|
|
- @on-change="getStoredata" @on-remove="storeRemove">
|
|
|
+ @on-change="getStoredata">
|
|
|
<view slot="addBtn" hover-class="slot-btn__hover" hover-stay-time="150">
|
|
|
<u-image width="475rpx" height="303rpx" src="../../static/sailun/upload_preview.png"></u-image>
|
|
|
</view>
|
|
|
</u-upload>
|
|
|
<view class="u-flex u-row-center" style="color: #787878;margin: 20rpx 0;">
|
|
|
- 请上传门头照片
|
|
|
+ {{$t('register.uppicture')}}
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-card>
|
|
|
<view style="color: #787878;margin: 0 40rpx;">
|
|
|
- 注:请确保系统识别的营业执照名称和法人信息与营业执照上的信息保持一致
|
|
|
+ {{$t('register.tips2')}}
|
|
|
</view>
|
|
|
<view style="margin: 30rpx;">
|
|
|
- <u-button type="primary" @click="nextStep" v-if="showLicense&&showStore">下一步</u-button>
|
|
|
+ <u-button type="primary" @click="nextStep" v-if="showLicense&&showStore">{{$t('register.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" :title="this.$t('register.tipstitle')" :content="storecontent" :show-cancel-button="true"
|
|
|
+ :confirm-text="this.$t('register.tipsconfirmText')" :cancel-text="this.$t('register.tipscancelText')" @cancel="cancelModal"></u-modal>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -58,8 +58,8 @@
|
|
|
showLicense: false,
|
|
|
showStore: false,
|
|
|
modalShow: false,
|
|
|
- storecontent: "此操作需要上传正规的营业执照照片,并确保系统识别出来的信息与营业执照一致,是否同意?",
|
|
|
- Analyse: "正在识别,请稍等",
|
|
|
+ storecontent: this.$t('register.tipscontent'),
|
|
|
+ Analyse: this.$t('register.Analyse'),
|
|
|
appStoreBusinessLicenseDto: ''
|
|
|
};
|
|
|
},
|
|
@@ -71,10 +71,10 @@
|
|
|
});
|
|
|
if (this.SystemInfo.platform == 'ios') {
|
|
|
uni.showModal({
|
|
|
- title: "温馨提示",
|
|
|
- content: "此操作需要上传正规的营业执照照片,并确保系统识别出来的信息与营业执照一致,是否同意?",
|
|
|
- cancelText: "不同意",
|
|
|
- confirmText: "同意",
|
|
|
+ title: this.$t('register.tipstitle'),
|
|
|
+ content: this.$t('register.tipscontent'),
|
|
|
+ cancelText: this.$t('register.tipscancelText'),
|
|
|
+ confirmText: this.$t('register.tipsconfirmText'),
|
|
|
success: res => {
|
|
|
if (res.cancel) {
|
|
|
uni.navigateBack({})
|
|
@@ -124,7 +124,7 @@
|
|
|
},
|
|
|
getLicensedata(res, index, lists, name) {
|
|
|
if (res.statusCode == 200) {
|
|
|
- this.$u.toast('上传成功');
|
|
|
+ this.$u.toast(this.$t('register.sucupload'));
|
|
|
this.showLicense = true
|
|
|
uni.hideLoading();
|
|
|
this.licenseUrl = JSON.parse(res.data).data
|
|
@@ -136,7 +136,7 @@
|
|
|
}
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 0) {
|
|
|
- this.$u.toast('识别成功');
|
|
|
+ this.$u.toast(this.$t('register.sucAnalyse'));
|
|
|
this.licenseDate = res.data.data.wordsResultQuery
|
|
|
this.Analyse = res.data.msg
|
|
|
}
|
|
@@ -145,14 +145,14 @@
|
|
|
this.Analyse = res.data.msg
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
- this.$u.toast('识别失败');
|
|
|
- this.Analyse = "识别失败"
|
|
|
+ this.$u.toast(this.$t('register.errAnalyse'));
|
|
|
+ this.Analyse = this.$t('register.errAnalyse')
|
|
|
}).finally(() => {})
|
|
|
}
|
|
|
},
|
|
|
getStoredata(res, index, lists, name) {
|
|
|
if (res.statusCode == 200) {
|
|
|
- this.$u.toast('上传成功');
|
|
|
+ this.$u.toast(this.$t('register.sucupload'));
|
|
|
this.storeUrl = JSON.parse(res.data).data
|
|
|
this.showStore = true
|
|
|
}
|
|
@@ -161,8 +161,9 @@
|
|
|
uni.navigateBack({})
|
|
|
},
|
|
|
licenseRemove() {
|
|
|
+ this.$u.toast(this.$t('register.delupload'));
|
|
|
this.showLicense = false
|
|
|
- this.Analyse = "正在识别,请稍等"
|
|
|
+ this.Analyse = this.$t('register.Analyse')
|
|
|
},
|
|
|
storeRemove() {
|
|
|
this.showStore = false
|