index.html 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. {extend name="../../admin/view/main"}
  2. {block name="button"}
  3. <!--{if auth("add")}-->
  4. <button class='layui-btn layui-btn-sm layui-btn-primary' data-open='{:url("add")}'>添加支付</button>
  5. <!--{/if}-->
  6. <!--{if auth("remove")}-->
  7. <button class='layui-btn layui-btn-sm layui-btn-primary' data-action='{:url("remove")}' data-confirm="确定要删除这些支付吗?" data-rule="id#{key}">删除支付</button>
  8. <!--{/if}-->
  9. {/block}
  10. {block name='content'}
  11. <div class="think-box-shadow">
  12. {include file='base/payment/index_search'}
  13. <table class="layui-table margin-top-10" lay-skin="line">
  14. {notempty name='list'}
  15. <thead>
  16. <tr>
  17. <th class='list-table-check-td think-checkbox'>
  18. <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
  19. </th>
  20. <th class='list-table-sort-td'>
  21. <button class="layui-btn layui-btn-xs" data-reload type="button">刷 新</button>
  22. </th>
  23. <th class="text-left nowrap">支付名称</th>
  24. <th class="text-left nowrap">支付编号</th>
  25. <th class="text-left nowrap">支付方式</th>
  26. <th class="text-left nowrap">使用状态</th>
  27. <th class="text-left nowrap">创建时间</th>
  28. <th class="text-left nowrap"></th>
  29. </tr>
  30. </thead>
  31. {/notempty}
  32. <tbody>
  33. {foreach $list as $key=>$vo}
  34. <tr>
  35. <td class='list-table-check-td think-checkbox'>
  36. <label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
  37. </td>
  38. <td class='list-table-sort-td'>
  39. <label><input class="list-sort-input" data-action-blur="{:request()->url()}" data-loading="false" data-value="id#{$vo.id};action#sort;sort#{value}" value="{$vo.sort}"></label>
  40. </td>
  41. <td class="text-left nowrap">
  42. <div class="headimg headimg-xs headimg-no" data-lazy-src="{$vo.cover}"></div>
  43. {$vo.name|default=''}
  44. </td>
  45. <td class="text-left nowrap">{$vo.code|default=''}</td>
  46. <td class="text-left nowrap">{$types[$vo.type]['name']??$vo.type}</td>
  47. <td>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">已激活</span>{/if}</td>
  48. <td class="text-left nowrap">{$vo.create_at|format_datetime}</td>
  49. <td class='text-left nowrap'>
  50. <!--{if auth("edit")}-->
  51. <a class="layui-btn layui-btn-sm" data-open="{:url('edit')}?id={$vo.id}">编 辑</a>
  52. <!--{/if}-->
  53. <!--{if auth("state") and $vo.status eq 1}-->
  54. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#0">禁 用</a>
  55. <!--{elseif auth("state") and $vo.status eq 0}-->
  56. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#1">激 活</a>
  57. <!--{/if}-->
  58. <!--{if auth("remove")}-->
  59. <a class="layui-btn layui-btn-sm layui-btn-danger" data-action="{:url('remove')}" data-confirm="确定要删除该支付吗?" data-value="id#{$vo.id}">删 除</a>
  60. <!--{/if}-->
  61. </td>
  62. </tr>
  63. {/foreach}
  64. </tbody>
  65. </table>
  66. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  67. </div>
  68. {/block}