51 lines
2.4 KiB
HTML
Raw Normal View History

2024-09-29 15:43:18 +08:00
{extend name="../../admin/view/main"}
{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='merchant/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='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='list-table-check-td think-checkbox'>
<label><input class="list-check-box" value='{$vo.id}' type='checkbox'></label>
</td>
<td class='text-left nowrap'>
<span class="color-blue"><b>{$vo.name|default=''}</b></span> <span class="color-desc">{$vo.id|default=''}</span> </span>
</td>
<td class='text-left nowrap'><span class="color-red">{$vo.account_surplus|default='0.00'|raw}</span></td>
<td class='text-left nowrap'>成功 <span class="color-blue margin-right-10">{$vo.order_yes|default='0.00'|raw}</span>失败 <span class="color-desc">{$vo.order_no|default='0.00'|raw}</span></td>
<td class='text-left 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-xs" data-title="设置关联" data-open='{:url("relation")}?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}