index.html 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {extend name='admin@main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. {include file='member/index_search'}
  5. <table class="layui-table margin-top-10" lay-skin="line">
  6. {notempty name='list'}
  7. <thead>
  8. <tr>
  9. <th class='text-left nowrap' style="width: 10%">头像</th>
  10. <th class='text-left nowrap' style="width: 15%">姓名</th>
  11. <th class='text-left nowrap' style="width: 15%">积分</th>
  12. <th class='text-left nowrap' style="width: 15%">手机号</th>
  13. <th class='text-left nowrap' style="width: 20%">个人简介</th>
  14. <th class='text-left nowrap' style="width: 20%">注册时间</th>
  15. <th class="text-center" style="width: 20%">操作</th>
  16. </tr>
  17. </thead>
  18. {/notempty}
  19. <tbody>
  20. {foreach $list as $key=>$vo}
  21. <tr>
  22. <td class='text-left nowrap'>
  23. {notempty name='vo.headimg'}
  24. <img data-tips-image style="width:20px;height:20px;vertical-align:top" src="{$vo.headimg|default=''}" class="margin-right-5">
  25. {/notempty}
  26. </td>
  27. <td class='text-left nowrap'>
  28. <div class="inline-block">{$vo.name|default='--'}</div>
  29. </td>
  30. <td class='text-left'>{$vo.integral|default='0'}</td>
  31. <td class='text-left'>{$vo.phone|default='--'}</td>
  32. <td class='text-left'>{$vo.synopsis|default='--'}</td>
  33. <td class='text-left'>{$vo.create_at|format_datetime}</td>
  34. <td class='text-center nowrap'>
  35. {if $vo.status eq 1 and auth("forbid")}
  36. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0">禁 用</a>
  37. {elseif auth("resume")}
  38. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1">启 用</a>
  39. {/if}
  40. {if auth("store/member/remove")}
  41. <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该用户吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
  42. {/if}
  43. </td>
  44. </tr>
  45. {/foreach}
  46. </tbody>
  47. </table>
  48. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  49. </div>
  50. {/block}