Browse Source

客户充值修改

huangpeifeng 2 years ago
parent
commit
9d2874889f
1 changed files with 2 additions and 2 deletions
  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;
                 }