54 lines
2.5 KiB
HTML
54 lines
2.5 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'>添加店铺</button>
|
|
<!--{/if}-->
|
|
{/block}
|
|
|
|
{block name='content'}
|
|
<div class="think-box-shadow table-block">
|
|
|
|
{include file='channel_shop/index_search'}
|
|
<table class="layui-table margin-top-10" lay-skin="line">
|
|
{notempty name='list'}
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left nowrap">店铺ID</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 data-dbclick>
|
|
<td class="text-left nowrap">{$vo.shop_id|default=''}</td>
|
|
<td class="text-left nowrap"><span class="color-blue">{$vo.name|default=''}</span></td>
|
|
<td class="text-left nowrap">{$vo.channel_name}</td>
|
|
<td>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">使用中</span>{/if}</td>
|
|
<td class="text-left nowrap">{$vo.create_at|format_datetime}</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}
|
|
{if auth("state") and $vo.status eq 1}
|
|
<a class="layui-btn layui-btn-xs layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#0">禁 用</a>
|
|
{/if}
|
|
{if auth("state") and $vo.status eq 0}
|
|
<a class="layui-btn layui-btn-xs layui-btn-warm" data-action="{:url('state')}" data-value="id#{$vo.id};status#1">启 用</a>
|
|
{/if}
|
|
{if auth("remove")}
|
|
<a class="layui-btn layui-btn-xs layui-btn-danger" data-confirm="确定要删除该店铺吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}">删 除</a>
|
|
{/if}
|
|
</td>
|
|
</tr>
|
|
{/foreach}
|
|
</tbody>
|
|
</table>
|
|
{empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
</div>
|
|
{/block} |