1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- {extend name='main'}
- {block name="content"}
- <div class="think-box-shadow">
- <table class="layui-table margin-top-10" lay-skin="line">
- {notempty name='list'}
- <thead>
- <tr>
- <th class='text-left nowrap'>logo</th>
- <th class='text-left nowrap'>支付方式</th>
- <th class='text-left nowrap'>code</th>
- <th class='text-center nowrap'>使用状态</th>
- <th class='text-left nowrap'></th>
- </tr>
- </thead>
- {/notempty}
- <tbody>
- {foreach $list as $key=>$vo}
- <tr data-dbclick>
- <td class='text-left nowrap'>
- {notempty name='vo.img'}
- <img data-tips-image style="width:40px;height:40px;vertical-align:top" src="{$vo.img|default=''}" class="margin-right-5">
- {/notempty}
- </td>
- <td class='text-left nowrap'>{$vo.name|default=''}</td>
- <td class='text-left nowrap'>{$vo.code|default='-'}</td>
- <td class='text-center nowrap'>
- {eq name='vo.status' value='0'}
- <span class="color-red">已禁用</span>
- {else}
- <span class="color-green">使用中</span>
- {/eq}
- </td>
- <td class='text-left nowrap'>
- {if auth("edit")}
- <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑用户" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
- {/if}
- {if $vo.status eq 1 and auth("forbid")}
- <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>
- {elseif $vo.status eq 0 and auth("resume")}
- <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>
- {/if}
- </td>
- </tr>
- {/foreach}
- </tbody>
- </table>
- {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
- </div>
- {/block}
|