57 lines
2.6 KiB
HTML
57 lines
2.6 KiB
HTML
{extend name="../../admin/view/main"}
|
|
|
|
{block name="button"}
|
|
<!--{if auth("add")}-->
|
|
<button data-modal='{:url("add")}' data-title="添加商品" class='layui-btn layui-btn-sm layui-btn-primary' style="display: none;">添加商品</button>
|
|
<!--{/if}-->
|
|
<!--{if auth("remove")}-->
|
|
<button data-action='{:url("remove")}' data-rule="id#{key}" data-confirm="确定要删除这些商品吗?" class='layui-btn layui-btn-sm layui-btn-primary' style="display: none;">删除商品</button>
|
|
<!--{/if}-->
|
|
|
|
<button data-open='{:url("/channel/channel/index")}' data-title="返回渠道列表" class='layui-btn layui-btn-sm layui-btn-primary'>返回渠道列表</button>
|
|
|
|
<button data-open='{:url("/channel/channel/setting")}?cid={$cid}' data-title="产品设置" class='layui-btn layui-btn-sm layui-btn-primary'>产品设置</button>
|
|
{/block}
|
|
|
|
{block name='content'}
|
|
<div class="think-box-shadow table-block">
|
|
|
|
<!--{include file='channel_product/index_search'}-->
|
|
<table class="layui-table margin-top-10" lay-skin="line">
|
|
{notempty name='list'}
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left nowrap" style="display: none;">渠道名称</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">默认产品ID</th>
|
|
<th class="text-left nowrap">分面值产品</th>
|
|
<th class="text-left nowrap"></th>
|
|
</tr>
|
|
</thead>
|
|
{/notempty}
|
|
<tbody>
|
|
{foreach $list as $key=>$vo}
|
|
<tr data-dbclick>
|
|
<td class="text-left nowrap" style="display: none;"><span class="color-blue">{$vo.channel_name}</span></td>
|
|
<td class="text-left nowrap">{$vo.name|default=''}</td>
|
|
<td class="text-left nowrap">{$vo.percent_type_name}</td>
|
|
<td class="text-left nowrap">{$vo.percent|default='<i class="color-red">0.0</i>'|raw}</td>
|
|
<td class="text-left nowrap">{$vo.rule|raw}</td>
|
|
<td class="text-left nowrap">{$vo.gid|default='无'|raw}</td>
|
|
<td class="text-left nowrap">{$vo.gid_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('percent')}?id={$vo.id}">编 辑</a>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
</div>
|
|
{/block} |