index.html 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. {extend name="../../admin/view/main"}
  2. {block name="content"}
  3. <div class="think-box-shadow table-block">
  4. {include file='user/index_search'}
  5. <table class="layui-table margin-top-10" lay-skin="line">
  6. {notempty name='list'}
  7. <thead>
  8. <tr>
  9. <th class='list-table-check-td think-checkbox'>
  10. <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
  11. </th>
  12. <th class='nowrap'>用户信息</th>
  13. <th class='nowrap'>推荐人信息</th>
  14. <th class='nowrap'>余额信息</th>
  15. <th class='nowrap'>注册时间</th>
  16. <th class='nowrap'></th>
  17. </tr>
  18. </thead>
  19. {/notempty}
  20. <tbody>
  21. {foreach $list as $key=>$vo}
  22. <tr>
  23. <td class='list-table-check-td think-checkbox'>
  24. <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
  25. </td>
  26. <td class="sub-span-blue nowrap">
  27. <div class="headimg" data-tips-image data-lazy-src="{$vo.headimg|default='__ROOT__/static/theme/img/headimg.png'}"></div>
  28. <div class="inline-block">
  29. {notempty name='vo.username'}
  30. <div>姓名:<span>{$vo.username|default='-'}</span></div>
  31. {else}
  32. <div>昵称:<span>{$vo.nickname|default='-'}</span></div>
  33. {/notempty}
  34. <div>手机:<span>{$vo.phone|default='-'}</span></div>
  35. </div>
  36. </td>
  37. <td class="sub-span-blue nowrap">
  38. {notempty name='vo.fromer'}
  39. <div class="headimg" data-tips-image data-lazy-src="{$vo.fromer.headimg|default='__ROOT__/static/theme/img/headimg.png'}"></div>
  40. <div class="inline-block">
  41. {notempty name='vo.fromer.username'}
  42. <div>姓名:<span>{$vo.fromer.username|default='-'}</span></div>
  43. {else}
  44. <div>昵称:<span>{$vo.fromer.nickname|default='-'}</span></div>
  45. {/notempty}
  46. <div>手机:<span>{$vo.fromer.phone|default='-'}</span></div>
  47. </div>
  48. {else}
  49. <div class="color-desc">没有推荐人</div>
  50. {/notempty}
  51. </td>
  52. <td class="nowrap sub-span-blue">
  53. <div>余额统计:累计充值 <span>{$vo.balance_total+0}</span> 元,已使用 <span>{$vo.balance_used+0}</span> 元</div>
  54. <div>奖励统计:共奖励金额 <span>{$vo.amount_total+0}</span> 元,已提现 <span>{$vo.amount_used+0}</span> 元</div>
  55. </td>
  56. <td class="nowrap">
  57. 使用状态:{if $vo.status eq 0}<b class="color-red margin-right-5">已冻结</b>{elseif $vo.status eq 1}<b class="color-green margin-right-5">已激活</b>{/if}<br>
  58. 注册时间:{$vo.create_at|format_datetime}
  59. </td>
  60. <td class="nowrap">
  61. <!--{if auth("user_balance/add")}-->
  62. <a class="layui-btn layui-btn-sm layui-btn-primary" data-modal="{:url('user_balance/add')}?uid={$vo.id}">余额充值</a>
  63. <!--{/if}-->
  64. <!--{if auth("state") and $vo.status eq 1}-->
  65. <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="{:url('state')}" data-value="id#{$vo.id};status#0">冻结账号</a>
  66. <!--{/if}-->
  67. <!--{if auth("state") and $vo.status eq 0}-->
  68. <a class="layui-btn layui-btn-sm layui-btn-normal" data-action="{:url('state')}" data-value="id#{$vo.id};status#1">解冻账号</a>
  69. <!--{/if}-->
  70. </td>
  71. </tr>
  72. {/foreach}
  73. </tbody>
  74. </table>
  75. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  76. </div>
  77. {/block}