diff --git a/Application/Admin/View/Platform/promote_statistics.html b/Application/Admin/View/Platform/promote_statistics.html index 7d09bfc3d..c8942ea10 100644 --- a/Application/Admin/View/Platform/promote_statistics.html +++ b/Application/Admin/View/Platform/promote_statistics.html @@ -282,12 +282,22 @@ } }); // var date="{$setdate}"; - $('#time-start, #time-end').each(function(){ - laydate.render({ - elem: this, //指定元素, - type : 'date' - }); - }); + $('#time-start').datetimepicker({ + format: 'yyyy-mm-dd', + language:"zh-CN", + minView:2, + autoclose:true, + // endDate:date + }); + + $('#datetimepicker').datetimepicker({ + format: 'yyyy-mm-dd', + language:"zh-CN", + minView:2, + autoclose:true, + pickerPosition:'bottom-left', + // endDate:date + }) $("#game_id").change(function(){ $.ajax({ diff --git a/Application/Admin/View/Platform/promotepay_statistics.html b/Application/Admin/View/Platform/promotepay_statistics.html index 11a64e4e8..23f019da4 100644 --- a/Application/Admin/View/Platform/promotepay_statistics.html +++ b/Application/Admin/View/Platform/promotepay_statistics.html @@ -351,13 +351,22 @@ } }); // var date="{$setdate}"; - $('#time-start, #time-end').each(function(){ - laydate.render({ - elem: this, //指定元素, - type : 'date' - }); - }); + $('#time-start').datetimepicker({ + format: 'yyyy-mm-dd', + language:"zh-CN", + minView:2, + autoclose:true, + // endDate:date + }); + $('#datetimepicker').datetimepicker({ + format: 'yyyy-mm-dd', + language:"zh-CN", + minView:2, + autoclose:true, + pickerPosition:'bottom-left', + // endDate:date + }) $("#game_id").change(function(){ console.log($("#game_id option:selected").attr('game-id')); $.ajax({