2022-10-14 06:00:42 +00:00
|
|
|
{layout name="manager/layout" /}
|
|
|
|
|
|
|
|
{php}
|
|
|
|
use app\service\Image as CImage;
|
|
|
|
use app\model\Category as VCategory;
|
|
|
|
{/php}
|
|
|
|
|
|
|
|
<div class="layui-card layui-col-md12">
|
|
|
|
<div class="layui-card-body">
|
|
|
|
<div class="layui-col-xs12 between-center">
|
|
|
|
<div class="layui-inline">
|
|
|
|
<a id="add-article" class="layui-btn layui-btn-normal" data-href="{:url('manager.cases/add',['category_id'=>$category['id']])}" title="添加案例" data-width="1000"><i class="layui-icon layui-icon-add-1"></i>添加案例</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="layui-clear"></div>
|
|
|
|
<hr style="margin: 20px 0;">
|
|
|
|
|
|
|
|
{empty name="items"}
|
|
|
|
无记录
|
|
|
|
{else /}
|
|
|
|
<table class="layui-table">
|
|
|
|
<colgroup>
|
|
|
|
<col >
|
|
|
|
<col width="75px">
|
|
|
|
<col width="75px">
|
|
|
|
<col width="75px">
|
|
|
|
<col width="75px">
|
2022-10-14 08:14:35 +00:00
|
|
|
<col width="75px">
|
2022-10-14 06:00:42 +00:00
|
|
|
<col width="410px">
|
|
|
|
</colgroup>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<td>标题</td>
|
|
|
|
<td>封面</td>
|
|
|
|
<td>封面图-手机</td>
|
|
|
|
<td>状态</td>
|
|
|
|
<td>推荐</td>
|
2022-10-14 08:14:35 +00:00
|
|
|
<td>首页展示</td>
|
2022-10-14 06:00:42 +00:00
|
|
|
<td>操作</td>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
{foreach $items as $item}
|
|
|
|
<tbody class="table-lv1" data-id="{$item.id}" data-url="{:url('manager.cases/sort')}">
|
|
|
|
<tr>
|
|
|
|
<td>{$item.title}</td>
|
|
|
|
<td class="layer-photos">
|
|
|
|
{if !empty($item['image']) && file_exists('.' . $item['image'])}
|
|
|
|
<img src="{:CImage::getThumb($item.image, 50, 50)}" layer-src="{$item.image}" width="50" />
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
<td class="layer-photos">
|
|
|
|
{if !empty($item['image_mobile']) && file_exists('.' . $item['image_mobile'])}
|
|
|
|
<img src="{:CImage::getThumb($item.image_mobile, 50, 50)}" layer-src="{$item.image_mobile}" width="50" />
|
|
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
<td>{:$item.visible == 0 ? '<span class="text-warning">隐藏</span>' : '<span class="text-green">正常</span>'}</td>
|
|
|
|
<td>{$item.recommend == 0 ? '否' : '是'}</td>
|
2022-10-14 08:14:35 +00:00
|
|
|
<td>{$item.home == 0 ? '否' : '是'}</td>
|
2022-10-14 06:00:42 +00:00
|
|
|
<td >
|
|
|
|
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item.id}" data-sort="up" data-url="{:url('manager.cases/sort')}" href="javascript:void(0);">
|
|
|
|
<i class=""></i>向上
|
|
|
|
</a>
|
|
|
|
<a class="sort layui-btn layui-btn-primary layui-btn-xs" data-id="{$item.id}" data-sort="down" data-url="{:url('manager.cases/sort')}" href="javascript:void(0);">
|
|
|
|
<i class=""></i>向下
|
|
|
|
</a>
|
|
|
|
<a data-href="{:url('manager.cases/edit',['id' => $item['id']])}" class="layui-btn layui-btn-warm layui-btn-xs" title="编辑">
|
|
|
|
<i class=""></i>编辑
|
|
|
|
</a>
|
|
|
|
<a class="del layui-btn layui-btn-danger layui-btn-xs" data-id="{$item.id}" data-url="{:url('manager.cases/del')}" href="javascript:void(0);" >
|
|
|
|
<i class=""></i>删除
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
{/foreach}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
<div class="page top30">{$items->render()|raw}</div>
|
|
|
|
{/empty}
|
|
|
|
</div>
|
|
|
|
</div>
|