index.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {extend name='main'}
  2. {block name="content"}
  3. <div class="think-box-shadow">
  4. <table class="layui-table margin-top-10" lay-skin="line">
  5. {notempty name='list'}
  6. <thead>
  7. <tr>
  8. <th class='text-left nowrap'>logo</th>
  9. <th class='text-left nowrap'>支付方式</th>
  10. <th class='text-left nowrap'>code</th>
  11. <th class='text-center nowrap'>使用状态</th>
  12. <th class='text-left nowrap'></th>
  13. </tr>
  14. </thead>
  15. {/notempty}
  16. <tbody>
  17. {foreach $list as $key=>$vo}
  18. <tr data-dbclick>
  19. <td class='text-left nowrap'>
  20. {notempty name='vo.img'}
  21. <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$vo.img|default=''}" class="margin-right-5">
  22. {/notempty}
  23. </td>
  24. <td class='text-left nowrap'>{$vo.name|default=''}</td>
  25. <td class='text-left nowrap'>{$vo.code|default='-'}</td>
  26. <td class='text-center nowrap'>
  27. {eq name='vo.status' value='0'}
  28. <span class="color-red">已禁用</span>
  29. {else}
  30. <span class="color-green">使用中</span>
  31. {/eq}
  32. </td>
  33. <td class='text-left nowrap'>
  34. {if auth("edit")}
  35. <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑用户" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
  36. {/if}
  37. {if $vo.status eq 1 and auth("forbid")}
  38. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('forbid')}">禁 用</a>
  39. {elseif $vo.status eq 0 and auth("resume")}
  40. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('resume')}">启 用</a>
  41. {/if}
  42. </td>
  43. </tr>
  44. {/foreach}
  45. </tbody>
  46. </table>
  47. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  48. </div>
  49. {/block}