123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- <%@ page contentType="text/html;charset=UTF-8" %>
- <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
- <html>
- <head>
- <title>领取用户列表</title>
- <meta name="decorator" content="default"/>
- <style type="text/css">
- .table th{text-align: center;}
- .table td{text-align: center;}
- </style>
- <script type="text/javascript">
- $(document).ready(function() {
- });
- function page(n,s){
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- /**
- * @param obj
- * jquery控制input只能输入数字
- */
- function onlynum(obj) {
- obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/hehe/cmHeheCoupon/?couponType=${cmHeheReceiveUser.couponType}">${cmHeheReceiveUser.couponType eq 1?'活动':cmHeheReceiveUser.couponType eq 2?'专享':cmHeheReceiveUser.couponType eq 3?'新人':cmHeheReceiveUser.couponType eq 4?'好友分享':'好友消费'}券</a></li>
- <li class="active"><a href="${ctx}/hehe/cmHeheCoupon/receive/user/list?couponType=${cmHeheReceiveUser.couponType}&couponId=${cmHeheReceiveUser.couponId}">领取用户列表</a></li>
- </ul>
- <form:form id="searchForm" modelAttribute="cmHeheReceiveUser" action="${ctx}/hehe/cmHeheCoupon/receive/user/list" method="post" class="breadcrumb form-search">
- <form:hidden path="couponId"/>
- <form:hidden path="couponType"/>
- <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
- <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
- <div class="ul-form">
- <label>微信昵称:</label>
- <form:input path="nickName" htmlEscape="false" maxlength="20" class="input-medium"/>
- <label>手机号:</label>
- <form:input path="mobile" htmlEscape="false" maxlength="15" class="input-medium" onkeyup="onlynum(this)"/>
- <label>使用状态:</label>
- <form:select path="status" class="input-small">
- <form:option value="" label="全部"/>
- <form:option value="1" label="未使用"/>
- <form:option value="2" label="已使用"/>
- <form:option value="3" label="已失效"/>
- </form:select>
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
- <div class="clearfix"></div>
- </div>
- </form:form>
- <sys:message content="${message}"/>
- <table id="contentTable" class="table table-striped table-bordered table-condensed" >
- <thead>
- <tr>
- <th>ID</th>
- <th>微信昵称</th>
- <th>手机号</th>
- <th>领取渠道</th>
- <th>领取时间</th>
- <th>优惠券有效期</th>
- <th>优惠券状态</th>
- <th>使用时间</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="user" varStatus="index">
- <tr>
- <td>
- ${user.userId}
- </td>
- <td>
- ${user.nickName}
- </td>
- <td>
- ${user.mobile}
- </td>
- <td>
- ${user.source eq 1 ? "小程序":user.source eq 2 ?"订单退回":"领券购买"}
- </td>
- <td>
- <fmt:formatDate value="${user.receiveTime}" pattern="yyyy-MM-dd HH:mm:ss" />
- </td>
- <td>
- <fmt:formatDate value="${user.validPeriod}" pattern="yyyy-MM-dd HH:mm:ss" />
- </td>
- <td>
- <c:if test="${user.status eq 2}">
- <a href="${ctx}/hehe/new/order/detail?id=${user.orderId}" style="color: #ff0000;text-decoration: underline !important;}">
- 已使用
- </a>
- </c:if>
- <c:if test="${user.status ne 2}">
- <label style="color: ${user.validFlag eq 1?'#2FA4E7':'#999999'}">
- ${user.validFlag eq 1?'未使用':'已失效'}
- </label>
- </c:if>
- </td>
- <td>
- <c:if test="${user.status eq 2}">
- <fmt:formatDate value="${user.useTime}" pattern="yyyy-MM-dd HH:mm:ss" />
- </c:if>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- </body>
- </html>
|