sendCoupon.html 2.47 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="panel-body form-bordered" id="basicInfo">
    <div class="row">
        <div class="form-group">
            <h3>优惠券名称:<span id="title"></span></h3>
        </div>

        <div class="form-group">
            <h4>手工发放</h4>
            <div class="col-sm-6">
                <label>UID:</label>
                <textarea id="handworkSend" rows="6" class="form-control" placeholder="请输入UID,英文输入法下用逗号分隔,批量导入则手输无效" style="resize: none"></textarea>
                <span class="red">单次限制输入50个UID</span>
                <br><a class="btn btn-primary btn-xs" id="sendCoupon">发放</a>
            </div>
        </div>

        <div class="form-group">
            <h4>批量发放</h4>
            <a class="btn btn-primary" href="javascript:void(0);" id="batch-import">上传文件</a>
            <input type="file" class="picfile" name="picfile" required="required" id="picfile">
        </div><br>
        <div id="list-content">

        </div>
    </div>
</div>

<script type="text/template" id="template-list">
    <table class="table table-hover table-bordered responsive dataTable no-footer" align="center">
        <thead>
            <tr>
                <td>文件URL</td>
                <td>发券状态</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
        [[each data as item index]]
            <tr>
                <td>[[item.fileUrl]]</td>
                [[if item.status == 0]]
                <td>未开始发放</td>
                [[else if item.status == 1]]
                <td>正在发放</td>
                [[else if item.status == 2]]
                <td>已发放</td>
                [[/if]]
                <td><a class="btn btn-primary btn-xs reSend" data-index="[[item.id]]">重发</a></td>
            </tr>
        [[/each]]
        </tbody>
    </table>
</script>