Send.html
2.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<%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'%>