加入表单验证
This commit is contained in:
@@ -5,17 +5,17 @@
|
||||
<!-- 如果是小程序消息进入的报名页面 需要回显企业与参会人 参会企业不可更改 -->
|
||||
<view class="form-item">
|
||||
<text class="item-label flex-1">参会单位:</text>
|
||||
<input placeholder-class="text-right" bindtap="selectCompany" name="selectedCompany.companyName" bindinput="bindInputPhone" value="{{selectedCompany.companyName}}" placeholder="请选择参会单位" />
|
||||
<input placeholder-class="text-right" bindfocus="selectCompany" name="selectedCompany.companyName" bindinput="bindInputPhone" value="{{selectedCompany.companyName}}" placeholder="请选择参会单位" />
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<text class="item-label flex-1">参会人:</text>
|
||||
<input placeholder-class="text-right" bindtap="selectPerson" data-selectType='1' bindinput="bindInputPhone" value="{{selectedPerson.name}}" placeholder="请选择参会人" />
|
||||
<input placeholder-class="text-right" bindfocus="selectPerson" data-selectType='1' bindinput="bindInputPhone" value="{{selectedPerson.name}}" placeholder="请选择参会人" />
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<text class="item-label flex-1">手机号:</text>
|
||||
<input placeholder-class="text-right" name="phone" bindinput="bindInputPhone" value="{{phone}}" placeholder="请输入手机号" />
|
||||
<input placeholder-class="text-right" bindblur="validatePhone" data-type="phone" data-message='请输入手机号' data-errmsg='请输入正确的手机号' type="number" maxlength="11" name="phone" bindinput="bindInputPhone" value="{{phone}}" placeholder="请输入手机号" />
|
||||
</view>
|
||||
|
||||
<view class="form-item-radio">
|
||||
@@ -23,7 +23,7 @@
|
||||
<text class="item-label flex-1 validate">参会身份:</text>
|
||||
</view>
|
||||
<view>
|
||||
<radio-group name='identity' bindchange="identifyRadioChange">
|
||||
<radio-group name='identity' bindchange="validateIdentity">
|
||||
<label class="radio radio-item" wx:for="{{identifyList}}" wx:key="item">
|
||||
<radio class="radio-scale" value="{{item.value}}"/>{{item.name}}
|
||||
</label>
|
||||
@@ -56,17 +56,17 @@
|
||||
|
||||
<view class="form-item">
|
||||
<text class="item-label flex-1 validate">邮寄联系人:</text>
|
||||
<input placeholder-class="text-right" data-selectType='2' name="phone" bindtap="selectPerson" value="{{selectedPostPerson.name}}" placeholder="请选择邮寄联系人" />
|
||||
<input placeholder-class="text-right" data-selectType='2' name="phone" bindfocus="selectPerson" value="{{selectedPostPerson.name}}" placeholder="请选择邮寄联系人" />
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<text class="item-label flex-1 validate">邮寄地址:</text>
|
||||
<input placeholder-class="text-right" name="postContactAddress" bindinput="bindInputPhone" placeholder="请输入邮寄地址" />
|
||||
<input placeholder-class="text-right" name="postContactAddress" maxlength="50" bindinput="bindInputPhone" placeholder="请输入邮寄地址" />
|
||||
</view>
|
||||
|
||||
<view class="form-item">
|
||||
<text class="item-label flex-1 validate">邮编:</text>
|
||||
<input placeholder-class="text-right" name="postCode" bindinput="bindInputPhone" placeholder="请输入邮编" />
|
||||
<input placeholder-class="text-right" name="postCode" bindblur="validatePostCode" data-message='请输入邮编' data-errmsg='请输入正确的邮编' type="number" maxlength="6" placeholder="请输入邮编" />
|
||||
</view>
|
||||
|
||||
<view class="form-item-radio">
|
||||
|
||||
Reference in New Issue
Block a user