mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
73 lines
3.5 KiB
PHP
73 lines
3.5 KiB
PHP
{extend name="../../admin/view/main"}
|
|
|
|
{block name="button"}
|
|
<!--{if auth("add")}-->
|
|
<button class='layui-btn layui-btn-sm layui-btn-primary' data-open='{:url("add")}'>添加支付</button>
|
|
<!--{/if}-->
|
|
|
|
<!--{if auth("remove")}-->
|
|
<button class='layui-btn layui-btn-sm layui-btn-primary' data-action='{:url("remove")}' data-confirm="确定要删除这些支付吗?" data-rule="id#{key}">删除支付</button>
|
|
<!--{/if}-->
|
|
{/block}
|
|
|
|
{block name='content'}
|
|
<div class="think-box-shadow">
|
|
{include file='base/payment/index_search'}
|
|
<table class="layui-table margin-top-10" lay-skin="line">
|
|
{notempty name='list'}
|
|
<thead>
|
|
<tr>
|
|
<th class='list-table-check-td think-checkbox'>
|
|
<label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
|
|
</th>
|
|
<th class='list-table-sort-td'>
|
|
<button class="layui-btn layui-btn-xs" data-reload type="button">刷 新</button>
|
|
</th>
|
|
<th class="text-left nowrap">支付名称</th>
|
|
<th class="text-left nowrap">支付编号</th>
|
|
<th class="text-left nowrap">支付方式</th>
|
|
<th class="text-left nowrap">使用状态</th>
|
|
<th class="text-left nowrap">创建时间</th>
|
|
<th class="text-left nowrap"></th>
|
|
</tr>
|
|
</thead>
|
|
{/notempty}
|
|
<tbody>
|
|
{foreach $list as $key=>$vo}
|
|
<tr>
|
|
<td class='list-table-check-td think-checkbox'>
|
|
<label><input class="list-check-box" type='checkbox' value='{$vo.id}'></label>
|
|
</td>
|
|
<td class='list-table-sort-td'>
|
|
<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>
|
|
</td>
|
|
<td class="text-left nowrap">
|
|
<div class="headimg headimg-xs headimg-no" data-lazy-src="{$vo.cover}"></div>
|
|
{$vo.name|default=''}
|
|
</td>
|
|
<td class="text-left nowrap">{$vo.code|default=''}</td>
|
|
<td class="text-left nowrap">{$types[$vo.type]['name']??$vo.type}</td>
|
|
<td>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">已激活</span>{/if}</td>
|
|
<td class="text-left nowrap">{$vo.create_at|format_datetime}</td>
|
|
<td class='text-left nowrap'>
|
|
<!--{if auth("edit")}-->
|
|
<a class="layui-btn layui-btn-sm" data-open="{:url('edit')}?id={$vo.id}">编 辑</a>
|
|
<!--{/if}-->
|
|
|
|
<!--{if auth("state") and $vo.status eq 1}-->
|
|
<a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#0">禁 用</a>
|
|
<!--{elseif auth("state") and $vo.status eq 0}-->
|
|
<a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#1">激 活</a>
|
|
<!--{/if}-->
|
|
|
|
<!--{if auth("remove")}-->
|
|
<a class="layui-btn layui-btn-sm layui-btn-danger" data-action="{:url('remove')}" data-confirm="确定要删除该支付吗?" data-value="id#{$vo.id}">删 除</a>
|
|
<!--{/if}-->
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
</div>
|
|
{/block} |