cmSvipHistoryForm.jsp 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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;">
  43. <b>机构名称:${clubName}</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  44. <b>联系人:${linkMan}</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  45. <b>手机号:${mobile}</b>
  46. <span class="clubName"></span></p>
  47. </div>
  48. <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
  49. <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
  50. <div class="ul-form">
  51. <label>购买套餐:</label>
  52. <form:select path="packageId" class="input-medium ">
  53. <form:option value="" label="全部"/>
  54. <form:option value="1" label="1个月"/>
  55. <form:option value="3" label="3个月"/>
  56. <form:option value="12" label="12个月"/>
  57. </form:select>
  58. <label>会员状态:</label>
  59. <form:select path="status" class="input-medium ">
  60. <form:option value="" label="全部"/>
  61. <form:option value="1" label="已生效"/>
  62. <form:option value="2" label="已过期"/>
  63. <form:option value="3" label="暂未生效"/>
  64. </form:select>
  65. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  66. <label>购买时间:</label>
  67. <input name="startPayTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
  68. value="<fmt:formatDate value="${cmSvipHistory.startPayTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
  69. onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;
  70. <input name="endPayTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
  71. value="<fmt:formatDate value="${cmSvipHistory.endPayTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
  72. onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
  73. &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  74. <br/>
  75. <br/>
  76. <label>到期时间:</label>
  77. <input name="startEndTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
  78. value="<fmt:formatDate value="${cmSvipHistory.startEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
  79. onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>&nbsp;&nbsp;&nbsp;至&nbsp;&nbsp;&nbsp;
  80. <input name="endEndTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
  81. value="<fmt:formatDate value="${cmSvipHistory.endEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
  82. onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
  83. &nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
  84. <div class="clearfix"></div>
  85. </div>
  86. </form:form>
  87. <sys:message content="${message}"/>
  88. <table id="contentTable" class="table table-striped table-bordered table-condensed">
  89. <thead>
  90. <tr>
  91. <th>购买套餐</th>
  92. <th>购买价格</th>
  93. <th>购买渠道</th>
  94. <th>会员状态</th>
  95. <th>购买时间</th>
  96. <th>到期时间</th>
  97. </tr>
  98. </thead>
  99. <tbody>
  100. <c:forEach items="${page.list}" var="cmSvipHistory">
  101. <tr>
  102. <td>
  103. <c:if test="${cmSvipHistory.packageId eq '12'}">12个月</c:if>
  104. <c:if test="${cmSvipHistory.packageId eq '3'}">3个月</c:if>
  105. <c:if test="${cmSvipHistory.packageId eq '1'}">1个月</c:if>
  106. </td>
  107. <td>
  108. <c:if test="${cmSvipHistory.payWay eq '0'}">¥${cmSvipHistory.price}</c:if>
  109. <c:if test="${cmSvipHistory.payWay eq '1'}">¥${cmSvipHistory.price}</c:if>
  110. <c:if test="${cmSvipHistory.payWay eq '2'}">¥${cmSvipHistory.price}</c:if>
  111. <c:if test="${cmSvipHistory.payWay eq '3'}">¥${cmSvipHistory.price}</c:if>
  112. <c:if test="${cmSvipHistory.payWay eq '4'}"><fmt:formatNumber value="${cmSvipHistory.userBeans}" pattern="#" type="number"/>采美豆</c:if>
  113. </td>
  114. <td>
  115. <c:if test="${cmSvipHistory.payWay eq '0'}">未知</c:if>
  116. <c:if test="${cmSvipHistory.payWay eq '1'}">线上</c:if>
  117. <c:if test="${cmSvipHistory.payWay eq '2'}">线下</c:if>
  118. <c:if test="${cmSvipHistory.payWay eq '3'}">余额抵扣</c:if>
  119. <c:if test="${cmSvipHistory.payWay eq '4'}">采美豆抵扣</c:if>
  120. </td>
  121. <td>
  122. <c:if test="${cmSvipHistory.status eq '1'}"><font color="green">已生效</font> </c:if>
  123. <c:if test="${cmSvipHistory.status eq '2'}"><font color="red">已过期</font> </c:if>
  124. <c:if test="${cmSvipHistory.status eq '3'}"><font color="Orange">暂未生效</font> </c:if>
  125. </td>
  126. <td><fmt:formatDate value="${cmSvipHistory.payTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  127. <td><fmt:formatDate value="${cmSvipHistory.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
  128. </tr>
  129. </c:forEach>
  130. </tbody>
  131. </table>
  132. <c:if test="${empty page.list}">
  133. <p style="text-align: center;"><font color="#1e90ff">暂无数据……</font></p>
  134. </c:if>
  135. <div class="pagination">${page}</div>
  136. </body>
  137. </html>