소스 검색

Merge remote-tracking branch 'origin/hpf' into hpf

qzyReal 3 년 전
부모
커밋
17b306b054
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      sp-admin/sa-view/tb-account/tb-account-add.html

+ 2 - 2
sp-admin/sa-view/tb-account/tb-account-add.html

@@ -153,11 +153,11 @@
                     throw {type: 'sa-error', msg: "优惠金额必须是数字!"};
                     return false;
                 }
-                if(preMoney.substring(0,1)==0){
+                if(preMoney.length>1 && preMoney.substring(0,1)==0){
                     throw {type: 'sa-error', msg: "请输入规范的数字,前面不要带零!"};
                     return false;
                 }
-                if(disMoney.substring(0,1)==0){
+                if(disMoney.length>1 && disMoney.substring(0,1)==0){
                     throw {type: 'sa-error', msg: "请输入规范的数字,前面不要带零!"};
                     return false;
                 }