This commit is contained in:
parent
f37974ed00
commit
e7906d2f0e
|
@ -24,7 +24,7 @@
|
|||
申请记录
|
||||
<text class="iconfont icon-xiangyou"></text>
|
||||
</view>
|
||||
<view class='list'>
|
||||
<view class='list' style="margin-top: 40rpx;">
|
||||
<view class="item">
|
||||
<view class="acea-row row-middle">
|
||||
<text class="item-name required">店铺名称</text>
|
||||
|
@ -479,12 +479,12 @@
|
|||
},
|
||||
validateBtn() {
|
||||
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;
|
||||
|
||||
console.log(this.shopInfo);
|
||||
|
||||
|
||||
if (shopName&&mer_classification&&businessAddress&&businessAddressDetail&&EnterpriseType&&EnterpriseName&&EnterpriseJoinName&&EnterprisePhone&&EnterpriseId&&EnterpriseRooter&&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){
|
||||
return
|
||||
}else if (isFlagshipStore&&!isFlagshipStorePhoto){
|
||||
|
@ -520,6 +520,8 @@
|
|||
|
||||
|
||||
this.validate = true;
|
||||
}else{
|
||||
this.validate=false;
|
||||
}
|
||||
},
|
||||
// 获取商户分类
|
||||
|
@ -562,7 +564,25 @@
|
|||
this.shopInfo.EnterpriseType = this.enterpriseArray[e.target.value];
|
||||
this.validateBtn();
|
||||
},
|
||||
checkPhone(phone) {
|
||||
return /^1[3-9]\d{9}$/.test(phone);
|
||||
},
|
||||
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){
|
||||
uni.navigateTo({
|
||||
url: '/pages/store/settled/step2?mer_i_id='+this.mer_i_id
|
||||
|
|
|
@ -351,6 +351,8 @@
|
|||
data2.idcard=idcard;
|
||||
uni.setStorageSync('shopInfo',data2);
|
||||
this.validate=true;
|
||||
}else{
|
||||
this.validate=false;
|
||||
}
|
||||
},
|
||||
changeBusiness(e){
|
||||
|
@ -366,6 +368,19 @@
|
|||
this.validateBtn();
|
||||
},
|
||||
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){
|
||||
uni.navigateTo({
|
||||
url:'/pages/store/settled/step3?mer_i_id='+this.mer_i_id
|
||||
|
|
Loading…
Reference in New Issue