caipan_shop_admin/view/manager/mall/activity/index.html

89 lines
5.3 KiB
HTML
Executable File

{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/activity/index'}" lay-filter="table-container"></table>
</div>
</div>
</div>
</div>
</div>
<!-- 隐藏列 -->
<!-- 编辑单元格提交url -->
<input type="hidden" id="row-modify" data-url="/manager/mall/activity/modify">
<!---内容审核 -->
<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-operate">
<a class="layui-btn layui-btn-info layui-btn-xs" data-href="/manager/mall/activity/info.html?id={{d.id}}" data-title="活动详情" lay-event="edit">详情</a>
{{# if (d.is_activity_history == 0) { }}
<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/activity/edit.html?id={{d.id}}" data-title="编辑商品" lay-event="edit">编辑</a>
<!-- <a class="layui-btn layui-btn-warm layui-btn-xs" data-href="/manager/mall/activity/end.html" lay-event="end">立即结束</a>-->
<a class="layui-btn layui-btn-danger layui-btn-xs" data-href="/manager/mall/activity/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-danger layui-btn-sm" data-href="/manager/mall/activity/check.html" data-width="40%" data-height="60%" data-title="批量商品审核" lay-event="check">批量审核</a>-->
<a class="layui-btn layui-btn-normal layui-btn-sm" data-href="/manager/mall/activity/add.html?type={$type ?? 'group_buy'}" data-title="添加商品" lay-event="add">添加</a>
<!-- <a class="layui-btn layui-btn-warm layui-btn-sm" data-href="/manager/mall/activity/end.html" lay-event="end">立即结束</a>-->
<a class="layui-btn layui-btn-danger layui-btn-sm" data-href="/manager/mall/activity/del.html" lay-event="del">删除</a>
</script>
<script src="__MANAGER__/js/mall/activity.js?v={:mt_rand()}"></script>
<script src="__STATIC__/js/clipboard.min.js"></script>