<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<title>{echo admin_title()}</title>
<!--header-->
{template _:header}
</head>
<body>
<div class="layui-layout layui-layout-admin">
<!--top-->
{template _main_top}
<!--nav-->
{template _main_nav}
	<div class="position">
		<h1>会员充值记录</h1>
	</div>
	<div class="layui-body admin-body">
		<div class="admin-content">
			<div class="searcher">
				<form name="sch_form" id="sch_form" method="get" action="{echo \befen\get_url()}">
					<div class="layui-input-inline"><input type="text" name="wd" id="wd" class="layui-input" value="{echo input('param.wd')}" placeholder="姓名/昵称/电话"></div>
					<div class="layui-input-inline layui-left-margin"><button type="submit" id="search" class="layui-btn">查询</button></div>
				</form>
				<div class="clear"></div>
			</div>
			<form name="theform" id="theform" method="post" action="{echo \befen\get_url()}">
			<table class="layui-table">
				<thead>
					<tr>
						<th>会员ID</th>
						<th>卡号</th>
						<th>充值金额</th>
						<th>支付金额</th>
						<th>姓名</th>
						<th>时间</th>
						<th>商户交易号</th>
						<th>管理操作</th>
					</tr>
				</thead>
				<tbody>
					<!--{loop $list $key $val}-->
					<tr id="">
						<td>{$val[uid]}</td>
						<td>{$val[card_no]}</td>
						<td>{$val[balance_amount]}</td>
						<td>{$val[total_amount]}</td>
						<td>{$val[username]}</td>
						<td>{echo gsdate('Y-m-d H:i:s', $val['time_create'])}</td>
						<td>{echo $val['out_trade_no'] ? $val['out_trade_no'] : $val['description']}</td>
						<td class="op">
							<a op="detail" lay-url="{echo url('bill/view_charge', ['id' => $val['id']])}" class="layui-btn layui-btn-xs layui-btn-normal">查看详情</a>
						</td>
					</tr>
					<!--{/loop}-->
				</tbody>
			</table>
			</form>
			<div class="listpages">{$pagenav}</div>
		</div>
	</div>
</div>
<!--footer-->
{template _:footer}
<script type="text/javascript">
$("a[op=detail]").click(function(){
	showWindow('', $(this).attr('lay-url'), '600px');
});
</script>
</body>
</html>