diff --git a/Application/Admin/View/MarketPercentage/addcompanybelonggame.html b/Application/Admin/View/MarketPercentage/addcompanybelonggame.html index 3e3d1ae93..d4488923a 100644 --- a/Application/Admin/View/MarketPercentage/addcompanybelonggame.html +++ b/Application/Admin/View/MarketPercentage/addcompanybelonggame.html @@ -235,6 +235,11 @@ //查看是否报错 var target = $('#form').get(0).action; var query = $('#form').serialize(); + + var starttime = $.trim($('#begin_time').val()); + var endtime = $.trim($('#end_time').val()); + + if (starttime && endtime && starttime > endtime) {layer.msg('开始时间必须小于等于结束时间');return false;} var that = this; $(that).addClass('disabled').attr('autocomplete','off').prop('disabled',true); diff --git a/Application/Admin/View/MarketPercentage/editcompanybelonggame.html b/Application/Admin/View/MarketPercentage/editcompanybelonggame.html index 37bf34322..41401706c 100644 --- a/Application/Admin/View/MarketPercentage/editcompanybelonggame.html +++ b/Application/Admin/View/MarketPercentage/editcompanybelonggame.html @@ -235,7 +235,12 @@ //查看是否报错 var target = $('#form').get(0).action; var query = $('#form').serialize(); - + + var starttime = $.trim($('#begin_time').val()); + var endtime = $.trim($('#end_time').val()); + + if (starttime && endtime && starttime > endtime) {layer.msg('开始时间必须小于等于结束时间');return false;} + var that = this; $(that).addClass('disabled').attr('autocomplete','off').prop('disabled',true); $.post(target,query).success(function(data){