| | |
| | | <view class="form-group phone-group"> |
| | | <view class="label-row"><text class="label">联系人电话</text><text class="required">*</text></view> |
| | | <view class="input-with-icon"> |
| | | <input class="text-input" type="number" maxlength="11" :value="form.linkPhone" @input="handleLinkPhoneInput" placeholder="请输入联系人电话" placeholder-style="color: #c1c7d0;" /> |
| | | <input class="text-input" type="number" :value="form.linkPhone" @input="handleLinkPhoneInput" placeholder="请输入联系人电话" placeholder-style="color: #c1c7d0;" /> |
| | | </view> |
| | | </view> |
| | | <view class="divider"></view> |
| | | |
| | | <view class="form-group"> |
| | | <view class="label-row"><text class="label">联系人身份证号</text><text class="required">*</text></view> |
| | | <input class="text-input" type="idcard" maxlength="18" :value="form.idcard" @input="handleIdcardInput" placeholder="请输入联系人身份证号" placeholder-style="color: #c1c7d0;" /> |
| | | <input class="text-input" type="idcard" :value="form.idcard" @input="handleIdcardInput" placeholder="请输入联系人身份证号" placeholder-style="color: #c1c7d0;" /> |
| | | </view> |
| | | <view class="divider"></view> |
| | | |
| | |
| | | return |
| | | } |
| | | const mobileRegex = /^1\d{10}$/ |
| | | const landlineRegex = /^\d{3,4}-?\d{7,8}$/ |
| | | if (!mobileRegex.test(this.form.legalPersonPhone) && !landlineRegex.test(this.form.legalPersonPhone)) { |
| | | uni.showToast({ title: '请输入正确的手机号或固定电话', icon: 'none' }) |
| | | if (!mobileRegex.test(this.form.legalPersonPhone)) { |
| | | uni.showToast({ title: '请输入1开头的11位法人手机号', icon: 'none' }) |
| | | return |
| | | } |
| | | if (!this.form.aliAccount) { |