268 lines
12 KiB
HTML
268 lines
12 KiB
HTML
{include file="public/header"}
|
|
<body>
|
|
<style type="text/css">
|
|
textarea, input[type="text"], input[type="password"],.uneditable-input{border: 1px solid #ccc;background-color: #fff; }
|
|
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
|
.change_box .actived{border-right:1px solid #e5e5e5;border-left:1px solid #e5e5e5;border-top:1px solid #e5e5e5; position: relative; color: #3daae9; }
|
|
.change_box .actived:after{content: ""; bottom: -2px; background: #fff; width: 100%; height: 5px; position: absolute; left: 0; }
|
|
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
|
|
.x-body .layui-form .layui-input-block{display:inline-block; width:150px; margin-left:0; }
|
|
.x-so input.layui-input{width: 150px;}
|
|
.layui-input{border: 1px solid #ccc;}
|
|
.x-so{ margin-bottom:0;background:#f5f5f5;padding:15px 0; border-radius:10px;}
|
|
.x-body .layui-row{margin-top:-25px;}
|
|
.alert{position:fixed; top:15%; left:30%; width:600px; min-height:320px; background:#fff; border:1px solid #e2e2e2; border-radius:5px; display:none;}
|
|
.alert-title{background:#009688; height:40px; text-align: center; line-height:40px; font-size:14px; border-bootom:1px solid #F2F2F2;color:#fff;}
|
|
.alert-main th{width:25%; border-left:none; text-align:right;}
|
|
.alert-main td{width:25%;}
|
|
.alert-footer{padding:20px; text-align:center;}
|
|
.alert-footer span{padding:10px 30px; display:inline-block; border-radius:5px; cursor:pointer;}
|
|
</style>
|
|
<div class="x-nav" style="padding: 0px;">
|
|
<span class="change_box">
|
|
<a href="javascript:;" class="dt_list actived" data-id="1">牛牛游戏记录</a>
|
|
</span>
|
|
<a class="layui-btn layui-btn-small refresh" style="line-height:1.6em;margin-top:3px;float:right"
|
|
href="javascript:location.replace(location.href);" title="刷新">
|
|
<i class="layui-icon" style="line-height:30px">ဂ</i></a>
|
|
</div>
|
|
<br>
|
|
<div class="x-body">
|
|
<div class="layui-row">
|
|
<form class="layui-form layui-col-md12 x-so float-left" action="/player/nn_record" method="get">
|
|
<input class="layui-input" placeholder="开始时间" name="startDate" id="start" value="<?php if(isset($get['startDate'])) echo $get['startDate']; ?>">
|
|
<input class="layui-input" placeholder="结束时间" name="endDate" id="end" value="<?php if(isset($get['endDate'])) echo $get['endDate']; ?>">
|
|
<div class="layui-input-block" id="search_table_name">
|
|
<select name="table_id" lay-search>
|
|
<option value="" selected>桌台</option>
|
|
{volist name="table_list" id="vo"}
|
|
<option value="{$vo.id}" <?php if( isset($get['table_id']) && $get['table_id'] == $vo['id']) echo 'selected="selected"'; ?> >{$vo.table_name}</option>
|
|
{/volist}
|
|
</select>
|
|
</div>
|
|
<input class="layui-input" placeholder="账号" name="username" id="username" value="<?php if(isset($get['username'])) echo $get['username']; ?>" lay-key="">
|
|
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon"></i></button>
|
|
<span class="layui-btn" id="export">导出excel</span>
|
|
<!-- <span class="layui-btn" id="print">打印</span> -->
|
|
</form>
|
|
</div>
|
|
<table class="layui-table">
|
|
<thead>
|
|
<tr>
|
|
<th>玩家账号</th>
|
|
<th>代理</th>
|
|
<th>游戏桌台</th>
|
|
<th>局号</th>
|
|
<th>结果</th>
|
|
<th>下注详情</th>
|
|
<th>总下注额</th>
|
|
<th>输赢</th>
|
|
<th>下注时间</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{if $isData eq true}
|
|
{foreach name="nn_list" item="vo"}
|
|
<tr>
|
|
<td>{$vo.user_nickname}</td>
|
|
<td>{if $vo.agent_parent_username neq ''}{$vo.agent_parent_username}{/if}</td>
|
|
<td>{$vo.table_name}</td>
|
|
<td>{$vo.record_num}</td>
|
|
<td>{$vo.result}</td>
|
|
<td>
|
|
<a href="javascript:;" onclick="showBet(this)" amount_player_1="{$vo.amount_player_1}" amount_player_1_times="{$vo.amount_player_1_times}" amount_player_1_banker="{$vo.amount_player_1_banker}" amount_player_1_banker_times="{$vo.amount_player_1_banker_times}" amount_player_2="{$vo.amount_player_2}" amount_player_2_times="{$vo.amount_player_2_times}" amount_player_2_banker="{$vo.amount_player_2_banker}" amount_player_2_banker_times="{$vo.amount_player_2_banker_times}" amount_player_3="{$vo.amount_player_3}" amount_player_3_times="{$vo.amount_player_3_times}" amount_player_3_banker="{$vo.amount_player_3_banker}" amount_player_3_banker_times="{$vo.amount_player_3_banker_times}">
|
|
<span class="layui-btn layui-btn-mini" style="background:#009688;" >查看</span>
|
|
</a>
|
|
</td>
|
|
<td>{$vo.amount}</td>
|
|
<td>{$vo.win_total}</td>
|
|
<td>{$vo.create_time}</td>
|
|
</tr>
|
|
{/foreach}
|
|
{else}
|
|
<tr>
|
|
<td colspan="11" style="text-align: center;">当日暂无数据</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="alert" id="bet_info">
|
|
<div class="alert-title">下注详情</div>
|
|
<div class="alert-main">
|
|
<table class="layui-table" style="margin:0;">
|
|
<tr>
|
|
<th>闲一平倍:</th>
|
|
<td id="amount_player_1"></td>
|
|
<th>闲一翻倍:</th>
|
|
<td id="amount_player_1_times"></td>
|
|
</tr>
|
|
<tr>
|
|
<th>闲一庄平倍:</th>
|
|
<td id="amount_player_1_banker"></td>
|
|
<th>闲一庄翻倍:</th>
|
|
<td id="amount_player_1_banker_times"></td>
|
|
</tr>
|
|
<tr>
|
|
<th>闲二平倍:</th>
|
|
<td id="amount_player_2"></td>
|
|
<th>闲二翻倍:</th>
|
|
<td id="amount_player_2_times"></td>
|
|
</tr>
|
|
<tr>
|
|
<th>闲二庄平倍:</th>
|
|
<td id="amount_player_2_banker"></td>
|
|
<th>闲二庄翻倍:</th>
|
|
<td id="amount_player_2_banker_times"></td>
|
|
</tr>
|
|
<tr>
|
|
<th>闲三平倍:</th>
|
|
<td id="amount_player_3"></td>
|
|
<th>闲三翻倍:</th>
|
|
<td id="amount_player_3_times"></td>
|
|
</tr>
|
|
<tr>
|
|
<th>闲三庄平倍:</th>
|
|
<td id="amount_player_3_banker"></td>
|
|
<th>闲三庄翻倍:</th>
|
|
<td id="amount_player_3_banker_times"></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="alert-footer">
|
|
<span onclick="hiddenForm('bet_info')" class="input_button" style="background:#009688; border:1px solid #e2e2e2;color:#fff;">关闭</span>
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
// 代理列表和添加代理切换
|
|
$('.x-nav .change_box a').click(function(){
|
|
// 样式切换
|
|
$('.x-nav .change_box a').removeClass('actived');
|
|
$(this).addClass('actived');
|
|
// 页面切换
|
|
var id = $(this).attr('data-id');
|
|
if(id == "1") location.href = '/player/dn_record';
|
|
});
|
|
// 时间选择器
|
|
layui.use('laydate', function () {
|
|
var laydate = layui.laydate;
|
|
|
|
// 开始时间
|
|
laydate.render({
|
|
elem: '#start',
|
|
type: 'datetime'
|
|
});
|
|
|
|
// 结束时间
|
|
laydate.render({
|
|
elem: '#end',
|
|
type: 'datetime'
|
|
});
|
|
});
|
|
|
|
// 打印数据
|
|
$('#print').click(function(){
|
|
var qs = getQueryString();
|
|
var startDate = qs["startDate"];
|
|
var endDate = qs["endDate"];
|
|
var table_id = qs["table_id"];
|
|
var username = qs["username"];
|
|
if(startDate == undefined){
|
|
startDate = '';
|
|
}
|
|
if(endDate == undefined){
|
|
endDate = '';
|
|
}
|
|
if(table_id == undefined){
|
|
table_id = '';
|
|
}
|
|
if(username == undefined){
|
|
username = '';
|
|
}
|
|
layer.open({
|
|
type: 2,
|
|
title: '牛牛游戏记录打印',
|
|
content: '/player/nn_record_print?startDate='+startDate+'&endDate='+endDate+'&table_id='+table_id+'&username='+username,
|
|
area: ['95%', '95%']
|
|
});
|
|
});
|
|
function getQueryString() {
|
|
var qs = location.search.substr(1), // 获取url中"?"符后的字串
|
|
args = {}, // 保存参数数据的对象
|
|
items = qs.length ? qs.split("&") : [], // 取得每一个参数项,
|
|
item = null,
|
|
len = items.length;
|
|
|
|
for(var i = 0; i < len; i++) {
|
|
item = items[i].split("=");
|
|
var name = decodeURIComponent(item[0]),
|
|
value = decodeURIComponent(item[1]);
|
|
if(name) {
|
|
args[name] = value;
|
|
}
|
|
}
|
|
return args;
|
|
}
|
|
|
|
// 导出excel
|
|
$('#export').click(function(){
|
|
var startDate = $('#start').val();
|
|
var endDate = $('#end').val();
|
|
var table_id = $('#table_id').val();
|
|
var username = $('#username').val();
|
|
if(startDate == undefined){
|
|
startDate = '';
|
|
}
|
|
if(endDate == undefined){
|
|
endDate = '';
|
|
}
|
|
if(table_id == undefined){
|
|
table_id = '';
|
|
}
|
|
if(username == undefined){
|
|
username = '';
|
|
}
|
|
layer.confirm('确定导出 excel 吗?',function(index){
|
|
location.href = '/player/nn_record?export=1&startDate='+startDate+'&endDate='+endDate+'&table_id='+table_id+'&username='+username;
|
|
layer.close(index);
|
|
});
|
|
})
|
|
// 显示用户的下注详情
|
|
function showBet(obj){
|
|
// 获取赔率数据
|
|
var amount_player_1 = $(obj).attr('amount_player_1');
|
|
var amount_player_1_times = $(obj).attr('amount_player_1_times');
|
|
var amount_player_1_banker = $(obj).attr('amount_player_1_banker');
|
|
var amount_player_1_banker_times = $(obj).attr('amount_player_1_banker_times');
|
|
|
|
var amount_player_2 = $(obj).attr('amount_player_2');
|
|
var amount_player_2_times = $(obj).attr('amount_player_2_times');
|
|
var amount_player_2_banker = $(obj).attr('amount_player_2_banker');
|
|
var amount_player_2_banker_times = $(obj).attr('amount_player_2_banker_times');
|
|
|
|
var amount_player_3 = $(obj).attr('amount_player_3');
|
|
var amount_player_3_times = $(obj).attr('amount_player_3_times');
|
|
var amount_player_3_banker = $(obj).attr('amount_player_3_banker');
|
|
var amount_player_3_banker_times = $(obj).attr('amount_player_3_banker_times');
|
|
|
|
$('#amount_player_1').html(amount_player_1);
|
|
$('#amount_player_1_times').html(amount_player_1_times);
|
|
$('#amount_player_1_banker').html(amount_player_1_banker);
|
|
$('#amount_player_1_banker_times').html(amount_player_1_banker_times);
|
|
$('#amount_player_2').html(amount_player_2);
|
|
$('#amount_player_2_times').html(amount_player_2_times);
|
|
$('#amount_player_2_banker').html(amount_player_2_banker);
|
|
$('#amount_player_2_banker_times').html(amount_player_2_banker_times);
|
|
$('#amount_player_3').html(amount_player_3);
|
|
$('#amount_player_3_times').html(amount_player_3_times);
|
|
$('#amount_player_3_banker').html(amount_player_3_banker);
|
|
$('#amount_player_3_banker_times').html(amount_player_3_banker_times);
|
|
$('#bet_info').show();
|
|
}
|
|
//点击隐藏表单弹窗
|
|
function hiddenForm(id) {
|
|
$('#' + id).hide();
|
|
}
|
|
</script>
|
|
</body>
|
|
</html> |