You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
445 lines
17 KiB
HTML
445 lines
17 KiB
HTML
<extend name="Public/base"/>
|
|
|
|
<block name="body">
|
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
|
<script type="text/javascript" src="__JS__/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
|
<style>
|
|
.select2-container--default .select2-selection--single {
|
|
color: #000;
|
|
resize: none;
|
|
border-width: 1px;
|
|
border-style: solid;
|
|
border-color: #a7b5bc #ced9df #ced9df #a7b5bc;
|
|
box-shadow: 0px 3px 3px #F7F8F9 inset;height:35px;
|
|
height:28px;border-radius:3px;font-size:12px;
|
|
}
|
|
.select2-container--default .select2-selection--single .select2-selection__rendered {
|
|
line-height:35px;
|
|
line-height:28px;
|
|
}
|
|
.select2-container--default .select2-selection--single .select2-selection__arrow {
|
|
height:26px;
|
|
}
|
|
.select2-container--default .select2-search--dropdown .select2-search__field {
|
|
height:26px;line-height:26px;font-size:12px;
|
|
}
|
|
.select2-results__option[aria-selected] {font-size:12px;}
|
|
|
|
.tooltip {
|
|
position: relative;
|
|
display: inline-block;
|
|
color: #056dae;
|
|
}
|
|
|
|
.tooltip .tooltiptext {
|
|
visibility: hidden;
|
|
width: 250%;
|
|
background-color: #fff;
|
|
color: #fff;
|
|
text-align: center;
|
|
border-radius: 6px;
|
|
padding: 5px 0;
|
|
position: absolute;
|
|
z-index: 1;
|
|
bottom: 80%;
|
|
left: 0;
|
|
margin-left: -70%;
|
|
border: #000 solid 1px;
|
|
}
|
|
|
|
.tooltip .tooltiptext::after {
|
|
content: "";
|
|
position: absolute;
|
|
top: 100%;
|
|
left: 50%;
|
|
margin-left: -5px;
|
|
border-width: 5px;
|
|
border-style: solid;
|
|
border-color: black transparent transparent transparent;
|
|
}
|
|
|
|
.tooltip:hover .tooltiptext {
|
|
|
|
color: #000;
|
|
visibility: visible;
|
|
line-height: 20px;
|
|
}
|
|
|
|
</style>
|
|
|
|
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
|
|
<h3 class="page_title">
|
|
{$title}
|
|
</h3>
|
|
<p class="description_text">
|
|
<if condition="isset($_GET['promote_id'])">
|
|
<if condition="$_GET['promote_type'] eq 1">
|
|
统计推广员及其下属推广员的游戏相关统计
|
|
<else/>
|
|
仅统计推广员自己 <span style="color: red;">不含其下属推广员</span>的游戏相关统计
|
|
</if>
|
|
<else/>
|
|
游戏相关统计
|
|
</if>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="cf top_nav_list">
|
|
|
|
<!-- 高级搜索 -->
|
|
<div class="jssearch fl cf search_list">
|
|
<!--游戏类型搜索END-->
|
|
<div class="input-list search-title-box">
|
|
<a class="sch-btn" href="javascript:history.go(-1)" style="background:#fff;color: #000;border: #000 solid 1px;width: 100px">返回</a>
|
|
</div>
|
|
<div class="input-list input-list-resway search_label_rehab">
|
|
<select id="company_id" name="company_id" class="select_gallery" style="width:150px;">
|
|
<option value="">请选择推广公司</option>
|
|
<volist name=":getPromoteCompany()" id="vo">
|
|
<option value="{$vo.id}" <if condition="I('company_id') && $vo.id eq I('company_id')">selected
|
|
</if> >{$vo.company_name}</option>
|
|
</volist>
|
|
</select>
|
|
</div>
|
|
<div class="input-list search_item input-list-gamenoticestatus">
|
|
<select name="promote_id" style="color:#444" class="select_gallery" id="promote_id">
|
|
<option value="">请选择会长</option>
|
|
<option value="0" <?php if ($_POST['promote_id'] == 0):?>selected<?php endif;?>>{:C('OFFICIEL_CHANNEL')}</option>
|
|
<option value="UC" <?php if ($_POST['promote_id'] == 'UC'):?>selected<?php endif;?>>UC用户</option>
|
|
</select>
|
|
</div>
|
|
|
|
<!-- <div class="input-list input-list-server search_label_rehab">
|
|
<select id="partner_id" name="partner_id" class="select_gallery" style="width:120px;">
|
|
<option value="">请选择合作公司</option>
|
|
<volist name=":getPartner()" id="vo">
|
|
<option partner-id="{$vo.id}" value="{$vo.id}" <if condition="$vo.id eq $_GET['partner_id']">selected=selected</if>>{$vo.partner}</option>
|
|
</volist>
|
|
</select>
|
|
</div> -->
|
|
<div class="input-list input-list-server search_label_rehab">
|
|
<select id="company_belong" name="company_belong" class="select_gallery" style="width:120px;">
|
|
<option value="">请选择团体类型</option>
|
|
<volist name=":getCompanyBlong()" id="vo">
|
|
<option value="{$vo.id}" <php> if($_GET['company_belong'] !='' && $vo['id'] == $_GET['company_belong'])echo selected;</php>>{$vo.name}</option>
|
|
</volist>
|
|
</select>
|
|
</div>
|
|
<div class="input-list input-list-server search_label_rehab">
|
|
<select id="admin_id" name="admin_id" class="select_gallery" style="width:120px;">
|
|
<option value="">请选择市场专员</option>
|
|
<?php foreach(getMarketAdmins() as $item):?>
|
|
<option value="<?=$item['id']?>" <?php if($item['id'] == I('admin_id')):?>selected<?php endif;?>><?=$item['username']?></option>
|
|
<?php endforeach;?>
|
|
</select>
|
|
</div>
|
|
|
|
<div class="input-list input-list-server search_label_rehab">
|
|
<select id="develop_type" name="develop_type" class="select_gallery" style="width:120px;">
|
|
<option value="">请选择开发类型</option>
|
|
<?php foreach(getCompanyDevelopTypesOther() as $key => $value):?>
|
|
<option value="<?=$key?>" <?php if($key == I('develop_type')):?>selected<?php endif;?>><?=$value?></option>
|
|
<?php endforeach;?>
|
|
</select>
|
|
</div>
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
<select id="game_name" name="game_name" class="select_gallery" >
|
|
<option value="">游戏名称</option>
|
|
</select>
|
|
</div>
|
|
<div class="input-list input-list-game search_label_rehab">
|
|
<select id="game_type" name="game_type" class="select_gallery" >
|
|
<option value="">请选择设备类型</option>
|
|
<option value="1">安卓</option>
|
|
<option value="2">苹果</option>
|
|
</select>
|
|
</div>
|
|
<div class="input-list">
|
|
<input type="text" readonly id="time_start" name="time_start" class="" value="{:I('time_start')}"
|
|
placeholder="开始时间" />
|
|
-
|
|
<div class="input-append date" id="datetimepicker" style="display:inline-block">
|
|
<input type="text" readonly id="time_end" name="time_end" class="" value="{:I('time_end')}"
|
|
placeholder="结束时间" />
|
|
<span class="add-on"><i class="icon-th"></i></span>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- <input type="hidden" name="from" value="{$_GET['from']}"/> -->
|
|
<!-- <input type="hidden" name="promote_id" value="{$_GET['promote_id']}"/> -->
|
|
<input type="hidden" name="promote_type" value="{$_GET['promote_type']}"/>
|
|
<!-- <input type="hidden" name="company_id" value="{$_GET['company_id']}"/> -->
|
|
<!-- <input type="hidden" name="company_belong" value="{$_GET['company_belong']}"/> -->
|
|
|
|
<div class="input-list">
|
|
<a class="sch-btn" href="javascript:;" id="search" url="{:U('FinancePromote/gameStatistics','model='.$model['name'].'&row='.I('row'),false)}"
|
|
style="width: 100px;border: #3C95C8 solid 1px;">搜索</a>
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 数据列表 -->
|
|
<div class="data_list">
|
|
<div class="">
|
|
<table>
|
|
<!-- 表头 -->
|
|
<thead>
|
|
<tr>
|
|
<th>推广公司</th>
|
|
<th>会长账号</th>
|
|
<th>当前所属市场专员</th>
|
|
<th>团体类型</th>
|
|
<th>开发类型</th>
|
|
<th >游戏</th>
|
|
<th >设备</th>
|
|
|
|
<th ><div class="tooltip">游戏现金金额<span class="tooltiptext"><span style="margin-left: -10px">第三方支付(微信,支付宝,快捷)。</span></span></div></th>
|
|
|
|
<th ><div class="tooltip">平台币直充支出<span class="tooltiptext"><span style="margin-left: -10px">平台币购买游戏道具所产生的金额</span></span></div></th>
|
|
|
|
<th ><div class="tooltip">内充支出<span class="tooltiptext"><span style="margin-left: -10px">玩家用绑币购买游戏道具所产生的金额</span></span></div></th>
|
|
|
|
<th ><div class="tooltip">游戏内充值合计<span class="tooltiptext"><span style="margin-left: -10px">游戏现金金额+平台币直充支出+平台币内充支出</span></span></div></th>
|
|
|
|
<th >操作</th>
|
|
</tr>
|
|
</thead>
|
|
<!-- 列表 -->
|
|
<tbody>
|
|
<style>
|
|
.data-table thead th, .data-table tbody td{text-align:center}
|
|
.data-table tbody td{border-right:1px solid #DDDDDD;}
|
|
.d_list .drop-down ul {z-index:999;}
|
|
</style>
|
|
<if condition = "empty($data)">
|
|
<tr>
|
|
<td colspan="14" class="text-center">aOh! 暂时还没有内容!</td>
|
|
</tr>
|
|
<else/>
|
|
<notemtpy name = "data">
|
|
<volist name="data" id="data">
|
|
<tr>
|
|
<td >{$data.company_name}</td>
|
|
<td >{$data.account}</td>
|
|
<td>{$data['admin_username']}</td>
|
|
<td >{$data.company_belong}</td>
|
|
<td>{$data['develop_type_text']}</td>
|
|
<td >{$data.game_name}</td>
|
|
<td >{$data.sdk_version}</td>
|
|
<td >{$data.cash_count}</td>
|
|
<td class="coin-detail" data-pay_type="0" style="color: #0066cc;cursor: pointer" data-url="{:U('FinancePromote/gameCoinDetail',array_merge(I('get.'),['pay_way'=>0,'promote_id'=>$data['p_id'],'game_id'=>$data['game_id'],'p'=>1,'row'=>10]))}">{$data.balance_coin_count}</td>
|
|
<td class="coin-detail" data-pay_type="-1" style="color: #0066cc;cursor: pointer" data-url="{:U('FinancePromote/gameCoinDetail',array_merge(I('get.'),['pay_way'=>-1,'promote_id'=>$data['p_id'],'game_id'=>$data['game_id'],'p'=>1,'row'=>10]))}">
|
|
{$data.inside_cash_count}
|
|
</td>
|
|
<td >{$data.all_cash_count}</td>
|
|
<td >
|
|
<a href="{:U('FinancePromote/gameStatisticsDetail',array_merge(I('get.'),['game_id'=>$data['game_id'],'promote_id'=>$data['p_id'],'game_name'=>$data['game_name'],'promote_level'=>$promote_level,'p'=>1,'row'=>10]))}" >订单查看</a>
|
|
</td>
|
|
</tr>
|
|
</volist>
|
|
<tr>
|
|
<td colspan="7" ><span>总计</span></td>
|
|
<td ><span><if condition="$sumCash neq ''">{$sumCash}<else/>0</if></span></td>
|
|
<td><if condition="$sumBalance neq ''">{$sumBalance}<else/>0</if></td>
|
|
<td><if condition="$sumInside neq ''">{$sumInside}<else/>0</if></td>
|
|
<td><if condition="$sumAll neq ''">{$sumAll}<else/>0</if></td>
|
|
<td>
|
|
<a href="{:U('FinancePromote/gameStatisticsDetail',array_merge(I('get.'),['promote_level'=>1,'p'=>1,'row'=>10]))}" >订单查看</a>
|
|
</td>
|
|
</tr>
|
|
</notemtpy>
|
|
</if>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="page">
|
|
<if condition="$role_export_check eq true ">
|
|
<a class="sch-btn" href="{:U(CONTROLLER_NAME.'/'.ACTION_NAME,array_merge(['export'=>1],I('get.')))}" target="_blank">导出</a>
|
|
</if>
|
|
{$_page|default=''}
|
|
</div>
|
|
</block>
|
|
|
|
<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}");
|
|
</volist>
|
|
</script>
|
|
<script type="text/javascript">
|
|
$(".select_gallery").select2();
|
|
function reloadIframe(url) {
|
|
$("iframe").attr('src', url);
|
|
// document.getElementsByTagName('iframe').src=url;
|
|
}
|
|
|
|
$(".coin-detail").click(function () {
|
|
var pay_type = $(this).data('pay_type');
|
|
var url = $(this).data('url');
|
|
var title = pay_type == -1 ? '内充支出明细' : '平台币直充明细';
|
|
layer.open({
|
|
type: 2,
|
|
title: title,
|
|
shadeClose: true,
|
|
shade: 0.8,
|
|
area: ['70%', '80%'],
|
|
content: url
|
|
});
|
|
});
|
|
|
|
|
|
$('.page a').click(function () {
|
|
var href = $(this).attr('href');
|
|
$(this).removeAttr('href');
|
|
window.location.replace(href)
|
|
});
|
|
|
|
//导航高亮
|
|
highlight_subnav('{:U("FinancePromote/index")}');
|
|
$(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();
|
|
query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g,'');
|
|
query = query.replace(/^&/g,'');
|
|
if( url.indexOf('?')>0 ){
|
|
url += '&' + query;
|
|
}else{
|
|
url += '?' + query;
|
|
}
|
|
window.location.replace(url);
|
|
});
|
|
|
|
//回车自动提交
|
|
$('.jssearch').find('input').keyup(function(event){
|
|
if(event.keyCode===13){
|
|
$("#search").click();
|
|
}
|
|
});
|
|
function get_game_list()
|
|
{
|
|
var game_name = "{:I('game_name')}";
|
|
$.ajax({
|
|
url:"{:U('Finance/getGameList')}",
|
|
type:"post",
|
|
data:{partner_id:$("#partner_id option:selected").val(), sdk_type:$("#sdk_version1 option:selected").val()},
|
|
dataType:'json',
|
|
success:function(data){
|
|
var str = "<option value=''>请选择游戏</option>";
|
|
for (var i in data){
|
|
str += "<option value='"+data[i].game_name+"'"+(game_name && data[i].game_name == game_name?'selected':'')+">"+data[i].game_name+"</option>"
|
|
}
|
|
// console.log(str);
|
|
$("#game_name").empty();
|
|
$("#game_name").append(str);
|
|
$("#game_name").select2();
|
|
|
|
}
|
|
})
|
|
}
|
|
get_game_list();
|
|
$("#partner_id, #game_type").change(function(){
|
|
get_game_list();
|
|
});
|
|
$('#time_start').datetimepicker({
|
|
format: 'yyyy-mm-dd',
|
|
language: "zh-CN",
|
|
minView: 2,
|
|
autoclose: true
|
|
});
|
|
|
|
$('#datetimepicker').datetimepicker({
|
|
format: 'yyyy-mm-dd',
|
|
language: "zh-CN",
|
|
minView: 2,
|
|
autoclose: true,
|
|
pickerPosition: 'bottom-left'
|
|
})
|
|
$("#partner_id").change();
|
|
|
|
function get_partnet_list()
|
|
{
|
|
var partner_id = "{:I('partner_id')}";
|
|
$.ajax({
|
|
url:"{:U('Finance/getPartnetList')}",
|
|
type:"post",
|
|
data:{game_name:$("#game_name option:selected").val(), sdk_type:$("#sdk_version1 option:selected").val()},
|
|
dataType:'json',
|
|
success:function(data){
|
|
var str = "<option value=''>请选择合作公司</option>";
|
|
for (var i in data){
|
|
str += "<option value='"+data[i].id+"'"+(partner_id && data[i].id == partner_id?'selected':'')+">"+data[i].partner+"</option>"
|
|
}
|
|
// console.log(str);
|
|
$("#partner_id").empty();
|
|
$("#partner_id").append(str);
|
|
$("#partner_id").select2();
|
|
|
|
}
|
|
})
|
|
}
|
|
var promote_id = "{:I('promote_id')}";
|
|
var company_id = "{:I('company_id')}";
|
|
function getPromotersByCompanyid() {
|
|
var company_id = $("#company_id option:selected").val();
|
|
if(!company_id){
|
|
company_id = -1;
|
|
}
|
|
$.ajax({
|
|
url: "{:U('Ajax/getPromotersByCompanyid')}",
|
|
type: "get",
|
|
data: { company_id:company_id},
|
|
dataType: 'json',
|
|
success: function (response) {
|
|
str = '<option value="">请选择会长</option>';
|
|
data = response.data;
|
|
for (var i in data) {
|
|
str += "<option value='" + data[i].id + "' " + (promote_id && data[i].id == promote_id ? 'selected' : '') + ">" + data[i].nickname + "</option>"
|
|
}
|
|
$("#promote_id").empty();
|
|
$("#promote_id").append(str);
|
|
$("#promote_id").select2();
|
|
}
|
|
})
|
|
}
|
|
getPromotersByCompanyid();
|
|
$("#promote_id").change(function(){
|
|
promote_id = $("#promote_id option:selected").val();
|
|
})
|
|
|
|
$("#company_id").change(function(){
|
|
getPromotersByCompanyid();
|
|
})
|
|
// $("#game_name, #game_type").change(function(){
|
|
// get_partnet_list();
|
|
// });
|
|
|
|
// $("#game_name").change();
|
|
})
|
|
</script>
|
|
</block>
|