index.html 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. {extend name="../../admin/view/main"}
  2. {block name="button"}
  3. <!--{if auth("add")}-->
  4. <button data-open='{:url("add")}' class='layui-btn layui-btn-sm layui-btn-primary'>添加支付</button>
  5. <!--{/if}-->
  6. <!--{if auth("remove")}-->
  7. <button data-action='{:url("remove")}' data-rule="id#{key}" data-confirm="确定要删除这些支付吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除支付</button>
  8. <!--{/if}-->
  9. {/block}
  10. {block name='content'}
  11. <div class="think-box-shadow">
  12. {include file='shop_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 type="button" data-reload class="layui-btn layui-btn-xs">刷 新</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 data-dbclick>
  35. <td class='list-table-check-td think-checkbox'>
  36. <label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
  37. </td>
  38. <td class='list-table-sort-td'>
  39. <label><input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input"></label>
  40. </td>
  41. <td class="text-left nowrap">{$vo.name|default=''}</td>
  42. <td class="text-left nowrap">{$vo.code|default=''}</td>
  43. <td class="text-left nowrap">{$types[$vo.type]['name']??$vo.type}</td>
  44. <td>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">已激活</span>{/if}</td>
  45. <td class="text-left nowrap">{$vo.create_at|format_datetime}</td>
  46. <td class='text-left nowrap'>
  47. <!--{if auth("edit")}-->
  48. <a data-dbclick class="layui-btn layui-btn-sm" data-open="{:url('edit')}?id={$vo.id}">编 辑</a>
  49. <!--{/if}-->
  50. <!--{if auth("state") and $vo.status eq 1}-->
  51. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#0">禁 用</a>
  52. <!--{elseif auth("state") and $vo.status eq 0}-->
  53. <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#1">激 活</a>
  54. <!--{/if}-->
  55. <!--{if auth("remove")}-->
  56. <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该支付吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
  57. <!--{/if}-->
  58. </td>
  59. </tr>
  60. {/foreach}
  61. </tbody>
  62. </table>
  63. {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
  64. </div>
  65. {/block}