cmSvipHistoryForm.jsp 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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 {
  9. text-align: center;
  10. }
  11. .table td {
  12. text-align: center;
  13. }
  14. </style>
  15. <script type="text/javascript">
  16. // $(document).ready(function() {
  17. // $(".clubName").text(getUrlParam("name")?getUrlParam("name"):'');
  18. // });
  19. function page(n, s) {
  20. $("#pageNo").val(n);
  21. $("#pageSize").val(s);
  22. $("#searchForm").submit();
  23. return false;
  24. }
  25. function getUrlParam(name) {
  26. var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", 'i'); //构造一个含有目标参数的正则表达式对象
  27. var r = decodeURIComponent(window.location.search).substr(1).match(reg); //匹配目标参数
  28. if (r != null) return (r[2]);
  29. return null; //返回参数值
  30. }
  31. </script>
  32. </head>
  33. <body>
  34. <ul class="nav nav-tabs">
  35. <li><a href="${ctx}/svip/cmSvipHistory/">超级会员列表</a></li>
  36. <li class="active"><a href="${ctx}/svip/cmSvipHistory/form?userId=${cmSvipHistory.userId}">购买记录</a></li>
  37. </ul>
  38. <form:form id="searchForm" modelAttribute="cmSvipHistory"
  39. action="${ctx}/svip/cmSvipHistory/findHistory?userId=${cmSvipHistory.userId}" method="post"
  40. class="breadcrumb form-search">
  41. <div>
  42. <p style="padding: 12px;"><b>机构名称:${clubName}</b><span class="clubName"></span></p>
  43. <p style="padding: 12px;"><b>联系人:${linkMan}</b><span class="clubName"></span></p>
  44. <p style="padding: 12px;"><b>手机号:${mobile}</b><span class="clubName"></span></p>
  45. </div>
  46. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  47. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  48. <div class="ul-form">
  49. <label>购买套餐:</label>
  50. <form:select path="packageId" class="input-medium ">
  51. <form:option value="" label="全部"/>
  52. <form:option value="3" label="1个月"/>
  53. <form:option value="2" label="3个月"/>
  54. <form:option value="1" label="12个月"/>
  55. </form:select>
  56. <label>会员状态:</label>
  57. <form:select path="status" class="input-medium ">
  58. <form:option value="" label="全部"/>
  59. <form:option value="1" label="已生效"/>
  60. <form:option value="2" label="已过期"/>
  61. </form:select>
  62. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  63. <label>购买时间:</label>
  64. <input name="startPayTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
  65. value="<fmt:formatDate value="${cmSvipHistory.startPayTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
  66. onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;
  67. <input name="endPayTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
  68. value="<fmt:formatDate value="${cmSvipHistory.endPayTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
  69. onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
  70. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  71. <br/>
  72. <br/>
  73. <label>到期时间:</label>
  74. <input name="startEndTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
  75. value="<fmt:formatDate value="${cmSvipHistory.startEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
  76. onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;
  77. <input name="endEndTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
  78. value="<fmt:formatDate value="${cmSvipHistory.endEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
  79. onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
  80. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  81. <div class="clearfix"></div>
  82. </div>
  83. </form:form>
  84. <sys:message content="${message}"/>
  85. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  86. <thead>
  87. <tr>
  88. <th>购买套餐</th>
  89. <th>购买价格</th>
  90. <th>购买渠道</th>
  91. <th>会员状态</th>
  92. <th>购买时间</th>
  93. <th>到期时间</th>
  94. </tr>
  95. </thead>
  96. <tbody>
  97. <c:forEach items="${page.list}" var="cmSvipHistory">
  98. <tr>
  99. <td>
  100. <c:if test="${cmSvipHistory.packageId eq '1'}">12个月</c:if>
  101. <c:if test="${cmSvipHistory.packageId eq '2'}">3个月</c:if>
  102. <c:if test="${cmSvipHistory.packageId eq '3'}">1个月</c:if>
  103. </td>
  104. <td>
  105. <c:if test="${cmSvipHistory.payWay eq '0'}">${cmSvipHistory.price}</c:if>
  106. <c:if test="${cmSvipHistory.payWay eq '1'}">${cmSvipHistory.price}</c:if>
  107. <c:if test="${cmSvipHistory.payWay eq '2'}">${cmSvipHistory.price}</c:if>
  108. <c:if test="${cmSvipHistory.payWay eq '3'}">${cmSvipHistory.price}</c:if>
  109. <c:if test="${cmSvipHistory.payWay eq '4'}"><fmt:formatNumber value="${cmSvipHistory.userBeans}" pattern="#" type="number"/>采美豆</c:if>
  110. </td>
  111. <td>
  112. <c:if test="${cmSvipHistory.payWay eq '0'}">未知</c:if>
  113. <c:if test="${cmSvipHistory.payWay eq '1'}">线上</c:if>
  114. <c:if test="${cmSvipHistory.payWay eq '2'}">线下</c:if>
  115. <c:if test="${cmSvipHistory.payWay eq '3'}">余额抵扣</c:if>
  116. <c:if test="${cmSvipHistory.payWay eq '4'}">采美豆抵扣</c:if>
  117. </td>
  118. <td>
  119. <c:if test="${cmSvipHistory.status eq '1'}"><font color="green">已生效</font> </c:if>
  120. <c:if test="${cmSvipHistory.status eq '2'}"><font color="red">已过期</font> </c:if>
  121. <c:if test="${cmSvipHistory.status eq '3'}"><font color="red">暂未生效</font> </c:if>
  122. </td>
  123. <td><fmt:formatDate value="${cmSvipHistory.payTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  124. <td><fmt:formatDate value="${cmSvipHistory.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  125. </tr>
  126. </c:forEach>
  127. </tbody>
  128. </table>
  129. <c:if test="${empty page.list}">
  130. <p style="text-align: center;"><font color="#1e90ff">暂无数据……</font></p>
  131. </c:if>
  132. <div class="pagination">${page}</div>
  133. </body>
  134. </html>