2024-09-29 15:43:18 +08:00

43 lines
1.9 KiB
HTML

{extend name="../../admin/view/main"}
{block name="button"}
<button data-modal='{:url("add")}?mid={$mid}' data-title="添加返点" class='layui-btn layui-btn-sm layui-btn-primary'>添加返点</button>
{/block}
{block name='content'}
<div class="think-box-shadow table-block">
<table class="layui-table margin-top-10" lay-skin="line">
{notempty name='list'}
<thead>
<tr>
<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>
<th class="text-left nowrap"></th>
</tr>
</thead>
{/notempty}
<tbody>
{foreach $list as $key=>$vo}
<tr>
<td class="text-left nowrap"><span class="color-blue">{$vo.mname}</span></td>
<td class="text-left nowrap">{$vo.product_name}</td>
<td class="text-left nowrap">{$vo.num}</td>
<td class="text-left nowrap">{$vo.percent}</td>
<td class="text-left nowrap">{if $vo.is_yue == 1}计入{else}不计入{/if}</td>
<td class="text-left nowrap">{$vo.create_at}</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}&mid={$mid}">编 辑</a>
{/if}
<a class="layui-btn layui-btn-xs layui-btn-danger" data-confirm="确认要删除该返利吗" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
</td>
</tr>
{/foreach}
</tbody>
</table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}