|
@@ -0,0 +1,245 @@
|
|
|
|
+<%--
|
|
|
|
+ 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
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ .livelyBorder {
|
|
|
|
+ color: red;
|
|
|
|
+ border-bottom: red 5px solid;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ </style>
|
|
|
|
+ <script type="text/javascript">
|
|
|
|
+ $(document).ready(function () {
|
|
|
|
+ if (${newCmClub.startLoginTime ne ''}) {
|
|
|
|
+ $("#livelyBorder>li:eq(0)").attr("class", "livelyBorder")
|
|
|
|
+ } else {
|
|
|
|
+ $("#livelyBorder>li:eq(1)").attr("class", "livelyBorder")
|
|
|
|
+ }
|
|
|
|
+ $("#livelyBorder>li").click(function (item) {
|
|
|
|
+ var dateTime = new Date();
|
|
|
|
+ $("#livelyBorder>li").attr("class", "")
|
|
|
|
+ if ($(this).index() == 0) {
|
|
|
|
+ $("#startLoginTime").attr("value", formatDate(dateTime.setMonth(dateTime.getMonth() - 6)))
|
|
|
|
+ $("#endLoginTime").attr("value", formatDate(new Date()))
|
|
|
|
+ $(this).attr("class", "livelyBorder")
|
|
|
|
+ } else {
|
|
|
|
+ $("#startLoginTime").attr("value", "")
|
|
|
|
+ $("#endLoginTime").attr("value", formatDate(dateTime.setMonth(dateTime.getMonth() - 6)))
|
|
|
|
+ $(this).attr("class", "livelyBorder")
|
|
|
|
+ }
|
|
|
|
+ $("#searchForm").submit()
|
|
|
|
+ })
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ 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 + " " + h + m + s;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ 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/cmSp/cmSpList/">协销人员列表</a></li>
|
|
|
|
+ <shiro:hasPermission name="user:newCmClub:edit">
|
|
|
|
+ <li><a href="${ctx}/new/user/cmSp/cmSpForm">添加协销人员</a></li>
|
|
|
|
+ </shiro:hasPermission>
|
|
|
|
+ <li><a href="${ctx}/serviceteam/cmServiceteamRole/">协销小组</a></li>
|
|
|
|
+ <li><a href="${ctx}/new/user/cmSp/leader/">协销总管理员</a></li>
|
|
|
|
+ <li><a href="${ctx}/new/user/cmSp/cmSpLivelyClubList/">机构活跃分析</a></li>
|
|
|
|
+ <li class="active"><a href="${ctx}/new/user/cmSp/cmSpLivelyClubFrom/">查看详情</a></li>
|
|
|
|
+</ul>
|
|
|
|
+
|
|
|
|
+<ul class="breadcrumb livelyProportion">
|
|
|
|
+ <li>
|
|
|
|
+ <h4>活跃机构</h4>
|
|
|
|
+ <br>
|
|
|
|
+ <p>(6个月内有登录商城等行为)</p>
|
|
|
|
+ <h2>${livelyClub}</h2>
|
|
|
|
+ </li>
|
|
|
|
+ <li>
|
|
|
|
+ <h4>不活跃机构</h4>
|
|
|
|
+ <br>
|
|
|
|
+ <p>(6个月内未登录商城等行为)</p>
|
|
|
|
+ <h2>${nolivelyClub}</h2>
|
|
|
|
+ </li>
|
|
|
|
+ <li>
|
|
|
|
+ <h4>活跃机构占比</h4>
|
|
|
|
+ <br>
|
|
|
|
+ <h2>${livelyClubProportion}%</h2>
|
|
|
|
+ </li>
|
|
|
|
+ <li>
|
|
|
|
+ <h4>不活跃机构占比</h4>
|
|
|
|
+ <br>
|
|
|
|
+ <h2>${nolivelyClubProportion}%</h2>
|
|
|
|
+ </li>
|
|
|
|
+</ul>
|
|
|
|
+<form:form id="searchForm" modelAttribute="newCmClub" action="${ctx}/new/user/cmSp/cmSpLivelyClubFrom/" 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}"/>
|
|
|
|
+ <div class="flex-wrap">
|
|
|
|
+ <form:hidden path="spID"/>
|
|
|
|
+ <form:hidden path="startLoginTime"/>
|
|
|
|
+ <form:hidden path="endLoginTime"/>
|
|
|
|
+ <div class="item">
|
|
|
|
+ <label>机构ID:</label>
|
|
|
|
+ <form:input path="clubID" type="text" 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">
|
|
|
|
+ <input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+
|
|
|
|
+</form:form>
|
|
|
|
+<sys:message content="${message}"/>
|
|
|
|
+<div>
|
|
|
|
+ <ul id="livelyBorder" class="livelyProportion" style="height: 40px;width: 200px;background: white">
|
|
|
|
+ <li>活跃机构</li>
|
|
|
|
+ <li>不活跃机构</li>
|
|
|
|
+ </ul>
|
|
|
|
+</div>
|
|
|
|
+<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>
|
|
|
|
+ </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.userName}</td>
|
|
|
|
+ <td>${newCmClubList.bindMobile}</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>
|
|
|
|
+ <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>
|
|
|
|
+ <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>
|
|
|
|
+ </tr>
|
|
|
|
+ </c:forEach>
|
|
|
|
+ </tbody>
|
|
|
|
+</table>
|
|
|
|
+<div class="pagination">${page}</div>
|
|
|
|
+<script>
|
|
|
|
+</script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|
|
|
|
+
|