Index.html 3.4 KB
<%include '../../common/__ui/header'%>

<%include '../../common/__partail/ListHeader'%>

<div class="contentpanel">
    <div class="panel panel-default" style="margin-bottom:10px;">
        <div class="panel-body" style="padding-bottom: 0">
            <a id="add-btn" href="javascript:;" class="btn btn-success"><i class="fa fa-plus"></i> 添加品牌优惠券</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col">
                    <select id="sel-brandName" class="form-control" >
                        <option value="-1">选择品牌名称</option>
                    </select>
                </div>

                <div class="panel-col">
                    <select id="sel-status" class="form-control">
                        <option value="-1">是否生效</option>
                        <option value="1">失效</option>
                        <option value="2">有效</option>
                    </select>
                </div>

                <div class="panel-col">
                    <input type="number" id="sel-couponsId" class="form-control" placeholder="输入优惠券ID" style="height: 39px;"/>
                </div>

                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">筛选</a>
                    <a id="all-btn" href="" class="btn btn-info">全部</a>
                </div>

            </div>
        </div>
    </div>
    <div class="panel panel-primary-head">
        <div id="basicTable_wrapper" class="dataTables_wrapper no-footer">
            <div class="dataTables_length" id="basicTable">
            </div>
            <nav>
                <ul id="pagination" class="pagination pagination-lg"></ul>
            </nav>
        </div>
    </div>
</div>

<script type="text/template" id="template">
    <div class="form-group">
        <label  class="col-sm-2 control-label">优惠券ID<span style="color: red;"> *</span></label>
        <div class="col-sm-10">
            <input type="text" match="numbers" value="[[couponsId]]" class="form-control observe" placeholder="优惠券ID" required="required" data-field="couponsId">
        </div>
    </div>

    <div class="form-group" id="maxsord">
        <label for="brandId" class="col-sm-2 control-label">品牌<span style="color: red;"> *</span></label>
        <div class="col-sm-10">
            <input type="hidden" name="" value="[[id]]" id="id" class="form-control observe" data-field="brandId">
            <select id="brandId" value="[[brandId]]"  class="form-control observe" data-field="brandId">
                <option value="[[brandId||-1]]">[[brandName||"请选择品牌"]]</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="status" class="col-sm-2 control-label">是否生效<span style="color: red;"> *</span></label>
        <div class="radio">
            <label><input type="radio" value="1" class=" observe" name="status" kl_vkbd_parsed="true" data-field="status" checked>失效</label>
            <label><input type="radio" value="2" class=" observe" name="status" kl_vkbd_parsed="true" data-field="status">有效</label>
        </div>
        <input id="status" type="hidden" required="required" class="form-control observe" value="[[status||'1']]" for="radio"  kl_vkbd_parsed="true" data-field="status">
    </div>
</script>

<%include '../../common/__ui/footer'%>