index.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {extend name='admin@main'}
  2. {block name="button"}
  3. <span class='layui-btn layui-btn-sm layui-btn-primary' onclick="power_btn();">权限设置</span>
  4. <button style="display: none" data-modal='{:url("power")}' data-csrf="{:systoken('power')}" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>权限设置</button>
  5. {/block}
  6. {block name="content"}
  7. <div class="think-box-shadow">
  8. {include file='invite/index_search'}
  9. <table class="layui-table margin-top-10" lay-skin="line">
  10. {notempty name='list'}
  11. <thead>
  12. <tr>
  13. <th class='list-table-check-td think-checkbox'>
  14. <input data-auto-none data-check-target='.list-check-box' type='checkbox'>
  15. </th>
  16. <th class='text-left nowrap'>排名</th>
  17. <th class='text-left nowrap'>会员头像</th>
  18. <th class='text-left nowrap'>会员昵称</th>
  19. <th class='text-left nowrap'>手机号</th>
  20. <th class='text-left nowrap'>邀请人数</th>
  21. </thead>
  22. {/notempty}
  23. <tbody>
  24. {foreach $list as $key=>$vo}
  25. <tr>
  26. <td class='list-table-check-td think-checkbox'>
  27. <input class="list-check-box" value='{$vo.id}' type='checkbox'>
  28. </td>
  29. <td class='text-left nowrap'>{$key+1+$off_set}</td>
  30. <td class='text-left nowrap'>
  31. {notempty name='vo.headimg'}
  32. <img data-tips-image style="width:20px;height:20px;vertical-align:top" src="{$vo.headimg|default=''}" class="margin-right-5">
  33. {/notempty}
  34. </td>
  35. <td class='text-left nowrap'>{$vo.name|default='--'}</td>
  36. <td class='text-left'>{$vo.phone|default='--'}</td>
  37. <td class='text-left'>{$vo.count|default='0'}</td>
  38. </tr>
  39. {/foreach}
  40. </tbody>
  41. </table>
  42. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  43. </div>
  44. <script>
  45. function power_btn()
  46. {
  47. console.log()
  48. }
  49. </script>
  50. {/block}