Procházet zdrojové kódy

修改一些提示与正则

sandm před 2 roky
rodič
revize
e1f65f2128

+ 1 - 1
app/common/view/auth/register.html

@@ -327,7 +327,7 @@
                                                         </div>
                                                     </td>
                                                     <td rowspan="2">
-                                                        <label class="control-label spacing" style="text-align: center"><span style="color: red">*</span>人才联络员备案表<br /><a href="/beianbiao.doc" style="color: red">模板下载</a>  </label>
+                                                        <label class="control-label spacing" style="text-align: center"><span style="color: red">*</span>人才联络员备案表<br /><a href="/beianbiao.doc" style="color: red">(点击此处下载模板)</a>  </label>
                                                         <img id="photoImg3" src="/static/img/yyzz.png" style="height: 60px;" onclick="$('#beian').click()" >
                                                         <input style="display: none" autocomplete="off" type="file" class="form-control" id="beian" name="beian" />
                                                     </td>

+ 1 - 1
app/enterprise/view/api/to_update.html

@@ -141,7 +141,7 @@
                       <div class="rowGroup"  style="margin-bottom: 0px;">
                         <label class="col-sm-2 control-label spacing"><span class="text-danger">*</span>企业开户银行网点</label>
                         <div class="col-sm-4 spacing">
-                          <input type="text" class="form-control" id="newBankNetwork" name="newBankNetwork" value="{$ecr.newBankNetwork}"/>
+                          <input type="text" class="form-control" id="newBankNetwork" name="newBankNetwork" value="{$ecr.newBankNetwork}" placeholder="XX银行XX支行/分行/分理处"/>
                         </div>
                       </div>
                     </div>

+ 21 - 0
public/static/modular/gate/enterprise/enterprise_change_edit.js

@@ -41,6 +41,27 @@ var EpChangeEdit = {
                     message: "电子邮箱格式不正确"
                 }
             }
+        },
+        newBankCard: {
+            validators: {
+                notEmpty: {
+                    message: '企业银行账号不能为空'
+                }
+            }
+        },
+        newBank: {
+            validators: {
+                notEmpty: {
+                    message: '企业开户银行不能为空'
+                }
+            }
+        },
+        newBankNetwork: {
+            validators: {notEmpty: {message: '开户银行网点不能为空'},
+                regexp: {
+                    regexp: /^[\u4e00-\u9fa5]*银行[\u4e00-\u9fa5]*$/,
+                    message: "开户银行网点格式不正确"
+                }}
         }
     }
 };