Showing
2 changed files
with
13 additions
and
13 deletions
@@ -8,18 +8,18 @@ var edit=require('../common/edit'); | @@ -8,18 +8,18 @@ var edit=require('../common/edit'); | ||
8 | 8 | ||
9 | 9 | ||
10 | var contactPhone=$.trim($("#contactPhone").val()); | 10 | var contactPhone=$.trim($("#contactPhone").val()); |
11 | - if(contactPhone){ | ||
12 | - if(!(/^1\d{10}$/.test(contactPhone))){ | ||
13 | - return "请输入正确的公司联系电话"; | ||
14 | - } | ||
15 | - } | 11 | + // if(contactPhone){ |
12 | + // if(!(/^1\d{10}$/.test(contactPhone))){ | ||
13 | + // return "请输入正确的公司联系电话"; | ||
14 | + // } | ||
15 | + // } | ||
16 | //phone | 16 | //phone |
17 | var phone=$.trim($("#phone").val()); | 17 | var phone=$.trim($("#phone").val()); |
18 | - if(phone){ | ||
19 | - if(!(/^1\d{10}$/.test(phone))){ | ||
20 | - return "请输入正确的联系人电话"; | ||
21 | - } | ||
22 | - } | 18 | + // if(phone){ |
19 | + // if(!(/^1\d{10}$/.test(phone))){ | ||
20 | + // return "请输入正确的联系人电话"; | ||
21 | + // } | ||
22 | + // } | ||
23 | if(!phone&&!contactPhone){ | 23 | if(!phone&&!contactPhone){ |
24 | return "请在公司联系电话,联系人电话至少填一个"; | 24 | return "请在公司联系电话,联系人电话至少填一个"; |
25 | } | 25 | } |
@@ -147,7 +147,7 @@ | @@ -147,7 +147,7 @@ | ||
147 | <p><span class="red">注:与联系人电话至少填一个</span></p> | 147 | <p><span class="red">注:与联系人电话至少填一个</span></p> |
148 | </label> | 148 | </label> |
149 | <div class="col-sm-8"> | 149 | <div class="col-sm-8"> |
150 | - <input type="text" id="contactPhone" placeholder="请填写公司联系电话" class="form-control" value="{{contactPhone}}" > | 150 | + <input type="number" maxlength="20" id="contactPhone" placeholder="请填写公司联系电话" class="form-control" value="{{contactPhone}}" > |
151 | </div> | 151 | </div> |
152 | <!--pattern="/^13[0-9]{9}$/"--> | 152 | <!--pattern="/^13[0-9]{9}$/"--> |
153 | </div> | 153 | </div> |
@@ -163,14 +163,14 @@ | @@ -163,14 +163,14 @@ | ||
163 | <div class="form-group"> | 163 | <div class="form-group"> |
164 | <label class="col-sm-2 control-label">联系人</label> | 164 | <label class="col-sm-2 control-label">联系人</label> |
165 | <div class="col-sm-8"> | 165 | <div class="col-sm-8"> |
166 | - <input type="text" id="linkman" placeholder="请填写联系人" class="form-control" value="{{linkman}}" maxlength="10"> | 166 | + <input type="text" id="linkman" placeholder="请填写联系人" class="form-control" maxlength="20" value="{{linkman}}" maxlength="10"> |
167 | </div> | 167 | </div> |
168 | </div> | 168 | </div> |
169 | 169 | ||
170 | <div class="form-group"> | 170 | <div class="form-group"> |
171 | <label class="col-sm-2 control-label">联系电话</label> | 171 | <label class="col-sm-2 control-label">联系电话</label> |
172 | <div class="col-sm-8"> | 172 | <div class="col-sm-8"> |
173 | - <input type="text" id="phone" placeholder="请填写联系电话" class="form-control" value="{{phone}}"> | 173 | + <input type="number" maxlength="20" id="phone" placeholder="请填写联系电话" class="form-control" value="{{phone}}"> |
174 | </div> | 174 | </div> |
175 | </div> | 175 | </div> |
176 | 176 |
-
Please register or login to post a comment