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

44 lines
1.8 KiB
HTML

{extend name="../../admin/view/main"}
{block name="button"}
<button data-open='{:url("/merchant/merchant/index/")}' data-title="返回商户列表" class='layui-btn layui-btn-sm layui-btn-primary'>返回商户列表</button>
<button data-open='{:url("/merchant/product/setting")}?id={$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>
</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.percent_type_name}</td>
<td class="text-left nowrap">{$vo.percent}</td>
<td class="text-left nowrap">{$vo.rule|raw}</td>
<td class='text-left nowrap'>
{if auth("edit")}
<a data-dbclick class="layui-btn layui-btn-xs" data-title="编辑折扣" data-modal="{:url('edit')}?pid={$vo.pid}&product_key={$vo.product_key}&mid={$vo.mid}">编 辑</a>
{/if}
</td>
</tr>
{/foreach}
</tbody>
</table>
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
</div>
{/block}