This commit is contained in:
yangtao 2024-04-13 10:43:53 +08:00
parent 6bd38d8761
commit f203f6aac7
3 changed files with 78 additions and 42 deletions

View File

@ -143,7 +143,8 @@
v-model="shopInfo.EnterpriseId" @input="validateBtn" placeholder-class='placeholder' /> v-model="shopInfo.EnterpriseId" @input="validateBtn" placeholder-class='placeholder' />
</view> </view>
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="tips-text">请填写铸源商城ZY开头会员编号</text> <!-- <text class="tips-text">请填写铸源商城ZY开头会员编号</text> -->
<text class="tips-text">请填写铸源优品ID号</text>
</view> </view>
</view> </view>
<view class="item"> <view class="item">
@ -172,7 +173,8 @@
@input="validateBtn" placeholder-class='placeholder' /> @input="validateBtn" placeholder-class='placeholder' />
</view> </view>
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="tips-text">请填写铸源商城ZY开头会员编号</text> <!-- <text class="tips-text">请填写铸源商城ZY开头会员编号</text> -->
<text class="tips-text">请填写铸源优品ID号</text>
</view> </view>
</view> </view>
<view class="item"> <view class="item">
@ -488,44 +490,44 @@
shopName,businessAddress,businessAddressDetail,EnterpriseType,EnterpriseName,EnterpriseJoinName,EnterprisePhone,EnterpriseId,userName,userPhone,userId,userPhoto,isVeteran,isVeteranPhoto,isFlagshipStore,isFlagshipStorePhoto,mer_type,mer_storeType shopName,businessAddress,businessAddressDetail,EnterpriseType,EnterpriseName,EnterpriseJoinName,EnterprisePhone,EnterpriseId,userName,userPhone,userId,userPhoto,isVeteran,isVeteranPhoto,isFlagshipStore,isFlagshipStorePhoto,mer_type,mer_storeType
} = this.shopInfo; } = this.shopInfo;
console.log(this.shopInfo);
if (shopName&&businessAddress&&businessAddressDetail&&EnterpriseType&&EnterpriseName&&EnterpriseJoinName&&EnterprisePhone&&EnterpriseId&&userName&&userPhone&&userId&&userPhoto&&mer_type&&mer_storeType ) { if (shopName&&businessAddress&&businessAddressDetail&&EnterpriseType&&EnterpriseName&&EnterpriseJoinName&&EnterprisePhone&&EnterpriseId&&userName&&userPhone&&userId&&userPhoto&&mer_type&&mer_storeType ) {
if(isVeteran&&!isVeteranPhoto){ if(isVeteran&&isVeteranPhoto.length==0){
return this.validate=false;
}else if (isFlagshipStore&&!isFlagshipStorePhoto){ }else if (isFlagshipStore&&isFlagshipStorePhoto.length==0){
return this.validate=false;
} }else{
let date2 = { let date2 = {
phone: userPhone, phone: userPhone,
mer_name:shopName, mer_name:shopName,
name:userName, name:userName,
mer_type_id:mer_type,//hjb mer_type_id:mer_type,//hjb
com:{ com:{
name:EnterpriseName, name:EnterpriseName,
type:EnterpriseType, type:EnterpriseType,
contact:EnterpriseJoinName, contact:EnterpriseJoinName,
mobile:EnterprisePhone, mobile:EnterprisePhone,
number:EnterpriseId, number:EnterpriseId,
initiator:userName, initiator:userName,
inti_mobile:userPhone, inti_mobile:userPhone,
inti_number:userId, inti_number:userId,
init_image:userPhoto, init_image:userPhoto,
is_huimei:isVeteran, is_huimei:isVeteran,
image_huimei:isVeteranPhoto, image_huimei:isVeteranPhoto,
is_soldier:isFlagshipStore, is_soldier:isFlagshipStore,
image_soldier:isFlagshipStorePhoto, image_soldier:isFlagshipStorePhoto,
}, },
biz:{ biz:{
province:businessAddress.split('/')[0], province:businessAddress.split('/')[0],
city:businessAddress.split('/')[1], city:businessAddress.split('/')[1],
address_true:businessAddressDetail, address_true:businessAddressDetail,
}
} }
uni.setStorageSync('shopInfo', date2)
this.validate = true;
} }
uni.setStorageSync('shopInfo', date2)
this.validate = true;
}else{ }else{
this.validate=false; this.validate=false;
} }
@ -603,9 +605,11 @@
viteran(e) { viteran(e) {
// console.log('e: ',e); // console.log('e: ',e);
this.shopInfo.isVeteran = e.detail.value; this.shopInfo.isVeteran = e.detail.value;
this.validateBtn();
}, },
flagShipStore(e) { flagShipStore(e) {
this.shopInfo.isFlagshipStore = e.detail.value; this.shopInfo.isFlagshipStore = e.detail.value;
this.validateBtn();
}, },
/** /**
* 上传文件 * 上传文件

View File

@ -387,7 +387,7 @@
if(this.shopInfo.idCardPhoto.length!=2){ if(this.shopInfo.idCardPhoto.length!=2){
uni.showToast({ uni.showToast({
icon:'none', icon:'none',
title: '请身份证正反面' title: '请上传身份证正反面'
}); });
return return
}else if(this.shopInfo.businessLicense.length!=1){ }else if(this.shopInfo.businessLicense.length!=1){
@ -396,16 +396,29 @@
title: '请上传营业执照' title: '请上传营业执照'
}); });
return return
}else if(!this.isValidDate(this.shopInfo.idCardStartTime)||!this.isValidDate(this.shopInfo.idCardEndTime)){ }else if(!this.isValidDate(this.shopInfo.idCardStartTime)){
uni.showToast({ uni.showToast({
icon:'none', icon:'none',
title: '法人身份证有效期格式错误' title: '法人身份证有效期开始格式错误'
}); });
return return
}else if(!this.isValidDate(this.shopInfo.countStartTime)||!this.isValidDate(this.shopInfo.countEndTime)){ }else if(!this.isValidDate(this.shopInfo.idCardEndTime)){
uni.showToast({ uni.showToast({
icon:'none', icon:'none',
title: '统一社会信用证日期格式错误' title: '法人身份证有效期结束格式错误'
});
return
}else if(!this.isValidDate(this.shopInfo.countStartTime)){
uni.showToast({
icon:'none',
title: '统一社会信用证开始日期格式错误'
});
return
}
else if(!this.isValidDate(this.shopInfo.countEndTime)){
uni.showToast({
icon:'none',
title: '统一社会信用证截止日期格式错误'
}); });
return return
} }
@ -576,6 +589,21 @@
padding: 8rpx 18rpx; padding: 8rpx 18rpx;
border-radius: 20px 0px 0px 20px; border-radius: 20px 0px 0px 20px;
} }
.merchantsSettled .list .fail-style{
// border: solid 1px red;
background-color: rgba(255, 24, 24,0.1);
animation: errorTips 1s ease-in-out;
}
@keyframes errorTips {
to{
// border: solid 1px red;
background-color: white;
}
form{
background-color: rgba(255, 24, 24,0.1);
// border: none;
}
}
.merchantsSettled .list .item { .merchantsSettled .list .item {
padding: 50rpx 0 20rpx; padding: 50rpx 0 20rpx;
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
@ -728,6 +756,7 @@
.merchantsSettled .list .item input { .merchantsSettled .list .item input {
// width: 400rpx; // width: 400rpx;
font-size: 30rpx; font-size: 30rpx;
padding-right: 20rpx;
} }
.merchantsSettled .list .item .placeholder { .merchantsSettled .list .item .placeholder {
color: #b2b2b2; color: #b2b2b2;

View File

@ -55,9 +55,12 @@
<text class="item-name required">结算公户户名</text> <text class="item-name required">结算公户户名</text>
<input type="text" style="text-align: right;flex:1;" placeholder="请输入" v-model="shopInfo.bankCardUserName" @input="validateBtn" placeholder-class='placeholder' /> <input type="text" style="text-align: right;flex:1;" placeholder="请输入" v-model="shopInfo.bankCardUserName" @input="validateBtn" placeholder-class='placeholder' />
</view> </view>
<view class="acea-row row-middle"> <view class="acea-row row-middle" v-if="shopInfo.bankCardUserName">
<text class="tips-text" >提示请核验信息是否正确</text> <text class="tips-text" >提示请核验信息是否正确</text>
</view> </view>
<view class="acea-row row-middle" v-else>
<text class="tips-text" >提示(公户户名需手动填写)</text>
</view>
</view> </view>
<view class="item"> <view class="item">