receiveUserList.jsp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <%@ page contentType="text/html;charset=UTF-8" %>
  2. <%@ include file="/WEB-INF/views/include/taglib.jsp"%>
  3. <html>
  4. <head>
  5. <title>领取用户列表</title>
  6. <meta name="decorator" content="default"/>
  7. <style type="text/css">
  8. .table th{text-align: center;}
  9. .table td{text-align: center;}
  10. </style>
  11. <script type="text/javascript">
  12. $(document).ready(function() {
  13. });
  14. function page(n,s){
  15. $("#pageNo").val(n);
  16. $("#pageSize").val(s);
  17. $("#searchForm").submit();
  18. return false;
  19. }
  20. /**
  21. * @param obj
  22. * jquery控制input只能输入数字
  23. */
  24. function onlynum(obj) {
  25. obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
  26. }
  27. </script>
  28. </head>
  29. <body>
  30. <ul class="nav nav-tabs">
  31. <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>
  32. <li class="active"><a href="${ctx}/hehe/cmHeheCoupon/receive/user/list?couponType=${cmHeheReceiveUser.couponType}&couponId=${cmHeheReceiveUser.couponId}">领取用户列表</a></li>
  33. </ul>
  34. <form:form id="searchForm" modelAttribute="cmHeheReceiveUser" action="${ctx}/hehe/cmHeheCoupon/receive/user/list" method="post" class="breadcrumb form-search">
  35. <form:hidden path="couponId"/>
  36. <form:hidden path="couponType"/>
  37. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  38. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  39. <div class="ul-form">
  40. <label>微信昵称:</label>
  41. <form:input path="nickName" htmlEscape="false" maxlength="20" class="input-medium"/>
  42. <label>手机号:</label>
  43. <form:input path="mobile" htmlEscape="false" maxlength="15" class="input-medium" onkeyup="onlynum(this)"/>
  44. <label>使用状态:</label>
  45. <form:select path="status" class="input-small">
  46. <form:option value="" label="全部"/>
  47. <form:option value="1" label="未使用"/>
  48. <form:option value="2" label="已使用"/>
  49. <form:option value="3" label="已失效"/>
  50. </form:select>
  51. <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  52. <div class="clearfix"></div>
  53. </div>
  54. </form:form>
  55. <sys:message content="${message}"/>
  56. <table id="contentTable" class="table table-striped table-bordered table-condensed" >
  57. <thead>
  58. <tr>
  59. <th>ID</th>
  60. <th>微信昵称</th>
  61. <th>手机号</th>
  62. <th>领取渠道</th>
  63. <th>领取时间</th>
  64. <th>优惠券有效期</th>
  65. <th>优惠券状态</th>
  66. <th>使用时间</th>
  67. </tr>
  68. </thead>
  69. <tbody>
  70. <c:forEach items="${page.list}" var="user" varStatus="index">
  71. <tr>
  72. <td>
  73. ${user.userId}
  74. </td>
  75. <td>
  76. ${user.nickName}
  77. </td>
  78. <td>
  79. ${user.mobile}
  80. </td>
  81. <td>
  82. ${user.source eq 1 ? "小程序":user.source eq 2 ?"订单退回":"领券购买"}
  83. </td>
  84. <td>
  85. <fmt:formatDate value="${user.receiveTime}" pattern="yyyy-MM-dd HH:mm:ss" />
  86. </td>
  87. <td>
  88. <fmt:formatDate value="${user.validPeriod}" pattern="yyyy-MM-dd HH:mm:ss" />
  89. </td>
  90. <td>
  91. <c:if test="${user.status eq 2}">
  92. <a href="${ctx}/hehe/new/order/detail?id=${user.orderId}" style="color: #ff0000;text-decoration: underline !important;}">
  93. 已使用
  94. </a>
  95. </c:if>
  96. <c:if test="${user.status ne 2}">
  97. <label style="color: ${user.validFlag eq 1?'#2FA4E7':'#999999'}">
  98. ${user.validFlag eq 1?'未使用':'已失效'}
  99. </label>
  100. </c:if>
  101. </td>
  102. <td>
  103. <c:if test="${user.status eq 2}">
  104. <fmt:formatDate value="${user.useTime}" pattern="yyyy-MM-dd HH:mm:ss" />
  105. </c:if>
  106. </td>
  107. </tr>
  108. </c:forEach>
  109. </tbody>
  110. </table>
  111. <div class="pagination">${page}</div>
  112. </body>
  113. </html>