| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164 |
- <include file="public@header"/>
- <style>
- .box {
- padding: .5rem;
- }
- .header {
- /*text-align: center;*/
- height: 48px;
- line-height: 48px;
- }
- .header .name {
- font-weight: bold;
- font-size: 20px;
- margin-left: 44%;
- }
- .header .date {
- float: right;
- margin-right: 15px;
- }
- .box .money {
- text-align: center;
- }
- </style>
- </head>
- <body>
- <div class="wrap js-check-wrap">
- <ul class="nav nav-tabs">
- <li class="active"><a>提现记录列表</a></li>
- </ul>
- <form class="well form-inline margin-top-20" method="post" action="{:url('admin/account/index')}">
- 状态
- <select name="status" id="status">
- <option value="0">全部</option>
- <option value="1" <if condition="$status == 1">selected</if>>待审核</option>
- <option value="2" <if condition="$status == 2">selected</if>>已通过</option>
- <option value="3" <if condition="$status == 3">selected</if>>已驳回</option>
- </select>
- 关键字:
- <input class="form-control" type="text" id="keyword" name="keyword" style="width: 200px;" value="{:input('request.keyword')}"
- placeholder="提现人姓名">
- <input type="submit" class="btn btn-primary" value="搜索"/>
- <a class="btn btn-default" href="{:url('admin/account/index')}">清空</a>
- <a class="btn btn-warning" href="{:url('admin/account/export')}">导出</a>
- <a class="btn btn-danger" onclick="doDelete()">批量删除</a>
- </form>
- <form method="post" class="js-ajax-form">
- <table class="table table-hover table-bordered">
- <thead>
- <tr>
- <th width="60"><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">全选</th>
- <th>名称</th>
- <th>账号</th>
- <th>提现金额</th>
- <th>实付金额</th>
- <th>提现前余额</th>
- <th>提现时间</th>
- <th>状态</th>
- <th>{:lang('ACTIONS')}</th>
- </tr>
- </thead>
- <tbody>
- <php>
- $user_statuses=array("0"=>lang('USER_STATUS_BLOCKED'),"1"=>lang('USER_STATUS_ACTIVATED'),"2"=>lang('USER_STATUS_UNVERIFIED'));
- </php>
- <foreach name="list" item="vo">
- <tr>
- <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}">{$vo.id}</td>
- <td>{$vo.real_name}[{$vo.name|default='会员'}]</td>
- <td>{$vo['description']?$vo['description']:lang('NOT_FILLED')}</td>
- <td>{$vo['change']?$vo['change']:lang('NOT_FILLED')}</td>
- <td>{$vo.pay_money}</td>
- <td>{$vo.balance}</td>
- <td>
- {:date('Y-m-d H:i:s',$vo['create_time'])}
- </td>
- <td>
- <switch name="vo.status">
- <case value="1">
- <span class="text-primary">待审核</span>
- </case>
- <case value="2">
- <span class="text-success">已通过</span>
- </case>
- <case value="3">
- <span class="text-danger">已驳回</span>
- </case>
- </switch>
- </td>
- <td>
- <if condition="$vo.status eq 1">
- <a class="btn btn-xs btn-success" onclick="doConfirm('{$vo.id}',2)">通过</a>
- <a class="btn btn-xs btn-warning" onclick="doConfirm('{$vo.id}',3)">驳回</a>
- </if>
- <a class="btn btn-xs btn-danger js-ajax-dialog-btn" href="{:url('account/del',array('id'=>$vo['id']))}" data-msg="确认删除?">删除</a>
- </td>
- </tr>
- </foreach>
- </tbody>
- </table>
- <div class="pagination">{$page}</div>
- </form>
- </div>
- <script src="__STATIC__/js/admin.js"></script>
- <script>
- function doDelete() {
- var ids = [];
- $(".js-check:checked").each(function () {
- var id = $(this).val();
- if (id > 0) {
- ids.push(id);
- }
- });
- if (ids.length <= 0) {
- showMsg('请先选择操作项');
- return false;
- }
- if(confirm('确定批量删除选择项?不可恢复')){
- $.post('/admin/account/del',{id:ids},function(res){
- if(res.code == 1){
- showMsg(res.msg);
- setTimeout(function () {
- location.reload();
- }, 800)
- }else{
- showMsg(res.msg);
- }
- },"json")
- }
- }
- /**
- * 审核驳回
- * @param id
- * @param status
- */
- function doConfirm(id, status){
- var checked = false;
- var msg = status==1? '确定通过?请填写备注' : '确定驳回?请填写原因';
- if(status!=1){
- checked = true;
- var remark = prompt(msg)
- }else{
- checked = confirm('确认审核通过?')
- }
- if (id>0 && remark && checked) {
- $.post('/admin/account/confirm', {id: id, status: status,remark:remark}, function (res) {
- if (res.code == 1) {
- showMsg(res.msg);
- setTimeout(function () {
- location.reload();
- }, 800)
- } else {
- showMsg(res.msg);
- }
- }, "json")
- }
- }
- </script>
- </body>
- </html>
|