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.

385 lines
15 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="{:U('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-promote search_label_rehab">-->
<!-- <select id="count_date" name="count_date" class="select_gallery" style="width:150px;">-->
<!-- <option value="">请选择月份</option>-->
<!-- <volist name=":getMonth()" id="vo">-->
<!-- <option value="{$vo}" <if condition="$vo eq $_GET['count_date']">selected=selected</if>>{$vo}</option>-->
<!-- </volist>-->
<!-- </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-game search_label_rehab">-->
<!-- <select id="game_name" name="game_id" class="select_gallery" >-->
<!-- <option value="">游戏名称</option>-->
<!-- </select>-->
<!-- </div>-->
<div class="input-list input-list-game search_label_rehab">
<select id="main_name" name="main_name" class="select_gallery" >
<option value="">请选择商户主体</option>
4 years ago
<volist name=":getMerchant(1)" id="vo">
<option value="{$vo.main_name}" <if condition="$vo.main_name eq I('main_name')">selected</if> >{$vo.main_name}</option>
</volist>
</select>
</div>
<div class="input-list input-list-game search_label_rehab">
<select id="account" name="account" class="select_gallery" >
<option value="">请选择商户账号</option>
<volist name=":getMerchant()" id="vo">
<option value="{$vo.account}" <if condition="$vo.account eq I('account')">selected</if> >{$vo.account}</option>
</volist>
</select>
</div>
<div class="input-list input-list-game search_label_rehab">
<select id="pay_way" name="pay_way" class="select_gallery" >
<option value="">请选择支付方式</option>
<option value="1" <if condition="$_GET['pay_way'] eq '1'">selected</if>>支付宝</option>
<option value="2" <if condition="$_GET['pay_way'] eq '2'">selected</if>>微信</option>
<option value="4" <if condition="$_GET['pay_way'] eq '4'">selected</if>>快捷</option>
</select>
</div>
<div class="input-list input-list-game search_label_rehab">
<select id="name" name="name" class="select_gallery" >
<option value="">请选择支付商户</option>
<volist name=":getMerchant()" id="vo">
<option value="{$vo.name}" <if condition="$vo.name eq I('name')">selected</if> >{$vo.name}</option>
</volist>
</select>
</div>
<!-- <div class="input-list input-list-spend search_label_rehab">-->
<!-- <select id="channel" name="channel" class="select_gallery" style="width:120px;">-->
<!-- <option value="">支付渠道</option>-->
<!-- <option value="1">支付宝</option>-->
<!-- <option value="2">微信</option>-->
<!-- <option value="3">易宝支付</option>-->
<!-- <option value="4">双乾支付</option>-->
<!-- <option value="5">汇付宝支付</option>-->
<!-- </select>-->
<!-- </div>-->
<div class="input-list">
<input type="text" id="timestart" name="timestart" class="" value="{:I('timestart')}" placeholder="下单开始时间" autocomplete="off"/>
-
<div class="input-append date" id="datetimepicker" style="display:inline-block">
<input type="text" id="timeend" name="timeend" class="" value="{:I('timeend')}" placeholder="下单结束时间" autocomplete="off"/>
<span class="add-on"><i class="icon-th"></i></span>
</div>
</div>
<input type="text" name="type" class="" value="{$_GET['type']}" style="display: none"/>
<!-- <input type="text" name="pay_way" class="" value="{$_GET['pay_way']}" style="display: none"/>-->
<input type="hidden" name="" value="" class="sortBy">
<div class="input-list">
<a class="sch-btn" href="javascript:;" id="search" url="{:U('PayMerchant/index','model='.$model['name'].'&row='.I('row'),false)}"
style="width: 100px;border: #3C95C8 solid 1px;">搜索</a>
<if condition="$role_export_check eq true ">
<a class="sch-btn" href="{:U('/PayMerchant/index/export/1', array_merge(array('export'=>1),$_GET),false)}" style="width: 100px;border: #3C95C8 solid 1px;">导出</a>
</if>
</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 >测试环境内外网平台金额</th>
<th >超级签</th>
<th >官网</th>
<th >推广后台</th>
4 years ago
<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="data">
<tr>
<td>{$data.main_name|default = '无'}</td>
<td >{$data.name|default = '无'}</td>
<td >{$data.merchant_way|default = '无'}</td>
<td >{$data.account|default = ''}</td>
<!-- <td >{$data['channel']|default = ''}</td>-->
<td >{$data['ratio']}%</td>
<td >{$data['cash_amount']|default = '0.00'}</td>
<td >{$data['coin_amount']|default = '0.00'}</td>
<td >{$data['test_amount']|default = '0.00'}</td>
<td >{$data['test_order_amount']|default = '0.00'}</td>
<td >{$data['supersign_amount']|default = '0.00'}</td>
<td >{$data['offcial_amount']|default = '0.00'}</td>
<td >{$data['spread_amount']|default = '0.00'}</td>
<td >{$data['sum']|default = '0.00'}</td>
</tr>
</volist>
<tr>
<td><span>合计(根据时间检索变化)</span></td>
<td></td>
<td></td>
<td></td>
<td>100%</td>
<td ><span>{$sum['cash_amount']|default = '0.00'}</span></td>
<td ><span>{$sum['coin_amount']|default = '0.00'}</span></td>
<td ><span>{$sum['test_amount']|default = '0.00'}</span></td>
<td ><span>{$sum['test_order_amount']|default = '0.00'}</span></td>
<td ><span>{$sum['supersign_amount']|default = '0.00'}</span></td>
<td ><span>{$sum['offcial_amount']|default = '0.00'}</span></td>
<td ><span>{$sum['spread_amount']|default = '0.00'}</span></td>
<td ><span>{$sum['sum']|default = '0.00'}</span></td>
</tr>
</notemtpy>
<tr>
<td><span>汇总(根据时间检索变化)</span></td>
<td colspan="20">
<if condition="empty($sum_merchant) eq true">
</if>
<volist name="sum_merchant" id="sum_merchant">
4 years ago
{$sum_merchant.name}({$sum_merchant.merchant_way}){$sum_merchant.sum_amount|default = '0.00'} &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
</volist>
</td>
</tr>
<tr>
<td><span>收款商户占比</span></td>
<td colspan="20">
<if condition="empty($sum_radio) eq true">
</if>
<volist name="sum_radio" id="sum_radio">
{$sum_radio.name}({$sum_radio.merchant_way}){$sum_radio.ratio|default = 0}% &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp
</volist>
</td>
</tr>
</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">
$("#name").select2();
$("#main_name").select2();
$("#account").select2();
$("#pay_way").select2();
//导航高亮
4 years ago
highlight_subnav('{:U('PayChannel/index')}');
function showWindow() {
layer.open({
type: 2,
title: "游戏登录记录",
shadeClose: true,
shade: 0.8,
area: ['70%', '80%'],
content: ['{$Think.SUBSITE_INDEX}?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(){
$('#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>