init: 从宝塔同步到 Gitea
This commit is contained in:
@@ -0,0 +1,163 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
.x-body .layui-row{ margin-top:-10px; line-height:25px; background:#f5f5f5; border-radius:10px; }
|
||||
.x-body .layui-row .xblock button{ margin-top:-20px; }
|
||||
.x-body .layui-form{ margin-top:15px; margin-bottom:16px; }
|
||||
.x-body .layui-form .layui-input-block{ display:inline-block; width:150px; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item{ display:inline-block; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-label{ width:48px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block{ margin-left:-10px; width:100px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block .layui-form-radio i{ margin-right:4px; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-radio{ margin-top:6px; margin-right:-8px; }
|
||||
.layui-input-block dl{ text-align:left; }
|
||||
.x-so{ margin:0; }
|
||||
.x-so input.layui-input{ width:150px; }
|
||||
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
|
||||
.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; }
|
||||
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
||||
.layui-table{margin-bottom:0;}
|
||||
.no-data{background:#f2f2f2;text-align:center;height:30px;line-height:30px;}
|
||||
.operation{width:20%}
|
||||
.child-false{background:#FBFBFB;color:#ccc;}
|
||||
.child-false:hover{background:#FBFBFB;color:#ccc;cursor:not-allowed;}
|
||||
</style>
|
||||
<body>
|
||||
<div class="x-nav" style="padding: 0px;">
|
||||
<span class="change_box">
|
||||
<a href="javascript:;" class="list-one actived" data-id="1">收益日报表</a>
|
||||
<!--<a href="javascript:;" class="list-two" data-id="2">玩家添加</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="/report/profit" 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'];} ?>">
|
||||
<input type="text" name="username" id="username" placeholder="代理账号" autocomplete="off" class="layui-input" value="<?php if(isset($get['username'])) {echo $get['username'];} ?>">
|
||||
<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 class="operation">操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="agent_list" item="vo"}
|
||||
<tr>
|
||||
<td>
|
||||
<a href="javascript:;" class="relation" onclick="x_admin_show('关系结构','/index/relation?id={$vo.id}',400,500)">{$vo.username}</a>
|
||||
{if condition="$vo.status == 0"}
|
||||
<span style="color:red;">(禁用)</span>
|
||||
{/if}
|
||||
</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<td>{$vo.self_income_cs}</td>
|
||||
<td>{$vo.agent_ximalv}</td>
|
||||
<td>{$vo.self_income_xima}</td>
|
||||
<td>{$vo.total_income}</td>
|
||||
<td>
|
||||
{if condition="$vo.child_agent > 0"}
|
||||
<a class="layui-btn layui-btn-normal layui-btn-mini" href="javascript:;" onclick="x_admin_show('{$vo.username} > 下级代理','/report/profit?agent_id={$vo.id}&startDate={$get.startDate}&endDate={$get.endDate}')">下级代理</a>
|
||||
{else}
|
||||
<a class="layui-btn layui-btn-normal layui-btn-mini child-false" href="javascript:;">下级代理</a>
|
||||
{/if}
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($agent_list) == 0): ?>
|
||||
<div class="no-data">暂无数据</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
<!-- 隐藏参数 -->
|
||||
<input type="hidden" id="agent_id" value="<?php if(isset($get['agent_id'])) echo $get['agent_id']; ?>">
|
||||
<script>
|
||||
// 代理列表和添加代理切换
|
||||
$('.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 = '/report/profit';
|
||||
// if(id == "2") location.href = '/player/player_add';
|
||||
});
|
||||
// 时间选择器
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
// 开始时间
|
||||
laydate.render({
|
||||
elem: '#start',
|
||||
type: 'datetime'
|
||||
});
|
||||
|
||||
// 结束时间
|
||||
laydate.render({
|
||||
elem: '#end',
|
||||
type: 'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
var startDate = $('#start').val();
|
||||
var endDate = $('#end').val();
|
||||
var username = $('#username').val();
|
||||
var agent_id = $('#agent_id').val();
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/report/profit?export=1&startDate="+startDate+"&endDate="+endDate+"&username="+username+'&agent_id='+agent_id;
|
||||
layer.close(index);
|
||||
});
|
||||
})
|
||||
$('#print').click(function(){
|
||||
var startDate = $('#start').val();
|
||||
var endDate = $('#end').val();
|
||||
var username = $('#username').val();
|
||||
var agent_id = $('#agent_id').val();
|
||||
layer.open({
|
||||
type: 2,
|
||||
title:'收益日报表打印',
|
||||
content: '/report/profit_print?&startDate='+startDate+'&endDate='+endDate+'&username='+username+'&agent_id='+agent_id,
|
||||
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;
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,41 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
.layui-table{margin-bottom:0;}
|
||||
.layui-table th{text-align:center;}
|
||||
.no-data{background:#f2f2f2;text-align:center;height:30px;line-height:30px;}
|
||||
</style>
|
||||
<body>
|
||||
<div class="x-body">
|
||||
<div class="layui-btn no-print" onclick="jQuery('html').print()">打印</div>
|
||||
<table class="layui-table">
|
||||
<div style="text-align: center;font-size: 18px;font-weight:bold;">收益日报表</div>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>用户名</th>
|
||||
<th>占成%</th>
|
||||
<th>占成收益</th>
|
||||
<th>洗码率%</th>
|
||||
<th>洗码收益</th>
|
||||
<th>总收益金额</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach name="agent_list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.username}</td>
|
||||
<td>{$vo.agent_cs}</td>
|
||||
<td>{$vo.self_income_cs}</td>
|
||||
<td>{$vo.self_income_xima}</td>
|
||||
<td>{$vo.agent_ximalv}</td>
|
||||
<td>{$vo.total_income}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if(count($agent_list) == 0): ?>
|
||||
<div class="no-data">暂无数据</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,147 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
.x-body .layui-row{ margin-top:-10px; line-height:25px; background:#f5f5f5; border-radius:10px; }
|
||||
.x-body .layui-row .xblock button{ margin-top:-20px; }
|
||||
.x-body .layui-form{ margin-top:15px; margin-bottom:12px; }
|
||||
.x-body .layui-form .layui-input-block{ display:inline-block; width:150px; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item{ display:inline-block; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-label{ width:48px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block{ margin-left:-10px; width:100px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block .layui-form-radio i{ margin-right:4px; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-radio{ margin-top:6px; margin-right:-8px; }
|
||||
.layui-input-block dl{ text-align:left; }
|
||||
.x-so{ margin:0; }
|
||||
.x-so input.layui-input{ width:150px; }
|
||||
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
|
||||
.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; }
|
||||
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
||||
</style>
|
||||
<body>
|
||||
<div class="x-nav" style="padding: 0px;">
|
||||
<span class="change_box">
|
||||
<a href="javascript:;" class="list-one actived" data-id="1">充值查询</a>
|
||||
<a href="javascript:;" class="list-two" data-id="2">提现查询</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="/report/user_recharge" 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'];} ?>">
|
||||
<input type="text" name="username" id="username" placeholder="请输入用户名" autocomplete="off" class="layui-input" value="<?php if(isset($get['username'])) {echo $get['username'];} ?>">
|
||||
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon"></i></button>
|
||||
<span class="layui-btn" id="export">导出 excel</span>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:130px;">时间</th>
|
||||
<th>用户名称[账号]</th>
|
||||
<th>充值U币</th>
|
||||
<th>充值金额</th>
|
||||
<th>充值前余额</th>
|
||||
<th>充值后余额</th>
|
||||
<th>外部交易号</th>
|
||||
<th>转账地址</th>
|
||||
<th>入账地址</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="1"></td>
|
||||
<td>合计</td>
|
||||
<td>{$total.amount}</td>
|
||||
<td>{$total.money}</td>
|
||||
<td colspan="9"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.nickname}[{$vo.username}]</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['old_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['new_money'],2,".",""); ?></td>
|
||||
<td>{$vo.out_trade_no}</td>
|
||||
<td>{$vo.from_addr}</td>
|
||||
<td>{$vo.to_addr}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{$list->render()}
|
||||
</div>
|
||||
<script>
|
||||
// 代理列表和添加代理切换
|
||||
$('.x-nav .change_box a').click(function(){
|
||||
// 样式切换
|
||||
$('.x-nav span').removeClass('actived');
|
||||
$(this).addClass('actived');
|
||||
// 页面切换
|
||||
var id = $(this).attr('data-id');
|
||||
if(id == 1) location.href = '/report/user_recharge';
|
||||
if(id == 2) location.href = '/report/user_withdraw';
|
||||
});
|
||||
// 时间选择器
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
// 开始时间
|
||||
laydate.render({
|
||||
elem: '#start',
|
||||
type: 'datetime'
|
||||
});
|
||||
|
||||
// 结束时间
|
||||
laydate.render({
|
||||
elem: '#end',
|
||||
type: 'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* 封装 AJAX 函数
|
||||
* @param url 目标地址
|
||||
* @param query 参数
|
||||
* @returns {string}
|
||||
*/
|
||||
function ajax(url, query) {
|
||||
var returnData = "";
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: query,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
returnData = data;
|
||||
}
|
||||
});
|
||||
return returnData;
|
||||
}
|
||||
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
var startDate = $('#start').val();
|
||||
var endDate = $('#end').val();
|
||||
var agent_level = $('#agent_level').val();
|
||||
var mode = $('#mode').val();
|
||||
var username = $('#username').val();
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/report/user_recharge?export=1&{$query}";
|
||||
layer.close(index);
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,181 @@
|
||||
{include file="public/header"}
|
||||
<style>
|
||||
.x-body .layui-row{ margin-top:-10px; line-height:25px; background:#f5f5f5; border-radius:10px; }
|
||||
.x-body .layui-row .xblock button{ margin-top:-20px; }
|
||||
.x-body .layui-form{ margin-top:15px; margin-bottom:12px; }
|
||||
.x-body .layui-form .layui-input-block{ display:inline-block; width:150px; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item{ display:inline-block; margin-left:0; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-label{ width:48px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block{ margin-left:-10px; width:100px; }
|
||||
.x-body .layui-form .layui-form-item .layui-input-block .layui-form-radio i{ margin-right:4px; }
|
||||
.x-body .layui-form .layui-form-item .layui-form-radio{ margin-top:6px; margin-right:-8px; }
|
||||
.layui-input-block dl{ text-align:left; }
|
||||
.x-so{ margin:0; }
|
||||
.x-so input.layui-input{ width:150px; }
|
||||
.x-nav{overflow: inherit; } .x-nav .refresh{margin-right: 20px; }
|
||||
.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; }
|
||||
.change_box a{font-size: 14px;padding: 10.5px 10px;}
|
||||
</style>
|
||||
<body>
|
||||
<div class="x-nav" style="padding: 0px;">
|
||||
<span class="change_box">
|
||||
<a href="javascript:;" class="list-one" data-id="1">充值查询</a>
|
||||
<a href="javascript:;" class="list-two actived" data-id="2">提现查询</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="/report/user_withdraw" 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'];} ?>">
|
||||
<input type="text" name="username" id="username" placeholder="请输入用户名" autocomplete="off" class="layui-input" value="<?php if(isset($get['username'])) {echo $get['username'];} ?>">
|
||||
<button class="layui-btn" lay-submit="" lay-filter="sreach"><i class="layui-icon"></i></button>
|
||||
<span class="layui-btn" id="export">导出 excel</span>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width:130px;">时间</th>
|
||||
<th>用户名称[账号]</th>
|
||||
<th>提现U币</th>
|
||||
<th>手续费(U币)</th>
|
||||
<th>提现金额</th>
|
||||
<th>手续费金额</th>
|
||||
<th>提现前余额</th>
|
||||
<th>提现后余额</th>
|
||||
<th>审核状态</th>
|
||||
<th>操作人[账号]</th>
|
||||
<th>操作类型</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if(count($list) > 0): ?>
|
||||
<tr style="background:#67B8D8;color:#fff;">
|
||||
<td colspan="1"></td>
|
||||
<td>合计</td>
|
||||
<td>{$total.amount}</td>
|
||||
<td>{$total.service_fee}</td>
|
||||
<td>{$total.money}</td>
|
||||
<td>{$total.service_fee_money}</td>
|
||||
<td colspan="6"></td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
{foreach name="list" item="vo"}
|
||||
<tr>
|
||||
<td>{$vo.create_time}</td>
|
||||
<td>{$vo.nickname}[{$vo.username}]</td>
|
||||
<td>{$vo.amount}</td>
|
||||
<td>{$vo.service_fee}</td>
|
||||
<td><?php echo number_format($vo['money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['service_fee_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['old_money'],2,".",""); ?></td>
|
||||
<td><?php echo number_format($vo['new_money'],2,".",""); ?></td>
|
||||
<td>{$vo.status_msg}</td>
|
||||
<td>{$vo.operator_nickname}[{$vo.operator_username}]</td>
|
||||
<td>{$vo.operator_source_msg}</td>
|
||||
<td class="td-manage">
|
||||
{if condition="$vo.status == 'WAIT'"}
|
||||
<a class="layui-btn layui-operation" href="javascript:;" onclick="doWithdraw('{$vo.id}')">审核通过</a>
|
||||
{/if}
|
||||
</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{$list->render()}
|
||||
</div>
|
||||
<script>
|
||||
// 代理列表和添加代理切换
|
||||
$('.x-nav .change_box a').click(function(){
|
||||
// 样式切换
|
||||
$('.x-nav span').removeClass('actived');
|
||||
$(this).addClass('actived');
|
||||
// 页面切换
|
||||
var id = $(this).attr('data-id');
|
||||
if(id == 1) location.href = '/report/user_recharge';
|
||||
if(id == 2) location.href = '/report/user_withdraw';
|
||||
});
|
||||
// 时间选择器
|
||||
layui.use('laydate', function () {
|
||||
var laydate = layui.laydate;
|
||||
|
||||
// 开始时间
|
||||
laydate.render({
|
||||
elem: '#start',
|
||||
type: 'datetime'
|
||||
});
|
||||
|
||||
// 结束时间
|
||||
laydate.render({
|
||||
elem: '#end',
|
||||
type: 'datetime'
|
||||
});
|
||||
});
|
||||
|
||||
// 处理提现
|
||||
function doWithdraw(id){
|
||||
var msg = "确定通过?";
|
||||
layer.confirm(msg,function(){
|
||||
$.ajax({
|
||||
url:'/report/doUserWithdraw',
|
||||
data:{id:id},
|
||||
type:'POST',
|
||||
dataType:'JSON',
|
||||
success:function(data){
|
||||
if(data.code == 1){
|
||||
layer.msg(data.msg,{icon:1},function(){
|
||||
location.href = "/report/user_withdraw";
|
||||
});
|
||||
}else{
|
||||
layer.msg(data.msg,function(){});
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 封装 AJAX 函数
|
||||
* @param url 目标地址
|
||||
* @param query 参数
|
||||
* @returns {string}
|
||||
*/
|
||||
function ajax(url, query) {
|
||||
var returnData = "";
|
||||
$.ajax({
|
||||
url: url,
|
||||
data: query,
|
||||
type: 'POST',
|
||||
dataType: 'JSON',
|
||||
async: false,
|
||||
success: function (data) {
|
||||
returnData = data;
|
||||
}
|
||||
});
|
||||
return returnData;
|
||||
}
|
||||
|
||||
// 导出excel
|
||||
$('#export').click(function(){
|
||||
var startDate = $('#start').val();
|
||||
var endDate = $('#end').val();
|
||||
var agent_level = $('#agent_level').val();
|
||||
var mode = $('#mode').val();
|
||||
var username = $('#username').val();
|
||||
layer.confirm('确定导出 excel 吗?',function(index){
|
||||
location.href = "/report/user_withdraw?export=1&{$query}";
|
||||
layer.close(index);
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user