103 lines
5.5 KiB
HTML
103 lines
5.5 KiB
HTML
{layout name="manager/layout" /}
|
|
|
|
<div class="layui-row layui-col-space12">
|
|
<div class="layui-col-xs12 layui-col-md12">
|
|
<div class="layuimini-container location-index-page">
|
|
<div class="layuimini-main">
|
|
<fieldset class="table-search-fieldset" style="display: none">
|
|
<legend>搜索信息</legend>
|
|
<div style="margin: 10px 10px 10px 10px">
|
|
<form class="layui-form layui-form-pane" action="">
|
|
<div class="layui-form-item">
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">商品状态</label>
|
|
<div class="layui-input-block">
|
|
<select name="saleable">
|
|
<option value=""></option>
|
|
{foreach $statusList as $key => $val}
|
|
<option value="{$key ?? ''}">{$val ?? ''}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">商品属性</label>
|
|
<div class="layui-input-block">
|
|
<select name="spu_type">
|
|
<option value=""></option>
|
|
{foreach $spuTypeList as $key => $val}
|
|
<option value="{$key ?? ''}">{$val ?? ''}</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-inline">
|
|
<label class="layui-form-label">商品关键词</label>
|
|
<div class="layui-input-block">
|
|
<input class="layui-input" name="keyword" placeholder="支持模糊查询">
|
|
</div>
|
|
</div>
|
|
|
|
<div class="layui-inline">
|
|
<button type="submit" class="layui-btn layui-btn-primary" lay-submit lay-filter="data-search-btn"><i class="layui-icon"></i> 搜 索</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</fieldset>
|
|
<div class="image-table">
|
|
<table id="table-container" class="layui-table" data-url="{$url ?? '/manager/mall/spu/index'}" lay-filter="table-container-filter"></table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<!-- 隐藏列 -->
|
|
<!-- 编辑单元格提交url -->
|
|
<input type="hidden" id="row-modify" data-url="/manager/mall/spu/modify">
|
|
|
|
<!-- 列-展示方式 -->
|
|
<script type="text/html" id="row-display">
|
|
<input type="checkbox" name="home_display" value="{{d.id}}" lay-skin="switch" lay-text="大图|小图" lay-filter="changeDisplay" {{ d.home_display == 'big' ? 'checked' : '' }}>
|
|
</script>
|
|
|
|
<!-- 列-上下架 -->
|
|
<script type="text/html" id="row-saleable">
|
|
<input type="checkbox" name="saleable" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="changeSaleable" {{ d.saleable == 1 ? 'checked' : '' }}>
|
|
</script>
|
|
|
|
<!-- 列-内容审核 -->
|
|
<script type="text/html" id="row-check">
|
|
<input type="checkbox" name="is_check" value="{{d.id}}" lay-skin="switch" lay-text="展示|隐藏" lay-filter="changeCheck" {{ d.is_check == 1 ? 'checked' : '' }}>
|
|
</script>
|
|
|
|
<!-- 列-是否推荐到首页 -->
|
|
<script type="text/html" id="row-home">
|
|
<input type="checkbox" name="is_home" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="changeHome" {{ d.is_home == 1 ? 'checked' : '' }}>
|
|
</script>
|
|
|
|
<!-- 列-是否热门 -->
|
|
<script type="text/html" id="row-hot">
|
|
<input type="checkbox" name="is_hot" value="{{d.id}}" lay-skin="switch" lay-text="是|否" lay-filter="changeHot" {{ d.is_hot == 1 ? 'checked' : '' }}>
|
|
</script>
|
|
|
|
<!-- 操作列 -->
|
|
<script type="text/html" id="row-operate">
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs clipboard-btn" data-path="{$mpPath ?? ''}" data-category="{$categoryId ?? 33}" data-title="获取小程序路径" lay-event="path">复制小程序路径</a>
|
|
<a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/mall/spu/edit.html?id={{d.id}}" data-title="编辑商品" lay-event="edit">编辑</a>
|
|
<a class="layui-btn layui-btn-danger layui-btn-xs" data-href="/manager/mall/spu/del.html" lay-event="del">删除</a>
|
|
</script>
|
|
|
|
<!-- toolbar -->
|
|
<script type="text/html" id="toolbar-tpl">
|
|
<a class="layui-btn layui-btn-primary layui-btn-sm" data-table-refresh lay-event="refresh"><i class="fa fa-refresh"></i></a>
|
|
<a class="layui-btn layui-btn-normal layui-btn-sm" data-href="/manager/mall/spu/add.html?type={$type ?? 'normal'}" data-title="添加商品" lay-event="add">添加</a>
|
|
<a class="layui-btn layui-btn-danger layui-btn-sm" data-href="/manager/mall/spu/del.html" lay-event="del">删除</a>
|
|
</script>
|
|
|
|
<script src="__MANAGER__/js/mall/spu.js?v={:mt_rand()}"></script>
|
|
<script src="__STATIC__/js/clipboard.min.js"></script> |