|
@@ -0,0 +1,99 @@
|
|
|
+{extend name="../../admin/view/main"}
|
|
|
+
|
|
|
+{block name="button"}
|
|
|
+<!--{if auth("add")}-->
|
|
|
+<button class='layui-btn layui-btn-sm layui-btn-primary' data-open='{:url("add")}'>添加商品</button>
|
|
|
+<!--{/if}-->
|
|
|
+
|
|
|
+{if isset($type) and $type eq 'index'}
|
|
|
+<!--{if auth("remove")}-->
|
|
|
+<button class='layui-btn layui-btn-sm layui-btn-primary' data-action='{:url("remove")}' data-rule="code#{key};deleted#1">删除商品</button>
|
|
|
+<!--{/if}-->
|
|
|
+{else}
|
|
|
+<!--{if auth("remove")}-->
|
|
|
+<button class='layui-btn layui-btn-sm layui-btn-primary' data-action='{:url("remove")}' data-confirm="确定要恢复这些数据吗?" data-rule="code#{key};deleted#0">恢复商品</button>
|
|
|
+<!--{/if}-->
|
|
|
+{/if}
|
|
|
+
|
|
|
+<!--{if auth("goods.mark/index")}-->
|
|
|
+<button class='layui-btn layui-btn-sm layui-btn-primary' data-modal='{:url("shop.mark/index")}' data-title="标签管理" data-width="920px">标签管理</button>
|
|
|
+<!--{/if}-->
|
|
|
+{/block}
|
|
|
+
|
|
|
+{block name="content"}
|
|
|
+<div class="layui-tab layui-tab-card think-bg-white">
|
|
|
+ <ul class="layui-tab-title">
|
|
|
+ {foreach ['index'=>'商品管理','recycle'=>'回 收 站'] as $k=>$v}
|
|
|
+ {if isset($type) and $type eq $k}
|
|
|
+ <li class="layui-this" data-open="{:url('index')}?type={$k}">{$v}</li>
|
|
|
+ {else}
|
|
|
+ <li data-open="{:url('index')}?type={$k}">{$v}</li>
|
|
|
+ {/if}{/foreach}
|
|
|
+ </ul>
|
|
|
+ <div class="layui-tab-content">
|
|
|
+ {include file='shop/goods/index_search'}
|
|
|
+ <table class="layui-table margin-top-10" lay-skin="line">
|
|
|
+ {notempty name='list'}
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class='list-table-check-td think-checkbox'>
|
|
|
+ <label><input data-auto-none data-check-target='.list-check-box' type='checkbox'></label>
|
|
|
+ </th>
|
|
|
+<!-- <th class='list-table-sort-td'>-->
|
|
|
+<!-- <button class="layui-btn layui-btn-xs" data-reload type="button">刷 新</button>-->
|
|
|
+<!-- </th>-->
|
|
|
+ <th class='text-left nowrap'>商品信息</th>
|
|
|
+ <th class='text-left nowrap'>商品分类</th>
|
|
|
+<!-- <th class='text-left nowrap'>商品状态</th>-->
|
|
|
+ <th>操作</th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ {/notempty}
|
|
|
+ <tbody>
|
|
|
+ {foreach $list as $key=>$vo}
|
|
|
+ <tr>
|
|
|
+ <td class='list-table-check-td think-checkbox'>
|
|
|
+ <label><input class="list-check-box" type='checkbox' value='{$vo.code}'></label>
|
|
|
+ </td>
|
|
|
+<!-- <td class='list-table-sort-td'>-->
|
|
|
+<!-- <label><input class="list-sort-input" data-action-blur="{:sysuri()}" data-loading="false" data-value="id#{$vo.id};action#sort;sort#{value}" value="{$vo.sort}"></label>-->
|
|
|
+<!-- </td>-->
|
|
|
+ <td class='nowrap'>
|
|
|
+ {notempty name='vo.cover'}
|
|
|
+ <div class="headimg headimg-no" data-tips-hover data-tips-image data-lazy-src="{$vo.cover}"></div>
|
|
|
+ {/notempty}
|
|
|
+ <div class="inline-block sub-span-blue">
|
|
|
+ <div>商品名称:<span>{$vo.name|default='--'}</span></div>
|
|
|
+ <div>商品编号:<span>{$vo.code|default='--'}</span></div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <div>
|
|
|
+ {notempty name='vo.marks'}{foreach $vo.marks as $mark}
|
|
|
+ <span class="notselect nowrap layui-badge layui-bg-cyan">{$mark}</span>
|
|
|
+ {/foreach}{/notempty}
|
|
|
+ </div>
|
|
|
+ <div class="nowrap">
|
|
|
+ {notempty name='vo.cateinfo'}
|
|
|
+ {:join('<span class="layui-icon layui-icon-right font-s10 color-blue"></span>', $vo.cateinfo.names)}
|
|
|
+ {/notempty}
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+<!-- <td class='nowrap'>-->
|
|
|
+<!-- 库存 <b>{$vo.stock_total}</b> 件;( 已销售 <b>{$vo.stock_sales}</b> 件 )-->
|
|
|
+<!-- <div class="notselect margin-top-5">-->
|
|
|
+<!-- {eq name='vo.status' value='0'}<span class="layui-badge layui-bg-gray layui-border-red">已下架</span>{else}<span class="layui-badge layui-bg-gray layui-border-green">销售中</span>{/eq}-->
|
|
|
+<!-- </div>-->
|
|
|
+<!-- </td>-->
|
|
|
+ <td class='nowrap sub-strong-blue'>
|
|
|
+ <a class="layui-btn layui-btn-xs layui-btn-warm" data-action="{:url('examinex')}" data-value="code#{$vo.code};examine#1">通 过</a>
|
|
|
+ <a class="layui-btn layui-btn-xs layui-btn-primary" data-action="{:url('examinex')}" data-value="code#{$vo.code};examine#2">拒 绝</a>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ {/foreach}
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ {empty name='list'}<span class="notdata">没有记录哦</span>{else}{$pagehtml|raw|default=''}{/empty}
|
|
|
+ </div>
|
|
|
+</div>
|
|
|
+{/block}
|