This commit is contained in:
yangtao 2024-04-11 20:21:29 +08:00
parent f37974ed00
commit e7906d2f0e
2 changed files with 39 additions and 4 deletions

View File

@ -24,7 +24,7 @@
申请记录 申请记录
<text class="iconfont icon-xiangyou"></text> <text class="iconfont icon-xiangyou"></text>
</view> </view>
<view class='list'> <view class='list' style="margin-top: 40rpx;">
<view class="item"> <view class="item">
<view class="acea-row row-middle"> <view class="acea-row row-middle">
<text class="item-name required">店铺名称</text> <text class="item-name required">店铺名称</text>
@ -479,12 +479,12 @@
}, },
validateBtn() { validateBtn() {
let { let {
shopName,mer_classification,businessAddress,businessAddressDetail,EnterpriseType,EnterpriseName,EnterpriseJoinName,EnterprisePhone,EnterpriseId,EnterpriseRooter,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&&mer_classification&&businessAddress&&businessAddressDetail&&EnterpriseType&&EnterpriseName&&EnterpriseJoinName&&EnterprisePhone&&EnterpriseId&&EnterpriseRooter&&userName&&userPhone&&userId&&userPhoto&&mer_type&&mer_storeType ) {
if(isVeteran&&!isVeteranPhoto){ if(isVeteran&&!isVeteranPhoto){
return return
}else if (isFlagshipStore&&!isFlagshipStorePhoto){ }else if (isFlagshipStore&&!isFlagshipStorePhoto){
@ -520,6 +520,8 @@
this.validate = true; this.validate = true;
}else{
this.validate=false;
} }
}, },
// //
@ -562,7 +564,25 @@
this.shopInfo.EnterpriseType = this.enterpriseArray[e.target.value]; this.shopInfo.EnterpriseType = this.enterpriseArray[e.target.value];
this.validateBtn(); this.validateBtn();
}, },
checkPhone(phone) {
return /^1[3-9]\d{9}$/.test(phone);
},
nextStep() { nextStep() {
let a=this.checkPhone(this.shopInfo.userPhone);
let b=this.checkPhone(this.shopInfo.EnterprisePhone);
if(!a||!b){
uni.showToast({
icon:'none',
title: '手机号格式有误'
});
return
}else if(this.shopInfo.userPhoto){
uni.showToast({
icon:'none',
title: '请上传手持介绍信'
});
return
}
if(this.mer_i_id){ if(this.mer_i_id){
uni.navigateTo({ uni.navigateTo({
url: '/pages/store/settled/step2?mer_i_id='+this.mer_i_id url: '/pages/store/settled/step2?mer_i_id='+this.mer_i_id

View File

@ -351,6 +351,8 @@
data2.idcard=idcard; data2.idcard=idcard;
uni.setStorageSync('shopInfo',data2); uni.setStorageSync('shopInfo',data2);
this.validate=true; this.validate=true;
}else{
this.validate=false;
} }
}, },
changeBusiness(e){ changeBusiness(e){
@ -366,6 +368,19 @@
this.validateBtn(); this.validateBtn();
}, },
nextStep(){ nextStep(){
if(this.shopInfo.idCardPhoto.length!=2){
uni.showToast({
icon:'none',
title: '请身份证正反面'
});
return
}else if(this.shopInfo.businessLicense){
uni.showToast({
icon:'none',
title: '请上传营业执照'
});
return
}
if(this.mer_i_id){ if(this.mer_i_id){
uni.navigateTo({ uni.navigateTo({
url:'/pages/store/settled/step3?mer_i_id='+this.mer_i_id url:'/pages/store/settled/step3?mer_i_id='+this.mer_i_id