{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">
                                        <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="/manager/mall/activity/limit-time/index" lay-filter="table-container-limit"></table>
                </div>
            </div>
        </div>
    </div>
</div>


<!-- 隐藏列 -->
<!-- 编辑单元格提交url -->
<input type="hidden" id="row-modify" data-url="/manager/mall/activity/limit-time/modify">

<!-- 操作列 -->
<script type="text/html" id="row-operate">
    <a class="layui-btn layui-btn-primary layui-btn-xs" data-href="/manager/mall/activity/limit-time/edit.html?id={{d.id}}" data-title="编辑限时折扣" lay-event="edit">编辑</a>
    {{# if (d.is_restore == 0) { }}
    <a class="layui-btn layui-btn-warm layui-btn-xs" data-href="/manager/mall/activity/limit-time/end.html" lay-event="end">立即结束</a>
    {{# } else { }}
    <a class="layui-btn layui-btn-info layui-btn-xs" data-href="/manager/mall/activity/limit-time/restart.html" lay-event="restart">启动</a>
    {{# } }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" data-href="/manager/mall/activity/limit-time/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/activity/limit-time/add.html" data-title="添加限时折扣" lay-event="add">添加</a>
    <a class="layui-btn layui-btn-danger layui-btn-sm" data-href="/manager/mall/activity/limit-time/del.html" lay-event="del">删除</a>
</script>

<script src="__MANAGER__/js/mall/limit_time.js?v={:mt_rand()}"></script>