doum
2026-04-28 9c4c0f7e30e66fe54f1b9cdab665b6e4769dbd27
small-program/pages/store-apply/store-apply.vue
@@ -379,13 +379,16 @@
               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) {
@@ -456,6 +459,10 @@
                  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