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.

360 lines
13 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">下游聚合公司列表</h3>
<!-- <p class="description_text">说明平台币直充金额2019.12.18以前sdk新包数据及sdk旧包数据无法对应相关游戏无法计入以上平台币列表中<span style="color:red">充值方式统计</span>一栏统计<span style="color:red">平台币直充总金额</span></p>-->
<!-- <div class="fr">-->
<!-- <a href="PayChannel/index">游戏充值统计</a>-->
<!-- <a class="" href="{:U('Finance/payTypeStatistics')}">充值方式统计</a>-->
<!-- <a class="tabchose">收款商户统计</a>-->
<!-- </div>-->
</div>
<div class="cf top_nav_list">
<!-- 高级搜索 -->
<div class="jssearch fl cf search_list">
<!--游戏类型搜索END-->
<div class="input-list input-list-game search_label_rehab">
<select id="channel_id" name="channel_id" class="select_gallery" >
<option value="">请选择合作公司</option>
<volist name=":getCpCompanySelect(1)" id="vo">
<option value="{$vo.id}" <if condition="$vo.id eq I('channel_id')">selected</if> >{$vo.name}</option>
</volist>
</select>
</div>
<div class="input-list input-list-spend search_label_rehab">
<select id="company_properties" name="company_properties" class="select_gallery" style="width:120px;">
<option value="">请选择公司性质</option>
<option value="0">个人</option>
<option value="1">公司</option>
</select>
</div>
<div class="input-list input-list-game search_label_rehab">
<select id="origin_game_name" name="origin_game_name" class="select_gallery" >
<option value="">请选择原包名</option>
<volist name=":getCpCompanySelect(2)" id="vo">
<if condition="$vo.original_package_name neq ''">
<option value="{$vo.original_package_name}" <if condition="$vo.original_package_name eq I('original_package_name')">selected</if> >{$vo.original_package_name}</option>
</if>
</volist>
</select>
</div>
<div class="input-list input-list-game search_label_rehab">
<select id="game_id" name="game_id" class="select_gallery" >
<option value="">请选择现包名</option>
<volist name=":getCpCompanySelect(2)" id="vo">
<option value="{$vo.id}" <if condition="$vo.id eq I('id')">selected</if> >{$vo.game_name}</option>
</volist>
</select>
</div>
<input type="hidden" name="" value="" class="sortBy">
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('CpJuheCompany/index','model='.$model['name'].'&row='.I('row'),false)}"
style="width: 100px;border: #3C95C8 solid 1px;">搜索</a>
<a class="sch-btn" url="{:U('/CpJuheCompany/index',
array_merge(array('export'=>1),I('get.'))
,false)}" style="width: 100px;border: #3C95C8 solid 1px;" id="downloadexcel">导出</a>
</div>
</div>
</div>
<!-- 数据列表 -->
<div class="data_list">
<empty name="show_status">
<div class="">
<table>
<!-- 表头 -->
<thead>
<tr>
<th >合作方名称</th>
<th >对应平台</th>
<th >公司性质</th>
<!-- <th >支付渠道</th>-->
<th >原包名</th>
<th >现包名</th>
<th >聚合包名</th>
<th >产品类型</th>
<th >结算周期</th>
<th colspan="2">游戏分成比例</th>
<th >账户名</th>
<th >银行账号</th>
<th >开户行</th>
<th >支付宝账号</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>-->
<!-- </if>-->
<notemtpy name = "listdata">
<volist name="listdata" id="vo">
<tr>
<td rowspan="{$vo.rowspan}">{$vo.name|default="------"}</td>
<td rowspan="{$vo.rowspan}">{$vo.platform|default="------"}</td>
<td rowspan="{$vo.rowspan}">{$vo.company_properties|default="------"}</td>
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['original_package_name'][0]|default="------"}</td>
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['game_name'][0]|default="------"}</td>
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['game_name'][0]|default="------"}</td>
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['game_type'][0]|default="------"}</td>
<td rowspan="{$vo['sec_rowspan'][0]}">{$vo['withdraw_type'][0]|default="------"}</td>
<td rowspan='1'>默认</td>
<td rowspan='1'>{$vo['rate_data'][0][0]['exploitation_rate']|default="0"}</td>
<td rowspan="{$vo.rowspan}">{$vo.bank_user|default="------"}</td>
<td rowspan="{$vo.rowspan}">{$vo.bank_card|default="------"}</td>
<td rowspan="{$vo.rowspan}">{$vo.bank_name|default="------"}</td>
<td rowspan="{$vo.rowspan}">{$vo.alipay_user|default="------"}</td>
<td rowspan="{$vo.rowspan}">
<a href="{:U('CpJuheCompany/detail',array('id'=>$vo['id']))}">查看</a>
</td>
</tr>
<volist name="vo.game_name" id="sec" key="index">
<if condition="$index gt 1">
<tr>
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['original_package_name'][$index-1]|default="------"}</td>
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['game_name'][$index-1]|default="------"}</td>
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['game_name'][$index-1]|default="------"}</td>
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['game_type'][$index-1]|default="------"}</td>
<td rowspan="{$vo['sec_rowspan'][$index-1]}">{$vo['withdraw_type'][$index-1]|default="------"}</td>
<td rowspan='1'>{$vo['rate_data'][$index-1][0]['exploitation_name']}</td>
<td rowspan='1'>{$vo['rate_data'][$index-1][0]['exploitation_rate']}</td>
</tr>
</if>
<volist name="vo['rate_data'][$index-1]" id="rate" key="rate_index">
<if condition="$rate['exploitation_name'] neq '默认'">
<tr>
<td rowspan='1'>{$rate.exploitation_name}</td>
<td rowspan='1'>{$rate.exploitation_rate}</td>
</tr>
</if>
</volist>
</volist>
</volist>
</notemtpy>
</tbody>
</table>
</div>
</empty>
</div>
<div class="page">
{$_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">
$("#channel_id").select2();
$("#company_properties").select2();
$("#origin_game_name").select2();
$("#game_id").select2();
//导航高亮
highlight_subnav('{:U('CpJuheCompany/index')}');
function showWindow() {
layer.open({
type: 2,
title: "游戏登录记录",
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: ['admin.php?s=/Member/denglu/id/', 'no']
});
}
function get_game_list()
{
var game_name = "{:I('game_id')}";
$.ajax({
url:"{:U('PayChannel/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].id+"'"+(game_name && data[i].id == game_name?'selected':'')+">"+data[i].game_name+"</option>"
}
// console.log(str);
$("#game_name").empty();
$("#game_name").append(str);
$("#game_name").select2();
}
})
}
get_game_list();
$(function(){
$("#downloadexcel").on("click",function(){
var url = $(this).attr("url");
var title = '下游聚合公司导出';
layer.open({
type: 2,
title: title,
shadeClose: true,
shade: 0.8,
area: ['40%', '60%'],
content: url
});
})
$('#timestart').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'
})
//搜索功能
$("#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.href = url;
});
//回车自动提交
$('.jssearch').find('input').keyup(function(event){
if(event.keyCode===13){
$("#search").click();
}
});
})
</script>
</block>