index.html 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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' >成长值</th>
  14. <th class='text-left nowrap' style="width: 15%">手机号</th>
  15. <th class='text-left nowrap' style="width: 20%">注册时间</th>
  16. <th class="text-center" style="width: 20%">操作</th>
  17. </tr>
  18. </thead>
  19. {/notempty}
  20. <tbody>
  21. {foreach $list as $key=>$vo}
  22. <tr>
  23. <td class='text-left nowrap'>
  24. {notempty name='vo.headimg'}
  25. <img data-tips-image style="width:20px;height:20px;vertical-align:top" src="{$vo.headimg|default=''}" class="margin-right-5">
  26. {/notempty}
  27. </td>
  28. <td class='text-left nowrap'>
  29. <div class="inline-block">{$vo.name|default='--'}</div>
  30. </td>
  31. <td class='text-left'>{$lev_set[$vo.level_id]|default='--'}</td>
  32. <td class='text-left'>{$vo.integral|default='0'}</td>
  33. <td class='text-left'>{$vo.growth|default='0'}</td>
  34. <td class='text-left'>{$vo.phone|default='--'}</td>
  35. <td class='text-left'>{$vo.create_at|format_datetime}</td>
  36. <td class='text-center nowrap'>
  37. <a class="layui-btn layui-btn-sm" data-modal="{:url('integral')}?id={$vo.id}" >积分变更</a>
  38. {if $vo.status eq 1 and auth("forbid")}
  39. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0">禁 用</a>
  40. {elseif auth("resume")}
  41. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1">启 用</a>
  42. {/if}
  43. {if auth("store/member/remove")}
  44. <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该用户吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
  45. {/if}
  46. </td>
  47. </tr>
  48. {/foreach}
  49. </tbody>
  50. </table>
  51. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  52. </div>
  53. {/block}