管理后台->游戏订单->游戏充值--日期检索更新

master
chenxiaojun 5 years ago
commit 83cbc45374

@ -1 +1 @@
{"news":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"sum":{"news":0,"active":0,"player":0,"money":0},"active":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"player":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"money":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":0},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}]} {"news":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":3},{"time":"11:00","count":1},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":2},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":1},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"sum":{"news":7,"active":17,"player":3,"money":0.080000000000000002},"active":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":4},{"time":"10:00","count":6},{"time":"11:00","count":1},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":4},{"time":"16:00","count":0},{"time":"17:00","count":0},{"time":"18:00","count":2},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"player":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":1},{"time":"16:00","count":2},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}],"money":[{"time":"0:00","count":0},{"time":"1:00","count":0},{"time":"2:00","count":0},{"time":"3:00","count":0},{"time":"4:00","count":0},{"time":"5:00","count":0},{"time":"6:00","count":0},{"time":"7:00","count":0},{"time":"8:00","count":0},{"time":"9:00","count":0},{"time":"10:00","count":0},{"time":"11:00","count":0},{"time":"12:00","count":0},{"time":"13:00","count":0},{"time":"14:00","count":0},{"time":"15:00","count":"0.04"},{"time":"16:00","count":"0.04"},{"time":"17:00","count":0},{"time":"18:00","count":0},{"time":"19:00","count":0},{"time":"20:00","count":0},{"time":"21:00","count":0},{"time":"22:00","count":0},{"time":"23:00","count":0}]}

@ -67,19 +67,11 @@
<div class="input-list input-list-game search_label_rehab"> <div class="input-list input-list-game search_label_rehab">
<select id="game_name" name="game_name" class="select_gallery" > <select id="game_name" name="game_name" class="select_gallery" >
<option value="">游戏名称</option> <option value="">游戏名称</option>
<!-- <volist name=":get_game_list(null, $_GET['game_type'])" id="vo"> <volist name=":get_game_list(null, $_GET['game_type'])" id="vo">-->
<option game-id="{$vo.id}" value="{$vo.id}">{$vo.game_name}</option> <option game-id="{$vo.id}" value="{$vo.id}">{$vo.game_name}</option>
</volist> --> </volist> &ndash;&gt;
</select> </select>
</div> </div>
<!-- <div class="input-list input-list-game search_label_rehab">
<select id="game_id" name="game_name" class="select_gallery" style="width:120px;">
<option value="">游戏名称</option>
<volist name=":get_game_list()" id="vo">
<option game-id="{$vo.id}" value="{$vo.game_name}">{$vo.game_name}</option>
</volist>
</select>
</div> -->
<div class="input-list input-list-server search_label_rehab"> <div class="input-list input-list-server search_label_rehab">
<select id="server_name" name="server_name" class="select_gallery" style="width:120px;"> <select id="server_name" name="server_name" class="select_gallery" style="width:120px;">
<option value="">区服名称</option> <option value="">区服名称</option>
@ -329,43 +321,36 @@
$('#time-start').datetimepicker({ $('#time-start').datetimepicker({
format: 'yyyy-mm-dd', format: 'yyyy-mm-dd',
language: "zh-CN", language: "zh-CN",
showMeridian:true, showMeridian:true,
pickDate:true, pickDate:true,
minView: 2, minView: 2,
autoclose: true, autoclose: true,
pickTime:true, pickTime:true,
todayBtn:true, todayBtn:true,
}).on('change',function(ev){ }).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime(); var val = new Date($.trim($(this).val())).getTime();
var end = new Date($.trim($('#time-end').val())).getTime(); var end = new Date($.trim($('#time-end').val())).getTime();
if (val>end) { if (val>end) {
layer.msg('开始时间大于结束时间!');$(this).val(''); layer.msg('开始时间大于结束时间!');$(this).val('');
} }
return false; return false;
}); });
$("#time-end").datetimepicker({
format:"yyyy-mm-dd",
language: "zh-CN",
showMeridian:true,
minView:2,
autoclose:true,
todayBtn:true,
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var start = new Date($.trim($('#time-start').val())).getTime();
if (val<start) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
$("#time-end").datetimepicker({
format:"yyyy-mm-dd",
language: "zh-CN",
showMeridian:true,
minView:2,
autoclose:true,
todayBtn:true,
}).on('change',function(ev){
var val = new Date($.trim($(this).val())).getTime();
var start = new Date($.trim($('#time-start').val())).getTime();
if (val<start) {
layer.msg('开始时间大于结束时间!');$(this).val('');
}
return false;
});
$(".budan").click(function () { $(".budan").click(function () {
url = $(this).attr('href-hhh'); url = $(this).attr('href-hhh');
@ -489,127 +474,93 @@
}) })
var promote_id = "{:I('promote_id')}"; var promote_id = "{:I('promote_id')}";
$("#promote_level").change(function(){ $("#promote_level").change(function(){
$.ajax({ $.ajax({
url:"{:U('Ajax/getPromotersByLevel')}", url:"{:U('Ajax/getPromotersByLevel')}",
type:"get", type:"get",
data:{level:$("#promote_level option:selected").val()}, data:{level:$("#promote_level option:selected").val()},
dataType:'json', dataType:'json',
success:function(response){ success:function(response){
str = '<option value="">请选择推广员</option><option value="0"'+(promote_id && 0 == promote_id?'selected':'')+'>官方渠道</option>'; str = '<option value="">请选择推广员</option><option value="0"'+(promote_id && 0 == promote_id?'selected':'')+'>官方渠道</option>';
// $.each(response.data, function(index, item){ data = response.data;
// console.log(item.id); for (var i in data){
// str += '<option value="'+item.id+' '+(promote_id && item.id == promote_id?'selected':'')+'">'+item.nickname+'</option>'; str += "<option value='"+data[i].id+"' "+(promote_id && data[i].id == promote_id?'selected':'')+">"+data[i].nickname+"</option>"
// }); }
data = response.data; $("#promote_id").empty();
for (var i in data){ $("#promote_id").append(str);
str += "<option value='"+data[i].id+"' "+(promote_id && data[i].id == promote_id?'selected':'')+">"+data[i].nickname+"</option>" $("#promote_id").select2();
} }
$("#promote_id").empty(); })
$("#promote_id").append(str); });
$("#promote_id").select2(); $("#promote_level").change();
}
}) var game_name = "{:I('game_name')}";
}); $("#game_type").change(function(){
$("#promote_level").change(); $.ajax({
url:"{:U('Ajax/getGameList')}",
// var game_id = "{:I('game_name')}"; type:"get",
// var game_server = "{:I('server_name')}"; data:{sdk_type:$("#game_type option:selected").val()},
// if(game_id){ dataType:'json',
// $.ajax({ success:function(response){
// url:"{:U('Ajax/getSpendServer')}", str = '<option value="">游戏名称</option>';
// type:"post", data = response.data;
// data:{game_id:game_id,type:2}, for (var i in data){
// dataType:'json', str += "<option value='"+data[i].relation_game_name+"' "+(game_name && data[i].relation_game_name == game_name?'selected':'')+">"+data[i].relation_game_name+"</option>"
// success:function(data){ }
// str = "<option value=''>请选择区服</option>"; $("#game_name").empty();
// for (var i in data){ $("#game_name").append(str);
// str += "<option value='"+data[i].server_name+"' "+(game_server && data[i].server_name == game_server?'selected':'')+">"+data[i].server_name+"</option>" $("#game_name").select2();
// } $("#game_name").change();
// $("#server_name").empty(); }
// $("#server_name").append(str); })
// $("#server_name").select2(); });
$("#game_type").change();
// }
// }) var game_server = "{:I('server_name')}";
// } $("#game_name").change(function(){
$.ajax({
var game_name = "{:I('game_name')}"; url:"{:U('Ajax/getGmeServer')}",
$("#game_type").change(function(){ type:"post",
$.ajax({ data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()},
url:"{:U('Ajax/getGameList')}", dataType:'json',
type:"get", success:function(data){
data:{sdk_type:$("#game_type option:selected").val()}, str = "<option value=''>请选择区服</option>";
dataType:'json', for (var i in data){
success:function(response){ str += "<option value='"+data[i].server_name+"' "+(game_server && data[i].server_name == game_server?'selected':'')+">"+data[i].server_name+"</option>"
str = '<option value="">游戏名称</option>'; }
// $.each(response.data, function(index, item){ $("#server_name").empty();
// console.log(item.id); $("#server_name").append(str);
// str += '<option value="'+item.id+' '+(promote_id && item.id == promote_id?'selected':'')+'">'+item.nickname+'</option>'; $("#server_name").select2();
// }); }
data = response.data; })
for (var i in data){ });
str += "<option value='"+data[i].relation_game_name+"' "+(game_name && data[i].relation_game_name == game_name?'selected':'')+">"+data[i].relation_game_name+"</option>"
} /**
$("#game_name").empty(); * 初始化select2单选默认带搜索功能。
$("#game_name").append(str); */
$("#game_name").select2(); //初始化页面加载
$("#game_name").change(); $(document).ready(function () {
} //初始化select2单选
}) initSelect2WithSearch();
}); });
$("#game_type").change();
function initSelect2WithSearch() {
var game_server = "{:I('server_name')}"; $("#sel_order").select2({
$("#game_name").change(function(){ tags: true,
$.ajax({ placeholder: '订单状态',
url:"{:U('Ajax/getGmeServer')}", allowClear: false,
type:"post", minimumResultsForSearch: Infinity, // 永久隐藏搜索框
data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()}, });
dataType:'json', }
success:function(data){
str = "<option value=''>请选择区服</option>"; function initSelect2WithSearch() {
for (var i in data){ $("#pay_game_status").select2({
str += "<option value='"+data[i].server_name+"' "+(game_server && data[i].server_name == game_server?'selected':'')+">"+data[i].server_name+"</option>" tags: true,
} placeholder: '游戏通知状态',
$("#server_name").empty(); allowClear: false,
$("#server_name").append(str); minimumResultsForSearch: Infinity, // 永久隐藏搜索框
$("#server_name").select2(); });
} }
})
});
/**
* 初始化select2单选默认带搜索功能。
*/
//初始化页面加载
$(document).ready(function () {
//初始化select2单选
initSelect2WithSearch();
});
function initSelect2WithSearch() {
$("#sel_order").select2({
tags: true,
placeholder: '订单状态',
allowClear: false,
minimumResultsForSearch: Infinity, // 永久隐藏搜索框
});
}
function initSelect2WithSearch() {
$("#pay_game_status").select2({
tags: true,
placeholder: '游戏通知状态',
allowClear: false,
minimumResultsForSearch: Infinity, // 永久隐藏搜索框
});
}
</script> </script>
</block> </block>

Loading…
Cancel
Save