Commit 52a6dd77 by 朱继来

自定义时间格式限制

parent cd17e507
Showing with 5 additions and 1 deletions
......@@ -1217,8 +1217,12 @@
}
var reg = /\d/;
if (!reg.test(payTimeOther)) {
layer.msg('格式错误');
return false;
}
if (!reg.test(payTimeOther) && (payTimeOther < 0 || payTimeOther > 30)) {
if (payTimeOther < 0 || payTimeOther > 30) {
layer.msg('自定义时间限制在1-30天');
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment