Index.html 3.3 KB
<%include '../../common/__ui/header'%>
<%include '../../common/__partail/ListHeader'%>

<div class="contentpanel">
    <div class="panel panel-default" style="...">
        <div class="panel-body" style="padding-bottom: 0">
            <a class="btn btn-success" id="add-content"><i class="fa fa-plus"></i> 添加兑券</a>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="panel-col2">
                    <input type="text" value="" name="modelName" id="name-filter" placeholder="请输入发券关键字"
                           class="form-control">
                </div>
                <div class="panel-col">
                    <a id="filter-btn" href="javascript:;" class="btn btn-info">查询</a>
                    <a id="filter-all" href="/exchangeCouponManager/queryList" class="btn btn-info">全部</a>
                </div>
                <!-- <div class="panel-col2">
                    <a class="btn btn-primary" id="token" href="javascript:;">查看token使用方法>></a>
                </div> -->
            </div>
        </div>
    </div>
    <div id="content-list"></div>
</div>
<!--编辑模态-->
<script type="text/template" id="template">
    <div class="rows" id="baseform">
        <div class="form-group">
            <label class="col-sm-2 control-label">发券名称<i class="red">*</i></label>

            <div class="col-sm-10">
                <input type="text" value="[[name]]" class="form-control observe" data-field="name" placeholder="发券名称"
                       required="required"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">副标题<i class="red">*</i></label>

            <div class="col-sm-10">
                <input type="text" value="[[subName]]" class="form-control observe" data-field="subName" placeholder="可填使用有效期(30个字符)"
                       required="required"/>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">优惠券ID<i class="red">*</i></label>

            <div class="col-sm-7">
                <select name="sendCouponId" class="col-sm-10 observe select2-offscreen sendCouponId"
                        data-field="sendCouponId">
                    <option value='[[sendCouponId]]'>[[sendCouponName||sendCouponId||'请选择优惠券ID']]</option>
                </select>
            </div>
            <!-- <div class="col-sm-2">
                <a class="col-sm-4 btn btn-primary addBtn" data-index="[[index]]">+</a>
                [[if index==0]]
                <a class="col-sm-4 col-sm-offset-2 btn btn-danger delBtn" data-index="[[index]]">-</a>
                [[else]]
                <a class="col-sm-4 col-sm-offset-2 btn btn-danger delBtn" data-index="[[index]]">-</a>
                [[/if]]
            </div> -->

        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">兑换有货币数量<i class="red">*</i></label>

            <div class="col-sm-10">
                <input type="text" value="[[exchangeYohoCoinNum]]" class="form-control observe number" data-field="exchangeYohoCoinNum" placeholder=""
                       required="required"/>
            </div>
        </div>
    </div>
</script>