| | |
| | | |
| | | <view class="upload-section"> |
| | | <view class="upload-title-row between-row"> |
| | | <view class="label-row"><text class="label">门店内部招牌</text><text class="required">*</text></view> |
| | | <view class="label-row"><text class="label">门店内部照片</text><text class="required">*</text></view> |
| | | <text class="upload-tip">最多上传3张照片</text> |
| | | </view> |
| | | <view class="upload-grid"> |
| | |
| | | </view> |
| | | <view class="upload-grid double-upload-grid"> |
| | | <view class="upload-box id-upload-box" @click="chooseLegalPersonCardFront"> |
| | | <image v-if="!form.legalPersonCardFront" class="camera-icon" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <image v-else class="preview-image" :src=" legalPersonCardFrontUrl" mode="aspectFill"></image> |
| | | <text v-if="!form.legalPersonCardFront" class="upload-text">上传人像面</text> |
| | | <image v-if="!form.idcardImg" class="camera-icon" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <image v-else class="preview-image" :src="idcardImgUrl" mode="aspectFill"></image> |
| | | <text v-if="!form.idcardImg" class="upload-text">上传人像面</text> |
| | | </view> |
| | | <view class="upload-box id-upload-box" @click="chooseLegalPersonCardBack"> |
| | | <image v-if="!form.legalPersonCardBack" class="camera-icon" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <image v-else class="preview-image" :src="legalPersonCardBackUrl" mode="aspectFill"></image> |
| | | <text v-if="!form.legalPersonCardBack" class="upload-text">上传国徽面</text> |
| | | <image v-if="!form.idcardImgBack" class="camera-icon" src="/static/icon/ic_camera@2x.png" mode="widthFix"></image> |
| | | <image v-else class="preview-image" :src="idcardImgBackUrl" mode="aspectFill"></image> |
| | | <text v-if="!form.idcardImgBack" class="upload-text">上传国徽面</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | laborContractImgs: [], |
| | | socialSecurityImgs: [], |
| | | legalPersonCard: '', |
| | | legalPersonCardFront: '', |
| | | legalPersonCardBack: '', |
| | | legalPersonName: '', |
| | | legalPersonPhone: '', |
| | | aliAccount: '', |
| | |
| | | businessImgUrl:'', |
| | | idcardImgUrl: '', |
| | | idcardImgBackUrl: '', |
| | | legalPersonCardFrontUrl: '', |
| | | legalPersonCardBackUrl: '', |
| | | previewMode: 'filled', |
| | | imgPrefix: '', |
| | | currentStep: 1, |
| | |
| | | return |
| | | } |
| | | if (!this.form.storeInteriorImgs || this.form.storeInteriorImgs.length === 0) { |
| | | uni.showToast({ title: '请上传门店内部招牌', icon: 'none' }) |
| | | uni.showToast({ title: '请上传门店内部照片', icon: 'none' }) |
| | | return |
| | | } |
| | | this.currentStep = 2 |
| | |
| | | uni.showToast({ title: '请输入法人身份证号', icon: 'none' }) |
| | | return |
| | | } |
| | | if (!this.form.legalPersonCardFront) { |
| | | if (!this.form.idcardImg) { |
| | | uni.showToast({ title: '请上传法人身份证人像面', icon: 'none' }) |
| | | return |
| | | } |
| | | if (!this.form.legalPersonCardBack) { |
| | | if (!this.form.idcardImgBack) { |
| | | uni.showToast({ title: '请上传法人身份证国徽面', icon: 'none' }) |
| | | return |
| | | } |
| | |
| | | uni.showToast({ title: '请上传营业执照', icon: 'none' }) |
| | | return |
| | | } |
| | | this.form.idcardImgBack = this.form.legalPersonCardBack |
| | | this.form.idcardImg = this.form.legalPersonCardFront |
| | | } |
| | | if (!this.agreed) { |
| | | uni.showToast({ title: '请先阅读并同意协议', icon: 'none' }) |
| | |
| | | this.businessImgUrl=data.businessImgUrl||'' |
| | | this.idcardImgUrl=data.idcardImgUrl||'' |
| | | this.idcardImgBackUrl=data.idcardImgBackUrl||'' |
| | | this.legalPersonCardFrontUrl=data.idcardImgUrl||'' |
| | | this.legalPersonCardBackUrl=data.idcardImgBackUrl||'' |
| | | this.qualificationType = data.companyType === 0 ? 'personal' : 'company' |
| | | this.qualificationType = data.companyType === 'personal' ? 'personal' : 'company' |
| | | if (data.storeFrontImgs) { |
| | | this.storeFrontImages = data.storeFrontImgUrls |
| | | this.uploadedImagesStoreFront = data.storeFrontImgUrls.map(url => ({ url })) |
| | |
| | | this.form.socialSecurityImgs = data.socialSecurityImgs |
| | | } |
| | | this.form.legalPersonCard = data.legalPersonCard || '' |
| | | this.form.legalPersonCardBack = data.legalPersonCardBack || '' |
| | | this.form.businessImg = data.businessImg || '' |
| | | } |
| | | } catch (error) { |
| | |
| | | this.form.storeInteriorImgs = this.idCardImages.map(url => this.getShortPath(url)) |
| | | }, |
| | | async chooseIdCardImage() { |
| | | const maxCount = 2 |
| | | const maxCount = 3 |
| | | const currentCount = this.idCardImages.length |
| | | const remainingCount = maxCount - currentCount |
| | | if (remainingCount <= 0) { |
| | |
| | | uni.showLoading({ title: '上传中...', mask: true }) |
| | | try { |
| | | const uploadResults = await this.uploadFiles(tempFilePaths, 1) |
| | | this.form.legalPersonCardFront = uploadResults[0].imgaddr || uploadResults[0].path || uploadResults[0] |
| | | this.legalPersonCardFrontUrl = uploadResults[0].url || uploadResults[0].path || uploadResults[0] |
| | | this.form.idcardImg = uploadResults[0].imgaddr || uploadResults[0].path || uploadResults[0] |
| | | this.idcardImgUrl = uploadResults[0].url || uploadResults[0].path || uploadResults[0] |
| | | uni.hideLoading() |
| | | uni.showToast({ title: '上传成功', icon: 'success' }) |
| | | } catch (error) { |
| | |
| | | uni.showLoading({ title: '上传中...', mask: true }) |
| | | try { |
| | | const uploadResults = await this.uploadFiles(tempFilePaths, 1) |
| | | this.form.legalPersonCardBack = uploadResults[0].imgaddr || uploadResults[0].path || uploadResults[0] |
| | | this.legalPersonCardBackUrl = uploadResults[0].url || uploadResults[0].path || uploadResults[0] |
| | | this.form.idcardImgBack = uploadResults[0].imgaddr || uploadResults[0].path || uploadResults[0] |
| | | this.idcardImgBackUrl = uploadResults[0].url || uploadResults[0].path || uploadResults[0] |
| | | uni.hideLoading() |
| | | uni.showToast({ title: '上传成功', icon: 'success' }) |
| | | } catch (error) { |