| | |
| | | return |
| | | } |
| | | const mobileRegex = /^1\d{10}$/ |
| | | const landlineRegex = /^\d{3,4}-?\d{7,8}$/ |
| | | if (!mobileRegex.test(this.form.linkPhone) && !landlineRegex.test(this.form.linkPhone)) { |
| | | uni.showToast({ title: '请输入正确的手机号或固定电话', icon: 'none' }) |
| | | if (!mobileRegex.test(this.form.linkPhone)) { |
| | | uni.showToast({ title: '请输入正确的手机号', icon: 'none' }) |
| | | return |
| | | } |
| | | if (!this.form.idcard) { |
| | | uni.showToast({ title: '请输入联系人身份证号', icon: 'none' }) |
| | | return |
| | | } |
| | | if (!/^\d{18}$/.test(this.form.idcard)) { |
| | | uni.showToast({ title: '请输入18位身份证号', icon: 'none' }) |
| | | return |
| | | } |
| | | if (!this.form.storeFrontImgs || this.form.storeFrontImgs.length === 0) { |
| | |
| | | uni.showToast({ title: '请输入法人身份证号', icon: 'none' }) |
| | | return |
| | | } |
| | | if (!/^\d{18}$/.test(this.form.legalPersonCard)) { |
| | | uni.showToast({ title: '请输入18位身份证号', icon: 'none' }) |
| | | return |
| | | } |
| | | if (!this.form.idcardImg) { |
| | | uni.showToast({ title: '请上传法人身份证人像面', icon: 'none' }) |
| | | return |