同步之前的版本-修改集采身份的表单

This commit is contained in:
wangxiaowei 2024-06-27 10:25:29 +08:00
parent e2e005ea84
commit dde20d8d13

@ -69,16 +69,16 @@
</view>
<view>
<u-field v-model="formData.u_phone" label="手机号码" label-width="160" placeholder="请输入手机号码" required />
<u-field v-model="formData.u_name" label="姓名" label-width="160" placeholder="请输入姓名" required />
</view>
<view>
<u-field v-model="formData.u_address" label="现居地址" label-width="160" placeholder="请输入现居地址" required />
<u-field v-model="formData.u_phone" label="手机号码" label-width="160" placeholder="请输入手机号码" required />
</view>
<view @click="showAddress = true">
<u-field v-if="formData.province_name ==''" disabled label="所在地区" label-width="160" placeholder="请选择地区" required />
<u-field v-else v-model="formData.province_name + '-' + formData.city_name + '-' + formData.area_name" disabled label="所在地区" label-width="160" placeholder="请选择地区" required />
<u-field v-if="formData.province_name ==''" disabled label="现居地址" label-width="160" placeholder="请选择现居地址" required />
<u-field v-else v-model="formData.province_name + '-' + formData.city_name + '-' + formData.area_name" disabled label="现居地址" label-width="160" placeholder="现居地址" required />
</view>
<view class="flex m-t-20">
@ -110,7 +110,7 @@
<text v-if="wholesale_state == 3">审核失败请重新提交</text>
</button>
<button v-if="wholesale_state == 1" class="wholesale-price-disabled-style">审核中</button>
<button v-if="wholesale_state == 2" class="wholesale-price-success-style">审核通过</button>
<button v-if="wholesale_state == 2" class="wholesale-price-success-style">审核已通过</button>
</view>
</view>
@ -134,7 +134,7 @@ export default {
current: 0,
formData: {
u_phone: '', // 手机号码
u_address: '', //现居地址,
u_name: '', //现居地址,
province_name: '', // 省
city_name: '', // 市
area_name: '', // 区
@ -201,7 +201,6 @@ export default {
this.u_examine_state = this.formData.u_examine_state;
this.wholesale_state = this.formData.wholesale_state;
if (this.u_examine_state == 0 ) {
this.btnStatus = true;
this.radioDisable = true;
@ -264,6 +263,13 @@ export default {
return
}
if(!this.formData.u_name){
this.$toast({
title:'请填写您的姓名'
})
return
}
if (!this.$u.test.mobile(this.formData.u_phone)) {
this.$toast({
title:'请输入正确的手机号'
@ -271,16 +277,9 @@ export default {
return
}
if(!this.formData.u_address){
this.$toast({
title:'请填写现居地址'
})
return
}
if(this.formData.province_id == 0){
this.$toast({
title:'请选择所在地区'
title:'请选择现居地址'
})
return
}
@ -417,7 +416,8 @@ export default {
}
}
.submit-btn {
width: 100%;
width: 90%;
margin: 0 auto;
.btn-style {
width: 100%;
border: none;
@ -437,13 +437,23 @@ export default {
background: linear-gradient(#12c96e 0%, #0abd57 50.76%, #03b240 100%);
color: #fff;
border-radius: 999rpx;
position: fixed;
bottom: 40rpx;
width: 90%;
left: 50%;
transform: translateX(-50%);
}
}
}
}
.wholesale-price-btn {
width: 100%;
width: 90%;
margin: 0 auto;
position: fixed;
bottom: 0;
left: 50%;
transform: translateX(-50%);
.wholesale-price-btn-style {
width: 100%;
border: none;
@ -470,4 +480,4 @@ export default {
padding:30rpx 0 40rpx 0;
}
}
</style>
</style>