123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214 |
- <script src="/assets/libs/clipboard/dist/clipboard.min.js"></script>
- <nav class="navbar navbar-default" role="navigation">
- <div class="container-fluid">
- <div>
- <ul class="nav navbar-nav">
- <li {if condition="$type eq 1"}class="active"{/if}><a href="/admin/auth/user/detail/ids/{$id}/type/1/pay/0?dialog=1">订单记录</a></li>
- <li {if condition="$type eq 2"}class="active"{/if}><a href="/admin/auth/user/detail/ids/{$id}/type/2?dialog=1">消费记录</a></li>
- <li {if condition="$type eq 3"}class="active"{/if}><a href="/admin/auth/user/detail/ids/{$id}/type/3?dialog=1">阅读记录</a></li>
- <li {if condition="$type eq 4"}class="active"{/if}><a href="/admin/auth/user/detail/ids/{$id}/type/4?dialog=1">充值记录</a></li>
- </ul>
- </div>
- </div>
- </nav>
- <div class="panel panel-default" >
- <div class="panel-heading">
- <h3 class="panel-title">用户信息</h3>
- </div>
- <div class="panel-body">
- <table class="table">
- <thead>
- <tr>
- <th>头像</th>
- <th>昵称</th>
- <th>ID</th>
- <th>是否VIP</th>
- <th>VIP结束时间</th>
- <th>{$strName}</th>
- <th>永久书币</th>
- <th>免费书币</th>
- <th>过期免费书币</th>
- <th>渠道商ID</th>
- <th>渠道商账号</th>
- <th>渠道商昵称</th>
- <th>二维码(点击放大)</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td><img style="width:50px" src="{$row.avatar}" class="img-rounded"></td>
- <td>{$row.nickname}</td>
- <td>{$row.id}</td>
- <td>{if condition="$row.vip_endtime gt time()"}<font color="red">VIP</font>{else /}否{/if}</td>
- <td>{if condition="$row.vip_endtime gt time()"}<font color="red">{$row.vip_endtime|date="Y-m-d H:i:s",###}</font>{else /}-{/if}</td>
- <td>{$tj}</td>
- <td>{$row.kandian}</td>
- <td>{$free_kandian}</td>
- <td>{$old_free_kandian}</td>
- <td>{$row.admin.id}</td>
- <td>{$row.admin.username}</td>
- <td>{$row.admin.nickname}</td>
- <td>
- <a href="{$row.qrcode_image}" target="_blank"><img src="{$row.qrcode_image}" style="max-width: 50px;"></a>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <div>
- <!--充值记录-->
- {if condition="$type eq 1"}
- <ul class="nav nav-tabs">
- <li {if condition="$pay eq 0"} class="active" {/if}><a href="/admin/auth/user/detail/ids/{$id}/type/1/pay/0?dialog=1">全部</a></li>
- <li {if condition="$pay eq 1"} class="active" {/if}><a href="/admin/auth/user/detail/ids/{$id}/type/1/pay/1?dialog=1">待支付</a></li>
- <li {if condition="$pay eq 2"} class="active" {/if}><a href="/admin/auth/user/detail/ids/{$id}/type/1/pay/2?dialog=1">已支付</a></li>
- </ul>
- {notempty name="list"}
- <table class="table table-striped table-bordered">
- <thead>
- <tr>
- <th>商户单号</th>
- <th>交易单号</th>
- <th>订单类型</th>
- <th>总额</th>
- <th>订单状态</th>
- <th>下单时间</th>
- <th>完成时间</th>
- </tr>
- </thead>
- <tbody>
- {volist name='list' id='val'}
- <tr>
- <td>{$val.out_trade_no}</td>
- <td style="text-align:center">
- {empty name='$val.transaction_id'}
- -
- {else /}
- {$val.transaction_id}
- {/empty}
- </td>
- <td>{if condition="$val.type eq 1"}书币充值{else /}VIP充值{/if}</td>
- <td>¥{$val.money}</td>
- <td>{if condition="$val.state eq 1"}已支付{else /}待支付{/if}</td>
- <td>{$val.createtime}</td>
- <td style="text-align:center">
- {empty name='$val.finishtime'}
- -
- {else /}
- {$val.finishtime|date="Y-m-d H:i:s",###}
- {/empty}
- </td>
- </tr>
- {/volist}
- </tbody>
- </table>
- {else /}
- <div style="text-align: center">暂无记录</div>
- {/notempty}
- {/if}
- <!--消费记录-->
- {if condition="$type eq 2"}
- {notempty name="data"}
- <table class="table table-striped table-bordered">
- <thead>
- <tr>
- <th>时间</th>
- <th>小说</th>
- <th>章节ID</th>
- <th>章节</th>
- <th>消费书币</th>
- </tr>
- </thead>
- <tbody>
- {volist name='data' id='val'}
- <tr>
- <td>{$val.createtime}</td>
- <td>{$val.book_name}</td>
- <td>{$val.chapter_id}</td>
- <td>{$val.chapter_name}</td>
- <td>{$val.kandian}</td>
- </tr>
- {/volist}
- </tbody>
- </table>
- {else /}
- <div style="text-align: center">暂无消费记录</div>
- {/notempty}
- {/if}
- <!--阅读记录-->
- {if condition="$type eq 3"}
- {notempty name="data"}
- <table class="table table-striped table-bordered">
- <thead>
- <tr>
- <th>时间</th>
- <th>小说</th>
- <th>章节</th>
- </tr>
- </thead>
- <tbody>
- {volist name='data' id='val'}
- <tr>
- <td>{$val.updatetime}</td>
- <td>{$val.bookname}</td>
- <td>{$val.chapter_name}
- <button class="btn btn-xs btn-copy" type="button" data-clipboard-text="{$site_url}index/book/chapter?book_id={$val['book_id']}&chapter_id={$val['chapter_id']}">
- <span class="fa fa-copy" aria-hidden="true"></span> 复制链接
- </button>
- </td>
- </tr>
- {/volist}
- </tbody>
- </table>
- <script>
- var clipboard = new Clipboard('.btn-copy');
- clipboard.on('success', function(e) {
- e.clearSelection();
- Toastr.success('复制成功');
- });
- clipboard.on('error', function(e) {
- e.clearSelection();
- Toastr.error("复制失败");
- });
- </script>
- {else /}
- <div style="text-align: center">暂无阅读记录</div>
- {/notempty}
- {/if}
- {if condition="$type eq 4"}
- {notempty name="data"}
- <table class="table table-striped table-bordered">
- <thead>
- <tr>
- <th>充值类型</th>
- <th>充值看点数</th>
- <th>赠送看点数</th>
- <th>赠送看点到期时间</th>
- <th>vip天数</th>
- <th>充值时间</th>
- </tr>
- </thead>
- <tbody>
- {volist name='data' id='val'}
- <tr>
- <td>{$val.type}</td>
- <td>{$val.kandian}</td>
- <td>{$val.free_kandian}</td>
- <td>{empty name="$val.free_endtime"}无{else /}{$val.free_endtime|date='Y-m-d H:i:s',###}{/empty}</td>
- <td>{$val.day}</td>
- <td>{$val.createtime}</td>
- </tr>
- {/volist}
- </tbody>
- </table>
- {else /}
- <div style="text-align: center">暂无充值记录</div>
- {/notempty}
- {/if}
- </div>
- {$list->render()}
|