detail.html 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  1. <script src="/assets/libs/clipboard/dist/clipboard.min.js"></script>
  2. <nav class="navbar navbar-default" role="navigation">
  3. <div class="container-fluid">
  4. <div>
  5. <ul class="nav navbar-nav">
  6. <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>
  7. <li {if condition="$type eq 2"}class="active"{/if}><a href="/admin/auth/user/detail/ids/{$id}/type/2?dialog=1">消费记录</a></li>
  8. <li {if condition="$type eq 3"}class="active"{/if}><a href="/admin/auth/user/detail/ids/{$id}/type/3?dialog=1">阅读记录</a></li>
  9. <li {if condition="$type eq 4"}class="active"{/if}><a href="/admin/auth/user/detail/ids/{$id}/type/4?dialog=1">充值记录</a></li>
  10. </ul>
  11. </div>
  12. </div>
  13. </nav>
  14. <div class="panel panel-default" >
  15. <div class="panel-heading">
  16. <h3 class="panel-title">用户信息</h3>
  17. </div>
  18. <div class="panel-body">
  19. <table class="table">
  20. <thead>
  21. <tr>
  22. <th>头像</th>
  23. <th>昵称</th>
  24. <th>ID</th>
  25. <th>是否VIP</th>
  26. <th>VIP结束时间</th>
  27. <th>{$strName}</th>
  28. <th>永久书币</th>
  29. <th>免费书币</th>
  30. <th>过期免费书币</th>
  31. <th>渠道商ID</th>
  32. <th>渠道商账号</th>
  33. <th>渠道商昵称</th>
  34. <th>二维码(点击放大)</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <tr>
  39. <td><img style="width:50px" src="{$row.avatar}" class="img-rounded"></td>
  40. <td>{$row.nickname}</td>
  41. <td>{$row.id}</td>
  42. <td>{if condition="$row.vip_endtime gt time()"}<font color="red">VIP</font>{else /}否{/if}</td>
  43. <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>
  44. <td>{$tj}</td>
  45. <td>{$row.kandian}</td>
  46. <td>{$free_kandian}</td>
  47. <td>{$old_free_kandian}</td>
  48. <td>{$row.admin.id}</td>
  49. <td>{$row.admin.username}</td>
  50. <td>{$row.admin.nickname}</td>
  51. <td>
  52. <a href="{$row.qrcode_image}" target="_blank"><img src="{$row.qrcode_image}" style="max-width: 50px;"></a>
  53. </td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </div>
  58. </div>
  59. <div>
  60. <!--充值记录-->
  61. {if condition="$type eq 1"}
  62. <ul class="nav nav-tabs">
  63. <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>
  64. <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>
  65. <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>
  66. </ul>
  67. {notempty name="list"}
  68. <table class="table table-striped table-bordered">
  69. <thead>
  70. <tr>
  71. <th>商户单号</th>
  72. <th>交易单号</th>
  73. <th>订单类型</th>
  74. <th>总额</th>
  75. <th>订单状态</th>
  76. <th>下单时间</th>
  77. <th>完成时间</th>
  78. </tr>
  79. </thead>
  80. <tbody>
  81. {volist name='list' id='val'}
  82. <tr>
  83. <td>{$val.out_trade_no}</td>
  84. <td style="text-align:center">
  85. {empty name='$val.transaction_id'}
  86. -
  87. {else /}
  88. {$val.transaction_id}
  89. {/empty}
  90. </td>
  91. <td>{if condition="$val.type eq 1"}书币充值{else /}VIP充值{/if}</td>
  92. <td>¥{$val.money}</td>
  93. <td>{if condition="$val.state eq 1"}已支付{else /}待支付{/if}</td>
  94. <td>{$val.createtime}</td>
  95. <td style="text-align:center">
  96. {empty name='$val.finishtime'}
  97. -
  98. {else /}
  99. {$val.finishtime|date="Y-m-d H:i:s",###}
  100. {/empty}
  101. </td>
  102. </tr>
  103. {/volist}
  104. </tbody>
  105. </table>
  106. {else /}
  107. <div style="text-align: center">暂无记录</div>
  108. {/notempty}
  109. {/if}
  110. <!--消费记录-->
  111. {if condition="$type eq 2"}
  112. {notempty name="data"}
  113. <table class="table table-striped table-bordered">
  114. <thead>
  115. <tr>
  116. <th>时间</th>
  117. <th>小说</th>
  118. <th>章节ID</th>
  119. <th>章节</th>
  120. <th>消费书币</th>
  121. </tr>
  122. </thead>
  123. <tbody>
  124. {volist name='data' id='val'}
  125. <tr>
  126. <td>{$val.createtime}</td>
  127. <td>{$val.book_name}</td>
  128. <td>{$val.chapter_id}</td>
  129. <td>{$val.chapter_name}</td>
  130. <td>{$val.kandian}</td>
  131. </tr>
  132. {/volist}
  133. </tbody>
  134. </table>
  135. {else /}
  136. <div style="text-align: center">暂无消费记录</div>
  137. {/notempty}
  138. {/if}
  139. <!--阅读记录-->
  140. {if condition="$type eq 3"}
  141. {notempty name="data"}
  142. <table class="table table-striped table-bordered">
  143. <thead>
  144. <tr>
  145. <th>时间</th>
  146. <th>小说</th>
  147. <th>章节</th>
  148. </tr>
  149. </thead>
  150. <tbody>
  151. {volist name='data' id='val'}
  152. <tr>
  153. <td>{$val.updatetime}</td>
  154. <td>{$val.bookname}</td>
  155. <td>{$val.chapter_name}
  156. <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']}">
  157. <span class="fa fa-copy" aria-hidden="true"></span> 复制链接
  158. </button>
  159. </td>
  160. </tr>
  161. {/volist}
  162. </tbody>
  163. </table>
  164. <script>
  165. var clipboard = new Clipboard('.btn-copy');
  166. clipboard.on('success', function(e) {
  167. e.clearSelection();
  168. Toastr.success('复制成功');
  169. });
  170. clipboard.on('error', function(e) {
  171. e.clearSelection();
  172. Toastr.error("复制失败");
  173. });
  174. </script>
  175. {else /}
  176. <div style="text-align: center">暂无阅读记录</div>
  177. {/notempty}
  178. {/if}
  179. {if condition="$type eq 4"}
  180. {notempty name="data"}
  181. <table class="table table-striped table-bordered">
  182. <thead>
  183. <tr>
  184. <th>充值类型</th>
  185. <th>充值看点数</th>
  186. <th>赠送看点数</th>
  187. <th>赠送看点到期时间</th>
  188. <th>vip天数</th>
  189. <th>充值时间</th>
  190. </tr>
  191. </thead>
  192. <tbody>
  193. {volist name='data' id='val'}
  194. <tr>
  195. <td>{$val.type}</td>
  196. <td>{$val.kandian}</td>
  197. <td>{$val.free_kandian}</td>
  198. <td>{empty name="$val.free_endtime"}无{else /}{$val.free_endtime|date='Y-m-d H:i:s',###}{/empty}</td>
  199. <td>{$val.day}</td>
  200. <td>{$val.createtime}</td>
  201. </tr>
  202. {/volist}
  203. </tbody>
  204. </table>
  205. {else /}
  206. <div style="text-align: center">暂无充值记录</div>
  207. {/notempty}
  208. {/if}
  209. </div>
  210. {$list->render()}