123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140 |
- <%@ 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() {
- // $(".clubName").text(getUrlParam("name")?getUrlParam("name"):'');
- // });
- function page(n, s) {
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- function getUrlParam(name) {
- var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", 'i'); //构造一个含有目标参数的正则表达式对象
- var r = decodeURIComponent(window.location.search).substr(1).match(reg); //匹配目标参数
- if (r != null) return (r[2]);
- return null; //返回参数值
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/svip/cmSvipHistory/">超级会员列表</a></li>
- <li class="active"><a href="${ctx}/svip/cmSvipHistory/form?userId=${cmSvipHistory.userId}">购买记录</a></li>
- </ul>
- <form:form id="searchForm" modelAttribute="cmSvipHistory"
- action="${ctx}/svip/cmSvipHistory/findHistory?userId=${cmSvipHistory.userId}" method="post"
- class="breadcrumb form-search">
- <div>
- <p style="padding: 12px;">
- <b>机构名称:${clubName}</b>
- <b>联系人:${linkMan}</b>
- <b>手机号:${mobile}</b>
- <span class="clubName"></span></p>
- </div>
- <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:select path="packageId" class="input-medium ">
- <form:option value="" label="全部"/>
- <form:option value="1" label="1个月"/>
- <form:option value="3" label="3个月"/>
- <form:option value="12" label="12个月"/>
- </form:select>
- <label>会员状态:</label>
- <form:select path="status" class="input-medium ">
- <form:option value="" label="全部"/>
- <form:option value="1" label="已生效"/>
- <form:option value="2" label="已过期"/>
- <form:option value="3" label="暂未生效"/>
- </form:select>
-
- <label>购买时间:</label>
- <input name="startPayTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
- value="<fmt:formatDate value="${cmSvipHistory.startPayTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> 至
- <input name="endPayTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
- value="<fmt:formatDate value="${cmSvipHistory.endPayTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
-
- <br/>
- <br/>
- <label>到期时间:</label>
- <input name="startEndTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
- value="<fmt:formatDate value="${cmSvipHistory.startEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/> 至
- <input name="endEndTime" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
- value="<fmt:formatDate value="${cmSvipHistory.endEndTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',isShowClear:false});"/>
- <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>购买套餐</th>
- <th>购买价格</th>
- <th>购买渠道</th>
- <th>会员状态</th>
- <th>购买时间</th>
- <th>到期时间</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="cmSvipHistory">
- <tr>
- <td>
- <c:if test="${cmSvipHistory.packageId eq '12'}">12个月</c:if>
- <c:if test="${cmSvipHistory.packageId eq '3'}">3个月</c:if>
- <c:if test="${cmSvipHistory.packageId eq '1'}">1个月</c:if>
- </td>
- <td>
- <c:if test="${cmSvipHistory.payWay eq '0'}">¥${cmSvipHistory.price}</c:if>
- <c:if test="${cmSvipHistory.payWay eq '1'}">¥${cmSvipHistory.price}</c:if>
- <c:if test="${cmSvipHistory.payWay eq '2'}">¥${cmSvipHistory.price}</c:if>
- <c:if test="${cmSvipHistory.payWay eq '3'}">¥${cmSvipHistory.price}</c:if>
- <c:if test="${cmSvipHistory.payWay eq '4'}"><fmt:formatNumber value="${cmSvipHistory.userBeans}" pattern="#" type="number"/>采美豆</c:if>
- </td>
- <td>
- <c:if test="${cmSvipHistory.payWay eq '0'}">未知</c:if>
- <c:if test="${cmSvipHistory.payWay eq '1'}">线上</c:if>
- <c:if test="${cmSvipHistory.payWay eq '2'}">线下</c:if>
- <c:if test="${cmSvipHistory.payWay eq '3'}">余额抵扣</c:if>
- <c:if test="${cmSvipHistory.payWay eq '4'}">采美豆抵扣</c:if>
- </td>
- <td>
- <c:if test="${cmSvipHistory.status eq '1'}"><font color="green">已生效</font> </c:if>
- <c:if test="${cmSvipHistory.status eq '2'}"><font color="red">已过期</font> </c:if>
- <c:if test="${cmSvipHistory.status eq '3'}"><font color="Orange">暂未生效</font> </c:if>
- </td>
- <td><fmt:formatDate value="${cmSvipHistory.payTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
- <td><fmt:formatDate value="${cmSvipHistory.endTime}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <c:if test="${empty page.list}">
- <p style="text-align: center;"><font color="#1e90ff">暂无数据……</font></p>
- </c:if>
- <div class="pagination">${page}</div>
- </body>
- </html>
|