|
|
|
@ -28,6 +28,9 @@
|
|
|
|
|
th{
|
|
|
|
|
border-right: 1px solid #b6cad2;
|
|
|
|
|
}
|
|
|
|
|
.gotoinfo{
|
|
|
|
|
color: #056dae;cursor:pointer;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
@ -37,7 +40,7 @@
|
|
|
|
|
<a class="" href="{:U('Platform/promotepay_statistics')}">推广员充值统计</a>
|
|
|
|
|
</div>
|
|
|
|
|
<h3 class="page_title">推广员汇总</h3>
|
|
|
|
|
<p class="description_text">说明:统计各工会每月注册及充值总额(注册数:以玩家最后归属的公会为准)</p>
|
|
|
|
|
<p class="description_text">说明:统计各工会每月注册及充值总额(注册数:以玩家最后归属的公会为准,非去重)</p>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="cf top_nav_list">
|
|
|
|
@ -119,8 +122,8 @@
|
|
|
|
|
<td>{$data['company_belong']}</td>
|
|
|
|
|
|
|
|
|
|
<foreach name="data.list" item="item" key="date">
|
|
|
|
|
<foreach name="item" item="it">
|
|
|
|
|
<td data-id="{$data.id}" data-date="{$date}" >{$it}</td>
|
|
|
|
|
<foreach name="item" item="it" key="type">
|
|
|
|
|
<td <if condition="$it GT 0">class="gotoinfo"</if> data-id="{$data.id}" data-type="{$type}" data-date="{$date}" style="">{$it}</td>
|
|
|
|
|
</foreach>
|
|
|
|
|
|
|
|
|
|
</foreach>
|
|
|
|
@ -128,14 +131,6 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</volist>
|
|
|
|
|
</empty>
|
|
|
|
|
<!-- <tr class="data_summary">
|
|
|
|
|
<td colspan="4"><span>汇总</span></td>
|
|
|
|
|
<td ><span>{$total.sum_count}</span></td>
|
|
|
|
|
<td>---</td>
|
|
|
|
|
<td>{$total.sum_today}</td>
|
|
|
|
|
<td>{$total.sum_week}</td>
|
|
|
|
|
<td>{$total.sum_mounth}</td>
|
|
|
|
|
</tr> -->
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
@ -149,11 +144,6 @@
|
|
|
|
|
<block name="script">
|
|
|
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/layer/extend/layer.ext.js" ></script>
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/datetimepicker.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<php>if(C('COLOR_STYLE')=='blue_color') echo '<link href="__STATIC__/datetimepicker/css/datetimepicker_blue.css" rel="stylesheet" type="text/css">';</php>
|
|
|
|
|
<link href="__STATIC__/datetimepicker/css/dropdown.css" rel="stylesheet" type="text/css">
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
|
|
|
|
|
<script type="text/javascript" src="__STATIC__/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js" charset="UTF-8"></script>
|
|
|
|
|
<script>
|
|
|
|
|
<volist name=":I('get.')" id="vo">
|
|
|
|
|
Think.setValue('{$key}',"{$vo}");
|
|
|
|
@ -162,15 +152,14 @@
|
|
|
|
|
</script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
//导航高亮
|
|
|
|
|
highlight_subnav('{:U('Platform/promote_statistics')}');
|
|
|
|
|
highlight_subnav("{:U('Platform/promote_statistics')}");
|
|
|
|
|
|
|
|
|
|
var registerUrl = "{:U('Platform/promote_statistics')}";
|
|
|
|
|
var payamountrUrl = "{:U('Platform/promotepay_statistics')}";
|
|
|
|
|
|
|
|
|
|
$(function(){
|
|
|
|
|
//搜索功能
|
|
|
|
|
$("#search").click(function(){
|
|
|
|
|
var starttime = $.trim($('#time-start').val());
|
|
|
|
|
var endtime = $.trim($('#time-end').val());
|
|
|
|
|
|
|
|
|
|
if (starttime && endtime && starttime > endtime) {layer.msg('开始时间必须小于等于结束时间');return false;}
|
|
|
|
|
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
|
var query = $('.jssearch').find('input').serialize();
|
|
|
|
|
query += "&" + $('.jssearch').find('select').serialize();
|
|
|
|
@ -190,98 +179,19 @@
|
|
|
|
|
$("#search").click();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// $(".ljzc").click(function(){
|
|
|
|
|
// var id = $(this).attr('data-value');
|
|
|
|
|
// var game_name = "{:I('game_name')}";
|
|
|
|
|
// var server_name = "{:I('server_id')}";
|
|
|
|
|
// var urlr = window.location.host;
|
|
|
|
|
// layer.open({
|
|
|
|
|
// type: 2,
|
|
|
|
|
// title: '注册记录',
|
|
|
|
|
// shadeClose: true,
|
|
|
|
|
// shade: 0.8,
|
|
|
|
|
// area: ['70%', '80%'],
|
|
|
|
|
// content: '/admin.php?s=/Platform/zhuce_detail/promote_id/'+id+'/game_name/'+game_name+'/server_name/'+server_name+''//iframe的url
|
|
|
|
|
// });
|
|
|
|
|
// });
|
|
|
|
|
$(".paixu").click(function(){
|
|
|
|
|
var that=$(this);
|
|
|
|
|
$data_order=that.attr('data-order');
|
|
|
|
|
$order_type='{$userarpu_order}';
|
|
|
|
|
if($order_type==''||$order_type=='4'){
|
|
|
|
|
$(".sortBy").attr('name','data_order');
|
|
|
|
|
val='3,'+$data_order;
|
|
|
|
|
$(".sortBy").attr('value',val);
|
|
|
|
|
$("#search").click();
|
|
|
|
|
}else if($order_type=='3'){
|
|
|
|
|
$(".sortBy").attr('name','data_order');
|
|
|
|
|
val='4,'+$data_order;
|
|
|
|
|
$(".sortBy").attr('value',val);
|
|
|
|
|
$("#search").click();
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
//点击排序
|
|
|
|
|
$('.list_sort').click(function(){
|
|
|
|
|
var url = $(this).attr('url');
|
|
|
|
|
var ids = $('.ids:checked');
|
|
|
|
|
var param = '';
|
|
|
|
|
if(ids.length > 0){
|
|
|
|
|
var str = new Array();
|
|
|
|
|
ids.each(function(){
|
|
|
|
|
str.push($(this).val());
|
|
|
|
|
});
|
|
|
|
|
param = str.join(',');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if(url != undefined && url != ''){
|
|
|
|
|
|
|
|
|
|
window.location.href = url.replace(".html","") + '/ids/' + param;
|
|
|
|
|
$(".gotoinfo").on("click",function(){
|
|
|
|
|
var data = $(this).data();
|
|
|
|
|
var date = data.date.split('-');
|
|
|
|
|
var timestart =data.date+'-' + new Date(date[0],date[1],1).getDate();
|
|
|
|
|
var timeend = data.date+'-' +new Date(date[0],date[1],0).getDate();
|
|
|
|
|
|
|
|
|
|
var str = "×tart="+timestart+"&timeend="+timeend+"&company_id="+data.id;
|
|
|
|
|
if(data.type == "register"){
|
|
|
|
|
window.location.href = registerUrl+str;
|
|
|
|
|
}else{
|
|
|
|
|
window.location.href = payamountrUrl+str;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
// var date="{$setdate}";
|
|
|
|
|
$('#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
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
var game_server = "{:I('server_id')}";
|
|
|
|
|
$("#game_type").change(function(){
|
|
|
|
|
console.log({sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()})
|
|
|
|
|
$.ajax({
|
|
|
|
|
url:"{:U('Ajax/getGmeServer')}",
|
|
|
|
|
type:"post",
|
|
|
|
|
data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()},
|
|
|
|
|
dataType:'json',
|
|
|
|
|
success:function(data){
|
|
|
|
|
console.log(data)
|
|
|
|
|
str = "<option value=''>请选择区服</option>";
|
|
|
|
|
for (var i in data){
|
|
|
|
|
str += "<option value='"+data[i].server_id+"' "+(game_server && data[i].server_id == game_server?'selected':'')+">"+data[i].server_name+"</option>"
|
|
|
|
|
}
|
|
|
|
|
$("#server_id").empty();
|
|
|
|
|
$("#server_id").append(str);
|
|
|
|
|
$("#server_id").select2();
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#game_name").change(function(){
|
|
|
|
|
$("#game_type").change();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("#game_name").change();
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
</block>
|