index.html 7.55 KB
<div class="pageheader">
    <div class="media">
        <div class="pageicon pull-left">
            <i class="fa fa-th-list"></i>
        </div>
        <div class="media-body">
            <ul class="breadcrumb">
                <li><a href=""><i class="glyphicon glyphicon-home"></i></a></li>
                <li><a href="">优惠码管理</a></li>
                <li>优惠码列表</li>
            </ul>

            <div>
                <div style="width: 30%;float: left;">
                    <h4>优惠码列表</h4>
                </div>
            </div>
        </div>
    </div>
</div>

<div class="contentpanel">
    <div class="panel panel-default" style="margin-bottom:10px;">
        <div class="panel-heading">
            <a href="/coupon/add" class="btn btn-success"><i class="fa fa-plus"></i> 添加优惠码</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <input id="filter-id" class="form-control panel-input" type="text" placeholder="请输入批次号">
                <input id="filter-name" class="form-control panel-input" type="text" placeholder="请输入名称">
                <select id="filter-dep" name="filter-dep" tabindex="-1" title="" class="select2-offscreen brandBtn-group">
                    <option value="">全部</option>
                    <option value="商品部">商品部</option>
                    <option value="市场部">市场部</option>
                    <option value="会员部">会员部</option>
                    <option value="零售运营部">零售运营部</option>
                    <option value="品牌合作部">品牌合作部</option>
                    <option value="零售业务部">零售业务部</option>
                    <option value="潮流资源部">潮流资源部</option>
                    <option value="其他">其他</option>
                </select>
                <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                <a id="all-btn" href="javascript:;" class="btn btn-info">全部</a>
            </div>
        </div>
    </div>
    <div class="panel panel-primary-head">
        <div id="basicTable_wrapper" class="dataTables_wrapper no-footer">
            <div class="list-tabs">
                <ul class="nav nav-pills">
                    
                </ul>
            </div>
            <div class="dataTables_length" id="basicTable">
            </div>
            <nav>
                <ul id="pagination" class="pagination pagination-lg" data-page="{{pagination}}"></ul>
            </nav>
        </div>
    </div>
</div>

<input type="hidden" id="btnAuthority" value="{{bottons}}">
<input type="hidden" id="gridurl" value="{{gridurl}}">

<div class="modal fade" id="cancel-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body">
                <p>您确定要作废此优惠码吗?</p>
                <label class="col-sm-3 control-label">*请填写原因</label>
                <input id="cancel-reason" type="text" class="form-control" name="agreement-code" style="width:280px;">
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary">确定</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="back-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body">
                <p>您确定要驳回该申请吗?</p>
                <label class="col-sm-3 control-label">*请填写原因</label>
                <input id="cancel-reason" type="text" class="form-control" name="agreement-code" style="width:280px;">
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary">确定</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="success-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">温馨提示</h4>
            </div>
            <div class="modal-body">
                您确定要通过该申请吗?
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                <button type="button" class="btn btn-primary">确定</button>
                <button type="button" class="btn btn-info">发放列表</button>
            </div>
        </div>
    </div>
</div>

<div class="modal fade" id="send-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
    <div class="modal-dialog" role="document">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                <h4 class="modal-title">发放列表</h4>
            </div>
            <div class="modal-body">
                <div class="send-list">
                    <table class="coupon-send-table am-table am-table-bordered am-table-radius">
                        <thead>
                            <tr class="am-primary">
                                <th>批次号</th>
                                <th>基本信息</th>
                                <th>使用期限</th>
                                <th>优惠码说明</th>
                                <th>申请人</th>
                            </tr>
                        </thead>
                        <tbody>
                            
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>


<script id="send-tpl" type="x-tmpl-handlebars">
\{{# data}}
    <tr>
        <td class="id"><a href="/couponinfo/\{{id}}">\{{batchNo}}</a></td>
        <td class="info">
            <p>名称:\{{name}}</p>
            <p>次数:\{{limitTimes}}</p>
            <p>部门:\{{reqDepartment}}</p>
        </td>
        <td class="time">
            <p>\{{limitDateFrom}}</p>
            
            <p>\{{limitDateTo}}</p>
        </td>
        <td class="describe">
            <p>\{{describe}}</p>
        </td>
        <td class="staff">\{{staff}}</td>
    </tr>
\{{/ data}}
</script>

<script id="tab-tpl" type="x-tmpl-handlebars">
\{{#each data}}
<li role="presentation" data-status="\{{@key}}"><a href="javascript: void(0)"><span>\{{@key}}</span>(\{{.}})</a></li>
\{{/each}}
</script>