优化金额输入

master
chenzhi 5 years ago
parent a4ba883a2a
commit 4997974ba0

@ -62,11 +62,11 @@
$(function() { $(function() {
$("#pay").click(function() { $("#pay").click(function() {
if (!$("#money").val()) { if ($("#money").val() == '') {
showerror("金额不能为空"); showerror("金额不能为空");
return ; return ;
} }
if (!$("#money").val() <= 0) { if ($("#money").val() < 0 || $("#money").val() == 0) {
showerror("金额有误"); showerror("金额有误");
return ; return ;
} }

Loading…
Cancel
Save