master
ljl 1 year ago
parent ae26b1a6af
commit 16daba9aab

@ -470,8 +470,8 @@ $(function(){
var notValue = getTodayValue() var notValue = getTodayValue()
var startValue = parseInt(startTime.replace(/-/g, "")) var startValue = parseInt(startTime.replace(/-/g, ""))
var endValue = parseInt(endTime.replace(/-/g, "")) var endValue = parseInt(endTime.replace(/-/g, ""))
if (notValue >= startValue) { if (notValue > startValue) {
return layer.msg('开始生效时间必须在今天之后') return layer.msg('开始生效时间至少从今天开始')
} }
if (endTime != '') { if (endTime != '') {
var endValue = parseInt(endTime.replace(/-/g, "")) var endValue = parseInt(endTime.replace(/-/g, ""))

Loading…
Cancel
Save