Send.html 2.08 KB
<%include '../../common/__ui/header'%>

<%include '../../common/__partail/ListHeader'%>
<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"><br>
            <span class="red">TXT文本文件,每行一个用户id号,文件编码为UTF-8.结尾不要有空行</span>
        </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>

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