master
yulingwei 4 years ago
parent b9dfe08177
commit 51a1c9c707

@ -282,13 +282,23 @@
} }
}); });
// var date="{$setdate}"; // var date="{$setdate}";
$('#time-start, #time-end').each(function(){ $('#time-start').datetimepicker({
laydate.render({ format: 'yyyy-mm-dd',
elem: this, //指定元素, language:"zh-CN",
type : 'date' 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(){ $("#game_id").change(function(){
$.ajax({ $.ajax({
url:"{:U('getSpendServer')}", url:"{:U('getSpendServer')}",

@ -351,13 +351,22 @@
} }
}); });
// var date="{$setdate}"; // var date="{$setdate}";
$('#time-start, #time-end').each(function(){ $('#time-start').datetimepicker({
laydate.render({ format: 'yyyy-mm-dd',
elem: this, //指定元素, language:"zh-CN",
type : 'date' 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(){ $("#game_id").change(function(){
console.log($("#game_id option:selected").attr('game-id')); console.log($("#game_id option:selected").attr('game-id'));
$.ajax({ $.ajax({

Loading…
Cancel
Save