tijian_tieying/web/dccdc/Views/Infection/RedPacketRecord.cshtml
2025-02-20 12:14:39 +08:00

90 lines
4.2 KiB
Plaintext

@{
ViewBag.Title = "红包记录";
}
<div style="width:100%">
<table class="t1" style="width:100%">
<tr>
<td class="ltd" style="width:100px">开始时间:</td>
<td class="rtd" style="width:160px"><input type="text" id="RedPacketStart" /></td>
<td class="ltd" style="width:100px">结束时间:</td>
<td class="rtd" style="width:160px"><input type="text" id="RedPacketEnd" /></td>
<td class="ltd" style="width:100px">红包类型:</td>
<td class="rtd" style="width:160px">
<select id="RedPacketType">
<option value="">请选择</option>
<option value="1">签到</option>
<option value="2">问卷调查</option>
<option value="3">体检</option>
<option value="4">推荐</option>
</select>
</td>
<td class="ltd" style="width:100px">红包状态:</td>
<td class="rtd" style="width:160px">
<select id="RedPacketStatus">
<option value="">请选择</option>
<option value="0">发放中</option>
<option value="1">已发放待领取</option>
<option value="2">发放失败</option>
<option value="3">已提现</option>
<option value="4">退款中</option>
<option value="5">已退款</option>
</select>
</td>
<td class="rtd"><div id="search">查询</div></td>
</tr>
</table>
</div>
<div id="checkRedPacketList" style="width:100%"></div>
<table class="t1" style="width:100%">
<tr>
<td class="ltd" style="width:10%">问卷调查红包数:</td>
<td class="rtd" style="width:12%"><input id="monthOne" class="l-text" value="@ViewBag.monthOne" readonly /></td>
<td class="ltd" style="width:10%">签到红包数:</td>
<td class="rtd" style="width:12%"><input id="monthTwo" class="l-text" value="@ViewBag.monthTwo" readonly /></td>
<td class="ltd" style="width:10%">红包总数:</td>
<td class="rtd" style="width:12%"><input id="allOne" class="l-text" value="@ViewBag.allOne" readonly /></td>
</tr>
</table>
@section scripts{
<script type="text/javascript">
$(function () {
$("#RedPacketStart").ligerDateEditor({ showTime: false });
$("#RedPacketEnd").ligerDateEditor({ showTime: false });
});
$(function () {
$("#search").ligerButton({
click: function () {
liger.get("checkRedPacketList").set("parms", { start: $("#RedPacketStart").val(), end: $("#RedPacketEnd").val(), type: $("#RedPacketType").val(), status: $("#RedPacketStatus").val() });
liger.get("checkRedPacketList").changePage("first");
liger.get("checkRedPacketList").reload();
}
});
$("#checkRedPacketList").ligerGrid({
url: "@Url.Action("getRedPacketList")",
title: "红包列表",
parms: { },
columns: [
{ name: "nickname", display: "昵称", width: 100, align: "center" },
{ name: "name", display: "姓名", width: 100, align: "center" },
{ name: "ident", display: "身份证号", width: 200, align: "center" },
{ name: "phone", display: "手机号", width: 200, align: "center" },
{ name: "sum", display: "派发金额", width: 100, align: "center" },
{ name: "redState", display: "是否提现", width: 100, align: "center" },
{ name: "redType", display: "红包类型", width: 100, align: "center" },
{ name: "create_time", display: "创建时间", width: 200, align: "center" },
{ name: "receive_date", display: "领取时间", width: 200, align: "center" }
],width: "98%",
height: "100%",
rownumbers: true,
usePager: true,
heightDiff: -20
});
});
</script>
}