From c0c8ba4ea76109e21fde94ace1ea41a402aabf72 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期四, 01 八月 2024 16:57:45 +0800 Subject: [PATCH] fix bug --- sub_pages/supplier/supplier-info/supplier-info.vue | 51 +++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 41 insertions(+), 10 deletions(-) diff --git a/sub_pages/supplier/supplier-info/supplier-info.vue b/sub_pages/supplier/supplier-info/supplier-info.vue index 67e3878..77cc38a 100644 --- a/sub_pages/supplier/supplier-info/supplier-info.vue +++ b/sub_pages/supplier/supplier-info/supplier-info.vue @@ -27,7 +27,7 @@ </view> </view> <view class="form-item bottom-border-no"> - <view class="label required" style="width: 360rpx;">店铺头像(750*750px)</view> + <view class="label required" style="width: 360rpx;">店铺头像(推荐80*80px)</view> <view class="m-l-a m-r-0 flex m-t-20 m-b-20"> <view class="component-button-upload" @click="uploadIcon('cover')"> @@ -114,26 +114,31 @@ <view class="label required">选择审核方式</view> <view class="m-l-a m-r-0 flex"> - <u-radio-group v-model="dto.idcardType" placement="row"> + <!-- <u-radio-group v-model="dto.idcardType" placement="row"> <u-radio :customStyle="{'margin-bottom': '8px','margin-right': '8px','font-size':'28rpx'}" v-for="(item, index) in shTypeList" :key="index" :label="item.name" :name="item.name"> </u-radio> - </u-radio-group> + </u-radio-group> --> + <view> + <radio :checked="dto.idcardType==='身份证'" @click="dto.idcardType='身份证'"> + </radio>身份证 + </view> + <view> + <radio :checked="dto.idcardType==='营业执照'" @click="dto.idcardType='营业执照'"> + </radio>营业执照 + </view> </view> </view> <view class="form-item bottom-border-no before-line m-t-20 p-b-20" v-if="dto.idcardType=='身份证'"> <view class="label required">身份证正反面</view> <view class="m-l-a m-r-0 flex"> - <!-- <view class="component-button-upload m-r-15" @click="uploadIcon('idCards')"> - - </view> --> <view class="component-button-upload" @click="uploadIcon('idCards')"> </view> </view> </view> <view class="flex p20" style="padding-top: 0rpx;padding-bottom: 10rpx" - v-if="dto.idcardType=='身份证'&&dto.idCards&&dto.idCards.length>0"> + v-if="dto.idcardType==='身份证'&&dto.idCards&&dto.idCards.length>0"> <view class="m-t-12 m-r-10 " v-for="(tBanner,index) of dto.idCards" :key="index"> <image class="banner-img" :src="tBanner.url" @click.stop="previewImg(tBanner.url)"> @@ -151,7 +156,7 @@ </view> </view> <view class="flex p20" style="padding-top: 0rpx;padding-bottom: 10rpx" - v-if="dto.idcardType=='营业执照'&&dto.pictures&&dto.pictures.length>0"> + v-if="dto.idcardType==='营业执照'&&dto.pictures&&dto.pictures.length>0"> <view class="m-t-12 m-r-10 " v-for="(tBanner,index) of dto.pictures" :key="index"> <image class="banner-img" :src="tBanner.url" @click.stop="previewImg(tBanner.url)"> @@ -162,9 +167,16 @@ - <view class="button-green-1 m-t-20 button-fixed-bottom before-line " @click="submit"> + <view class="button-green-1 m-t-20 button-fixed-bottom before-line " style="font-size: 22rpx;" + v-if="currentInfo.supplierDTO&¤tInfo.supplierDTO.status==='P'"> + 审核已通过,若修改信息请联系客服 + </view> + + <view class="button-green-1 m-t-20 button-fixed-bottom before-line " v-else @click="submit"> 提交审核 </view> + + </view> @@ -311,7 +323,14 @@ this.dto.province = '' this.dto.city = '' this.dto.region = '' - if (e.detail.value.length <= 3) { + if (e.detail.value.length == 2) { + if (!!e.detail.value[0]) + this.dto.province = e.detail.value[0].value + if (!!e.detail.value[0]) + this.dto.city = e.detail.value[0].value + if (!!e.detail.value[1]) + this.dto.region = e.detail.value[1].value + } else if (e.detail.value.length <= 3) { if (!!e.detail.value[0]) this.dto.province = e.detail.value[0].value if (!!e.detail.value[1]) @@ -437,10 +456,22 @@ return } } + if (this.dto.contactTel.length !== 11 && !this.dto.contactTel.startsWith('1')) { + this.$message.showToast(`联系方式需要为11位,且开头为1`) + return + } + if (isNaN(parseInt(this.dto.contactTel))) { + this.$message.showToast(`联系方式需要为11位手机号,格式错误`) + return + } if (this.dto.idcardType == '身份证' && this.dto.idCards.length == 0) { this.$message.showToast(`${this.dto.idcardType}信息未填写`) return } + if (this.dto.idcardType == '身份证' && this.dto.idCards.length < 2) { + this.$message.showToast(`${this.dto.idcardType}信息未填写完整,至少上传两张图片(正反面)`) + return + } if (this.dto.idcardType !== '身份证' && this.dto.pictures.length == 0) { this.$message.showToast(`${this.dto.idcardType}信息未填写`) return -- Gitblit v1.9.3