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.
233 lines
7.6 KiB
HTML
233 lines
7.6 KiB
HTML
2 years ago
|
<extend name="Public/head-foot-new" />
|
||
|
<block name="body">
|
||
|
<link rel="stylesheet" href="__CSS__/select2.min.css" type="text/css" />
|
||
|
<script type="text/javascript" src="__JS__/select2.min.js"></script>
|
||
|
|
||
|
<!--内容start-->
|
||
|
<div class="page-search normal_list query-register-search">
|
||
|
<div class="trunk-title">
|
||
|
<div class="location">
|
||
|
<div class="location-container">当前位置:<span>充值明细</span></div>
|
||
|
</div>
|
||
|
<img src="__IMG__/icon_chongzhi.png">
|
||
|
<span class="title_main">充值明细</span>
|
||
|
</div>
|
||
|
|
||
|
<div class="trunk-content article">
|
||
|
<div class="trunk-search clearfix">
|
||
|
<form action="" method="post">
|
||
|
<div class="form-group normal_space fr">
|
||
|
<input type="submit" class="submit" value="查询">
|
||
|
</div>
|
||
|
<div class="form-group normal_space fr">
|
||
|
<label class="form-title select-title">注册时间:</label>
|
||
|
<div class="select-time">
|
||
|
<input type="text" name="begtime" class="time-input1 txt" id="sdate" value="{:I('begtime')}" placeholder="开始时间">
|
||
|
</div>
|
||
|
<label class="form-title select-title zhi_color"> — </label>
|
||
|
<div class="select-time">
|
||
|
<input type="text" name="endtime" class="time-input2 txt" id="edate" value="{:I('endtime')}" placeholder="结束时间">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="form-group normal_space fr">
|
||
|
<select id="promote_id" name="promote_id" class="select_gallery">
|
||
|
<option value="" selected="true">请选择推广员</option>
|
||
|
<volist name=":get_map_promote_list($uid)" id="vo">
|
||
|
<option value="{$vo.id}" <if condition="I('promote_id') eq $vo['id']" > selected="true" </if> > {$vo.account}</option>
|
||
|
</volist>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="form-group normal_space fr">
|
||
|
<select id="game_id" name="game_id" class="select_gallery" style="width:215px;">
|
||
|
<empty name="game_list">
|
||
|
<option value="" id="game_data" selected="true">暂无推广游戏</option>
|
||
|
<else/>
|
||
|
<option value="" id="game_data" selected="true">请选择游戏</option>
|
||
|
<volist name="game_list" id="vo">
|
||
|
<option value="{$vo.game_id}" <if condition="I('game_id') eq $vo['game_id']"> selected="true" </if> > {$vo.game_name}</option>
|
||
|
</volist>
|
||
|
</empty>
|
||
|
</select>
|
||
|
</div>
|
||
|
<div class="form-group fr">
|
||
|
<input type="text" name="username" class="user-input txt normal_txt" id="username" placeholder="请输入用户名" value="{:I('username')}">
|
||
|
</div>
|
||
|
|
||
|
</form>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="page-list query-register-list">
|
||
|
<div class="trunk-content article">
|
||
|
<div class="trunk-list list_normal" style="min-height: 56vh;">
|
||
|
<table class="normal_table">
|
||
|
<tr class="num1">
|
||
|
<td>用户帐号</td>
|
||
|
<td>订单号</td>
|
||
|
<td style="width: 270px;">游戏名称</td>
|
||
|
<td>应付金额</td>
|
||
|
<td>实付金额</td>
|
||
|
<td>支付方式</td>
|
||
|
<td>充值时间</td>
|
||
|
<td>充值状态</td>
|
||
|
<td>推广员</td>
|
||
|
</tr>
|
||
|
<empty name="list_data">
|
||
|
<tr>
|
||
|
<td class="num2" colspan="9">暂无数据</td>
|
||
|
</tr>
|
||
|
<else/>
|
||
|
<volist name="list_data" id="data">
|
||
|
<tr class="num2">
|
||
|
<td>{$data.user_account}</td>
|
||
|
<td>{$data.order_number}</td>
|
||
|
<td title="{$data.game_name}">{:msubstr2($data['game_name'],0,10)}</td>
|
||
|
<td>{$data.cost}</td>
|
||
|
<td>{$data.pay_amount}</std>
|
||
|
<td>
|
||
|
<?php
|
||
|
if($data['pay_way'] == -1)echo '绑币';
|
||
|
if($data['pay_way'] == 0)echo '平台币';
|
||
|
if($data['pay_way'] == 1)echo '支付宝';
|
||
|
if($data['pay_way'] == 2)echo '微信(扫码)';
|
||
|
if($data['pay_way'] == 3)echo '微信app';
|
||
|
if($data['pay_way'] == 4)echo '富通 ';
|
||
|
if($data['pay_way'] == 5)echo '聚宝云';
|
||
|
if($data['pay_way'] == 6)echo '竣付通';
|
||
|
?>
|
||
|
</td>
|
||
|
<td>
|
||
|
<?php echo date("Y-m-d H:i:s",$data['pay_time'])?>
|
||
|
</td>
|
||
|
<td>
|
||
|
<?php echo $data['pay_status'] == 1?'已充值':'未充值'; ?>
|
||
|
</td>
|
||
|
<td>{$data.promote_account}</td>
|
||
|
</tr>
|
||
|
</volist>
|
||
|
</empty>
|
||
|
</table>
|
||
|
<div class="import fr">
|
||
|
<span class="txt"><span class="normal_tot">应付总计:</span>¥<empty name="cost_sum">0<else/>{:$cost_sum}</empty></span>
|
||
|
<span class="txt"><span class="normal_tot">实付总计:</span>¥<empty name="pay_amount_num">0<else/>{:$pay_amount_num}</empty></span>
|
||
|
<span class="txt"><span class="normal_tot">数据量:</span>{$count}条数据</span>
|
||
|
<span class="btn"><a href="javascript:;" url="{:U('Buydetail/exportSpendDetail',array('p'=>$_GET['p']))}" id="exportData">导出数据(excel格式)</a></span>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="pagenation clearfix">{$_page}</div>
|
||
|
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
</div>
|
||
|
<!--内容end-->
|
||
|
</block>
|
||
|
|
||
|
<block name="script">
|
||
|
<!-- 时间格式文件 -->
|
||
|
<link rel="stylesheet" type="text/css" href="__CSS__/p_jquery.datetimepicker.css">
|
||
|
<script type="text/javascript" src="__JS__/jquery.datetimepicker.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(document).ready(function() {
|
||
|
var promote_id = $("#promote_id option").length;
|
||
|
if(promote_id == 1) {
|
||
|
$("#promote_id option:last").remove();
|
||
|
$("#promote_id").append("<option value='' selected='true'>暂无推广员</option>");
|
||
|
}
|
||
|
$(".select_gallery").select2();
|
||
|
})
|
||
|
//回车自动提交
|
||
|
$('.rightcontainer-search').find('input').keyup(function(event) {
|
||
|
if(event.keyCode === 13) {
|
||
|
$("#search").click();
|
||
|
}
|
||
|
});
|
||
|
|
||
|
$('#sdate').datetimepicker({
|
||
|
lang: 'ch',
|
||
|
format: 'Y-m-d',
|
||
|
formatDate: 'Y-m-d',
|
||
|
scrollMonth: false,
|
||
|
scrollTime: false,
|
||
|
scrollInput: false,
|
||
|
timepicker: false
|
||
|
});
|
||
|
|
||
|
$('#edate').datetimepicker({
|
||
|
lang: 'ch',
|
||
|
format: 'Y-m-d',
|
||
|
formatDate: 'Y-m-d',
|
||
|
scrollMonth: false,
|
||
|
scrollTime: false,
|
||
|
scrollInput: false,
|
||
|
timepicker: false
|
||
|
});
|
||
|
|
||
|
function check() {
|
||
|
var sdate = $("#sdate").val();
|
||
|
var edate = $("#edate").val();
|
||
|
if(sdate > edate) {
|
||
|
/*layer.msg("开始时间必须小于等于结束时间");
|
||
|
return false;*/
|
||
|
return true;
|
||
|
} else {
|
||
|
return true;
|
||
|
}
|
||
|
};
|
||
|
//搜索功能
|
||
|
$("#search").click(function() {
|
||
|
if(!check()) {
|
||
|
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;
|
||
|
});
|
||
|
|
||
|
//导出数据
|
||
|
$("#exportData").click(function() {
|
||
|
var url = $(this).attr('url');
|
||
|
|
||
|
console.log(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;
|
||
|
});
|
||
|
//退出登录
|
||
|
$('.loginout').click(function() {
|
||
|
$.ajax({
|
||
|
type: "POST",
|
||
|
url: "{:U('Index/logout')}",
|
||
|
success: function(res) {
|
||
|
if(res.status == 3) {
|
||
|
layer.msg('退出成功', {
|
||
|
icon: 1,
|
||
|
});
|
||
|
setTimeout(function() {
|
||
|
window.location.href = "{:U('Index/index')}";
|
||
|
}, 1500);
|
||
|
}
|
||
|
},
|
||
|
error: function() {
|
||
|
alert('退出失败');
|
||
|
}
|
||
|
})
|
||
|
});
|
||
|
</script>
|
||
|
</block>
|