|
@@ -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;
|
|
|
}
|