parent.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. {extend name="../../admin/view/full"}
  2. {block name="content"}
  3. <div class="iframe-pagination">
  4. {include file='user/admin/parent_search'}
  5. <table class="layui-table margin-top-10" lay-skin="line">
  6. {notempty name='list'}
  7. <thead>
  8. <tr>
  9. <th class='nowrap'>用户信息</th>
  10. <th class='nowrap'>注册时间</th>
  11. <th class='nowrap'></th>
  12. <th></th>
  13. </tr>
  14. </thead>
  15. {/notempty}
  16. <tbody>
  17. {foreach $list as $key=>$vo}
  18. <tr>
  19. <td class="nowrap">
  20. <div class="headimg" data-lazy-src="{$vo.headimg|default='__ROOT__/static/theme/img/headimg.png'}" data-tips-image></div>
  21. <div class="inline-block">
  22. <div>
  23. {notempty name='vo.username'}
  24. 姓名:<span class="color-blue">{$vo.username|default='-'}</span>
  25. {else}
  26. 昵称:<span class="color-blue">{$vo.nickname|default='-'}</span>
  27. {/notempty}
  28. <span class="margin-left-5">[ <b class="color-red">VIP{$vo.vip_code}</b> ] <b class="color-red">{$vo.vip_name}</b></span>
  29. </div>
  30. <div>手机:<span class="color-blue">{$vo.phone|default='-'}</span></div>
  31. </div>
  32. </td>
  33. <td class="nowrap">
  34. {notempty name='vo.from'}
  35. <div class="headimg" data-lazy-src="{$vo.from.headimg|default='__ROOT__/static/theme/img/headimg.png'}" data-tips-image></div>
  36. <div class="inline-block text-middle">
  37. <!--{notempty name='vo.pids'}-->
  38. <span class="layui-badge layui-badge-middle layui-bg-green">永久</span>
  39. <!--{else}-->
  40. <span class="layui-badge layui-badge-middle layui-bg-red">临时</span>
  41. <!--{/notempty}-->
  42. </div>
  43. <div class="inline-block text-middle">
  44. <div>
  45. {notempty name='vo.from.username'}
  46. 姓名:<span class="color-blue">{$vo.from.username|default='-'}</span>
  47. {else}
  48. 昵称:<span class="color-blue">{$vo.from.nickname|default='-'}</span>
  49. {/notempty}
  50. <span class="margin-left-5">[ <b class="color-red">VIP{$vo.from.vip_code}</b> ] <b class="color-red">{$vo.from.vip_name}</b></span>
  51. </div>
  52. <div>手机:<span>{$vo.from.phone|default='-'}</span></div>
  53. </div>
  54. {else}
  55. <div class="color-desc">没有代理</div>
  56. {/notempty}
  57. </td>
  58. <td class="nowrap">
  59. 使用状态:{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>
  60. 注册时间:{$vo.create_at|format_datetime}
  61. </td>
  62. <td class="nowrap text-right">
  63. <!--{if auth("parent")}-->
  64. <a class="layui-btn layui-btn-sm layui-btn-primary" data-parent-uuid="{$get.uuid|default=''}" data-parent-pid="{$vo.id}">选择绑定</a>
  65. <!--{/if}-->
  66. </td>
  67. </tr>
  68. {/foreach}
  69. </tbody>
  70. </table>
  71. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  72. </div>
  73. {/block}
  74. {block name='script'}
  75. <script>
  76. $('body').off('click', '[data-parent-uuid]').on('click', '[data-parent-uuid]', function () {
  77. $.form.load('{:sysuri()}', {uuid: this.dataset.parentUuid, pid: this.dataset.parentPid}, 'post', function (ret) {
  78. if (ret.code > 0) return $.msg.success(ret.info, 3, function () {
  79. top.layer.close(top.layer.getFrameIndex(window.name));
  80. top.$.form.reload();
  81. }), false;
  82. });
  83. });
  84. </script>
  85. {/block}