REAPI/app/channel/view/card_group/chongzhi.html
2024-09-29 15:43:18 +08:00

65 lines
2.4 KiB
HTML

{extend name="../../admin/view/main"}
{block name="button"}
<!--{if auth("out")}-->
<button data-modal='{:url("out")}' data-title="管理" class='layui-btn layui-btn-sm layui-btn-primary'>管理</button>
<!--{/if}-->
{/block}
{block name="content"}
<div class="layui-tab layui-tab-card think-bg-white table-block">
<div class="layui-tab-content think-box-shadow table-block table-block">
{include file='card/chongzhi_search'}
{include file='card/chongzhi_statement'}
<table class="layui-table margin-top-10" lay-skin="line">
{notempty name='list'}
<thead>
<tr>
<th class='text-left nowrap' width="">ID</th>
<th class='text-left nowrap' width="">卡号</th>
<th class='text-left nowrap' width="">面值</th>
<th class='text-left nowrap' width="">使用状态</th>
<th class='text-left nowrap' width="">录入时间</th>
<th></th>
</tr>
</thead>
{/notempty}
<tbody>
{foreach $list as $key=>$vo}
<tr>
<td class='text-left nowrap'>
{$vo.id}
</td>
<td class='text-left nowrap'>
<span class="color-black"><b>{$vo.cnum|default=''}</b></span>
</td>
<td class='text-left nowrap'>
<span class="color-black"><b>{$vo.value|default=''}</b></span>
</td>
<td class='text-left nowrap'>
{if $vo.chongzhi_use == 1}
<span class="color-blue">可用</span>
{else}
<span class="color-green">已使用</span>
{/if}
</td>
<td class='text-left nowrap'>
<span>{$vo.create_at|format_datetime}</span>
</td>
<td class='text-left nowrap'>
<!--{if auth("edit")}-->
<a data-dbclick class="layui-btn layui-btn-xs" data-title="编辑卡密" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
<!--{/if}-->
</td>
</tr>
{/foreach}
</tbody>
</table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
</div>
{/block}