123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269 |
- <%@ page import="java.util.Date" %><%--
- Created by IntelliJ IDEA.
- User: Administrator
- Date: 2020/4/12
- Time: 12:01
- To change this template use File | Settings | File Templates.
- --%>
- <%@ page contentType="text/html;charset=UTF-8" language="java" %>
- <%@ 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;
- }
- .livelyProportion {
- background: #f5f5f5;
- height: 150px;
- display: flex;
- list-style: none;
- }
- .livelyProportion > li {
- flex: 1;
- text-align: center;
- margin: auto 0;
- font-size: 20px;
- font-weight: bold;
- }
- </style>
- <script type="text/javascript">
- $(document).ready(function () {
- let date = new Date().getTime()
- let date0 = formatDate(date)
- let date1 = formatDate(date - 24 * 60 * 60 * 1000)
- let date2 = formatDate(date - 24 * 60 * 60 * 1000 * 2)
- let date3 = formatDate(${newCmClub.providerTime.getTime()})
- if (date0 == date3) {
- $("#conlog").text("(今天)")
- } else if (date1 == date3) {
- $("#conlog").text("(昨天)")
- } else if (date2 == date3) {
- $("#conlog").text("(前天)")
- }
- })
- function formatDate(date) {
- //date为时间戳
- var date = new Date(date);
- var Y = date.getFullYear() + '-';
- var M = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
- var D = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate());
- var h = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
- var m = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
- var s = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
- return Y + M + D;
- }
- function checkProviderTime(type) {
- var date = new Date($("#providerTime").val()).getTime()
- if (formatDate(new Date()) != formatDate(date)||type == 1) {
- if (type != 1) {
- date = date + 24 * 60 * 60 * 1000
- } else {
- date = date - 24 * 60 * 60 * 1000
- }
- $("#providerTime").val(formatDate(date))
- $("#searchForm").submit()
- }else {
- $.jBox.tip("当前已经是最新的记录了!", 'info');
- }
- }
- /**
- * @param obj
- * jquery控制input只能输入数字
- */
- function onlynum(obj) {
- obj.value = obj.value.replace(/[^\d]/g, ""); //清除"数字"以外的字符
- }
- function page(n, s) {
- $("#pageNo").val(n);
- $("#pageSize").val(s);
- $("#searchForm").submit();
- return false;
- }
- </script>
- </head>
- <body>
- <ul class="nav nav-tabs">
- <li><a href="${ctx}/new/user/agency/clubSales">机构-协销列表</a></li>
- <li><a href="${ctx}/new/user/agency/list">机构基本资料列表</a></li>
- <li><a href="${ctx}/new/user/agency/statisticsList">机构分析统计列表</a></li>
- <li class="active"><a href="${ctx}/new/user/agency/cmSpClubTrackList">新分配机构跟踪管理</a></li>
- <li><a href="${ctx}/new/user/cmSp/cmSpLivelyClubList/">机构活跃分析</a></li>
- <li><a href="${ctx}/user/clubTemporary/">未确认机构</a></li>
- <li><a href="${ctx}/user/cmOperational/">操作日志</a></li>
- </ul>
- <ul class="breadcrumb livelyProportion">
- <li>
- <div>
- <img src="/static/images/left.png" style="width: 50px" border="none" onclick="checkProviderTime(1)">
- <span><fmt:formatDate value="${Date(newCmClub.providerTime.getTime()- 24 * 60 * 60 * 1000)}"
- pattern="yyyy年M月dd日 "></fmt:formatDate></span>
- </div>
- </li>
- <li>
- <div style="font-size: 40px;">
- <fmt:formatDate value="${newCmClub.providerTime}"
- pattern="yyyy年M月dd日 "></fmt:formatDate>
- <span style="font-size: 20px;color:#0bbbee;position: relative;bottom: 5px" id="conlog"></span>
- </div>
- </li>
- <li>
- <div>
- <span><fmt:formatDate value="${Date(newCmClub.providerTime.getTime()+ 24 * 60 * 60 * 1000)}"
- pattern="yyyy年M月dd日 "></fmt:formatDate></span>
- <img src="/static/images/right.png" border="none" style="width: 50px" onclick="checkProviderTime(0)">
- </div>
- </li>
- </ul>
- <form:form id="searchForm" modelAttribute="newCmClub" action="${ctx}/new/user/agency/cmSpClubTrackList/" method="post"
- class="breadcrumb form-search">
- <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
- <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
- <input id="providerTime" name="providerTime" type="hidden" value="<fmt:formatDate value="${newCmClub.providerTime}" pattern="yyyy-MM-dd HH:mm:ss"/>"/>
- <div class="flex-wrap">
- <div class="item">
- <label>机构ID:</label>
- <form:input path="clubID" onkeyup="onlynum(this)" htmlEscape="false"
- maxlength="50" class="input-medium"/>
- </div>
- <div class="item">
- <label>机构名称:</label>
- <form:input path="name" htmlEscape="false" maxlength="50" class="input-medium"/>
- </div>
- <div class="item">
- <label>联系人:</label>
- <form:input path="linkMan" htmlEscape="false" maxlength="50" class="input-medium"/>
- </div>
- <div class="item">
- <label>手机号:</label>
- <form:input path="bindMobile" htmlEscape="false" maxlength="50" class="input-medium"/>
- </div>
- <div class="item">
- <label>协销:</label>
- <form:select path="spID" class="input-medium">
- <form:option value="" label="全部"/>
- <form:options items="${spNameList}" itemLabel="name" itemValue="serviceProviderID" htmlEscape="false"/>
- </form:select>
- </div>
- <div class="item">
- <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
- </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>
- <th>注册时间</th>
- <th>上次登录时间</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <c:forEach items="${page.list}" var="newCmClubList">
- <tr>
- <td>${newCmClubList.clubID}</td>
- <td>
- <a href="${ctx}/new/user/agency/clubPortrait?clubID=${newCmClubList.clubID}&clubName=${newCmClubList.name}&dateType=0&type=4">${newCmClubList.name}</a>
- </td>
- <td>
- ${newCmClubList.spName}
- </td>
- <td><fmt:formatDate value="${newCmClubList.providerTime}"
- pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate></td>
- <td>${newCmClubList.userName}</td>
- <td>${newCmClubList.bindMobile}</td>
- <td>
- <c:if test="${newCmClubList.userIdentity eq 4}">
- 个人机构
- <c:if test="${newCmClubList.svipUserFlag eq 1}">
- <font color="red">(超级会员)</font>
- </c:if>
- <c:if test="${newCmClubList.svipUserFlag ne 1}">
- <font color="black">(普通会员)</font>
- </c:if>
- </c:if>
- <c:if test="${newCmClubList.userIdentity eq 2}">
- 资质机构
- <c:if test="${newCmClubList.svipUserFlag eq 1}">
- <font color="red">(超级会员)</font>
- </c:if>
- <c:if test="${empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
- <font color="red">(高级会员)</font>
- </c:if>
- <c:if test="${!empty newCmClubList.medicalPracticeLicenseImg and newCmClubList.svipUserFlag ne 1}">
- <font color="red">(医美会员)</font>
- </c:if>
- </c:if>
- </td>
- <td>
- <c:choose>
- <c:when test="${newCmClubList.status eq 90}">
- <font color="green">已上线</font>
- </c:when>
- <c:when test="${newCmClubList.status eq 91}">
- <font color="red">已下线</font>
- </c:when>
- <c:when test="${newCmClubList.status eq 92}">
- <a href="JavaScript:;" onclick="return alertx('不通过原因:${newCmClubList.auditNote}')"
- style="text-decoration:underline;"><font color="red">审核未通过</font></a>
- </c:when>
- <c:when test="${newCmClubList.status eq 93}">
- <font color="#BF826C">已确认</font>
- </c:when>
- <c:when test="${newCmClubList.status eq 94}">
- <font color="red">已冻结</font>
- </c:when>
- <c:otherwise>
- ${fns:getDictLabel(newCmClubList.status, 'club_status', newCmClubList.status)}
- </c:otherwise>
- </c:choose>
- </td>
- <td>
- <fmt:formatDate value="${newCmClubList.registerTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
- </td>
- <td>
- <fmt:formatDate value="${newCmClubList.loginTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>
- </td>
- <td>
- <a href="${ctx}/new/user/agency/regist?clubId=${newCmClubList.clubID}&clubName=${newCmClubList.name}">咨询记录</a>
- <a href="${ctx}/new/user/agency/spLogs?clubID=${newCmClubList.clubID}">协销更换记录</a>
- </td>
- </tr>
- </c:forEach>
- </tbody>
- </table>
- <div class="pagination">${page}</div>
- <script>
- </script>
- </body>
- </html>
|