From 5a8e8574dc216dd6b6e819099f921973bfb5b4a7 Mon Sep 17 00:00:00 2001 From: xuxueyang <xuxy@fengyuntec.com> Date: 星期四, 01 八月 2024 00:45:34 +0800 Subject: [PATCH] 1 --- sub_pages/supplier/supplier-info/supplier-info.vue | 38 +++++++++++++++----------------------- 1 files changed, 15 insertions(+), 23 deletions(-) diff --git a/sub_pages/supplier/supplier-info/supplier-info.vue b/sub_pages/supplier/supplier-info/supplier-info.vue index c4a3c95..2fe3f08 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')"> @@ -72,14 +72,6 @@ <view>{{dto.stationName || '请选择'}}</view> <u-icon class="m-l-a" name="arrow-right"></u-icon> </view> - <!-- <view class="m-l-a m-r-0 flex " :class="[!dto.stationId?'desc-gray':'']"> - <uni-data-picker @change="(e)=>{PickData('stationId','stationStr',e)}" placeholder="请选择" - :localdata="columns_station"> - {{dto.typeStr || '请选择'}} - </uni-data-picker> - <u-icon class="m-l-a" name="arrow-right"></u-icon> - </view> --> - </view> <view class="form-item before-line"> <view class="label required">地区</view> @@ -141,7 +133,7 @@ </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)"> @@ -159,7 +151,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)"> @@ -291,13 +283,6 @@ }).then(res => { var data = res.data this.columns_station = [data || []] - // this.columns_station = (data || []).map(item => { - // return { - // ...item, - // code: item.id, - // text: item.name, - // } - // }) }) //类型和集火站 this.$http.request('get', '/api/supplier/type/list', { @@ -326,7 +311,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]) @@ -509,10 +501,10 @@ tempFiles }) { if (errMsg === 'chooseImage:ok') { - // console.log(tempFiles[0]) - if (tempFiles[0].size > 1024 * 1024 * 5) { - that.$message.confirm('图片最多支持5M大小,超出大小限制') - return + // console.log(tempFiles[0]) + if (tempFiles[0].size > 1024 * 1024 * 5) { + that.$message.confirm('图片最多支持5M大小,超出大小限制') + return } that.$message.showLoading() that.$http.upload(tempFiles[0].path).then(async res => { -- Gitblit v1.9.3