|
@@ -58,7 +58,7 @@
|
|
|
<body>
|
|
|
<ul class="nav nav-tabs">
|
|
|
<li><a href="${ctx}/new/user/agency/clubSales">机构-协销列表</a></li>
|
|
|
- <li class="active"><a href="${ctx}/new/user/agency/findActiveClubInfo?orderByType=1&activeStatus=0">机构分析统计列表</a></li>
|
|
|
+ <li class="active"><a href="${ctx}/new/user/agency/findActiveClubInfo?orderByType=1&activeStatus=0">机构活跃详情</a></li>
|
|
|
</ul>
|
|
|
<form:form id="searchForm" modelAttribute="activeClub" action="${ctx}/new/user/agency/findActiveClubInfo" method="post"
|
|
|
class="breadcrumb form-search">
|
|
@@ -175,134 +175,171 @@
|
|
|
<ul id="activeClub">
|
|
|
<li class="icon-activeClub" value="0">活跃机构</li>
|
|
|
<li class="icon-ubActiveClub" value="1">不活跃机构</li>
|
|
|
+ <li class="icon-tourist" value="2">咨询游客</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>
|
|
|
- <th>机构类型</th>
|
|
|
- <th>机构级别</th>
|
|
|
- <th>注册时间</th>
|
|
|
- <th class="th-sort">
|
|
|
- 最近访问时间
|
|
|
- <div class="sort sort-button" id="sort-button1">
|
|
|
- <a href="${ctx}/new/user/agency/findActiveClubInfo?orderByType=1" class="icon icon-up"></a>
|
|
|
- <a href="${ctx}/new/user/agency/findActiveClubInfo?orderByType=2" class="icon icon-down"></a>
|
|
|
- </div>
|
|
|
- </th>
|
|
|
- <th>最近咨询时间</th>
|
|
|
- <th>最近下单时间</th>
|
|
|
+ <c:if test="${2 != activeClub.activeStatus}">
|
|
|
+ <th>机构ID</th>
|
|
|
+ <th>机构名称</th>
|
|
|
+ <th>联系人</th>
|
|
|
+ <th>联系人身份</th>
|
|
|
+ <th>手机号</th>
|
|
|
+ <th>协销人员</th>
|
|
|
+ <th>地址</th>
|
|
|
+ <th>状态</th>
|
|
|
+ <th>机构类型</th>
|
|
|
+ <th>机构级别</th>
|
|
|
+ <th>注册时间</th>
|
|
|
+ <th class="th-sort">
|
|
|
+ 最近访问时间
|
|
|
+ <div class="sort sort-button" id="sort-button1">
|
|
|
+ <a href="${ctx}/new/user/agency/findActiveClubInfo?orderByType=1" class="icon icon-up"></a>
|
|
|
+ <a href="${ctx}/new/user/agency/findActiveClubInfo?orderByType=2" class="icon icon-down"></a>
|
|
|
+ </div>
|
|
|
+ </th>
|
|
|
+ <th>最近咨询时间</th>
|
|
|
+ <th>最近下单时间</th>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${2 == activeClub.activeStatus}">
|
|
|
+ <th>咨询人</th>
|
|
|
+ <th>手机号/微信号</th>
|
|
|
+ <th>协销</th>
|
|
|
+ <th>最近咨询时间</th>
|
|
|
+ </c:if>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
<c:forEach items="${page.list}" var="clubList">
|
|
|
<tr>
|
|
|
- <td>${clubList.clubID}</td>
|
|
|
- <td>
|
|
|
- ${clubList.name}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- ${clubList.linkMan}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <c:if test="${clubList.linkManStatus ne null}">
|
|
|
- ${clubList.linkManStatus}
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.linkManStatus eq null}">
|
|
|
- ---
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- ${clubList.contractMobile}
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- ${clubList.spName}
|
|
|
- </td>
|
|
|
+ <c:if test="${2 != activeClub.activeStatus}">
|
|
|
+ <td>${clubList.clubID}</td>
|
|
|
+ <td>
|
|
|
+ ${clubList.name}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ ${clubList.linkMan}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${clubList.linkManStatus ne null}">
|
|
|
+ ${clubList.linkManStatus}
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.linkManStatus eq null}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ ${clubList.contractMobile}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ ${clubList.spName}
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${not empty clubList.province}">
|
|
|
+ ${clubList.province}
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${not empty clubList.city}">
|
|
|
+ ${clubList.city}
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${empty clubList.province and empty clubList.city}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>${clubList.clubStatus}</td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${clubList.firstClubType != null || clubList.firstClubType != ''}">
|
|
|
+ ${clubList.firstClubType}
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.classify ne null}">
|
|
|
+ - ${clubList.classify}
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.firstClubType == null and clubList.firstClubType == '' and clubList.classify == null and clubList.classify == ''}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${clubList.userIdentity eq 4}">
|
|
|
+ 个人机构
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.userIdentity eq 2}">
|
|
|
+ 资质机构
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.svipUserFlag eq 1}">
|
|
|
+ <font color="red">(超级会员)</font>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.userIdentity eq 2 and clubList.svipUserFlag eq 0}">
|
|
|
+ <font color="red">(普通会员)</font>
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${clubList.registerTime ne null}">
|
|
|
+ ${clubList.registerTime}
|
|
|
+ <%--<fmt:formatDate value="${clubList.addTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>--%>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.registerTime eq null}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${clubList.behaviorTime ne null}">
|
|
|
+ ${clubList.behaviorTime}
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.behaviorTime eq null}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${clubList.recentlyTime ne null}">
|
|
|
+ ${clubList.recentlyTime}
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.recentlyTime eq null}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${clubList.lastOrderTime ne null}">
|
|
|
+ ${clubList.lastOrderTime}
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${clubList.lastOrderTime eq null}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${2 == activeClub.activeStatus}">
|
|
|
+ <td>${clubList.questionMan}</td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${empty clubList.mobileOrWeChat}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${ not empty clubList.mobileOrWeChat}">
|
|
|
+ ${clubList.mobileOrWeChat}
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>
|
|
|
+ <c:if test="${empty clubList.spLinkMan}">
|
|
|
+ ---
|
|
|
+ </c:if>
|
|
|
+ <c:if test="${ not empty clubList.spLinkMan}">
|
|
|
+ ${clubList.spLinkMan}
|
|
|
+ </c:if>
|
|
|
+ </td>
|
|
|
+ <td>${clubList.visAddTime}</td>
|
|
|
+ </c:if>
|
|
|
<td>
|
|
|
- <c:if test="${not empty clubList.province}">
|
|
|
- ${clubList.province}
|
|
|
+ <c:if test="${2 != activeClub.activeStatus}">
|
|
|
+ <a href="${ctx}/new/user/agency/clubPortrait?clubID=${clubList.clubID}&clubName=${clubList.name}&dateType=0&type=4">机构画像</a>
|
|
|
+ <a href="${ctx}/new/user/agency/getClubBehaviorInfo?clubId=${clubList.clubID}&operateObject=1">行为记录</a>
|
|
|
</c:if>
|
|
|
- <c:if test="${not empty clubList.city}">
|
|
|
- ${clubList.city}
|
|
|
+ <c:if test="${2 == activeClub.activeStatus}">
|
|
|
+ <a href="javaScript: void(0)" class="tab_remark" onclick="getNewAdmin('${clubList.questionMan}', '${clubList.spId}')">咨询记录</a>
|
|
|
</c:if>
|
|
|
- <c:if test="${empty clubList.province and empty clubList.city}">
|
|
|
- ---
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>${clubList.clubStatus}</td>
|
|
|
- <td>
|
|
|
- <c:if test="${clubList.firstClubType != null || clubList.firstClubType != ''}">
|
|
|
- ${clubList.firstClubType}
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.classify ne null}">
|
|
|
- - ${clubList.classify}
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.firstClubType == null and clubList.firstClubType == '' and clubList.classify == null and clubList.classify == ''}">
|
|
|
- ---
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <c:if test="${clubList.userIdentity eq 4}">
|
|
|
- 个人机构
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.userIdentity eq 2}">
|
|
|
- 资质机构
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.svipUserFlag eq 1}">
|
|
|
- <font color="red">(超级会员)</font>
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.userIdentity eq 2 and clubList.svipUserFlag eq 0}">
|
|
|
- <font color="red">(普通会员)</font>
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <c:if test="${clubList.registerTime ne null}">
|
|
|
- ${clubList.registerTime}
|
|
|
- <%--<fmt:formatDate value="${clubList.addTime}" pattern="yyyy-MM-dd HH:mm:ss"></fmt:formatDate>--%>
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.registerTime eq null}">
|
|
|
- ---
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <c:if test="${clubList.behaviorTime ne null}">
|
|
|
- ${clubList.behaviorTime}
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.behaviorTime eq null}">
|
|
|
- ---
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <c:if test="${clubList.recentlyTime ne null}">
|
|
|
- ${clubList.recentlyTime}
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.recentlyTime eq null}">
|
|
|
- ---
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <c:if test="${clubList.lastOrderTime ne null}">
|
|
|
- ${clubList.lastOrderTime}
|
|
|
- </c:if>
|
|
|
- <c:if test="${clubList.lastOrderTime eq null}">
|
|
|
- ---
|
|
|
- </c:if>
|
|
|
- </td>
|
|
|
- <td>
|
|
|
- <a href="${ctx}/new/user/agency/clubPortrait?clubID=${clubList.clubID}&clubName=${clubList.name}&dateType=0&type=4">机构画像</a>
|
|
|
- <a href="javascript: void(0);"
|
|
|
+ <%--<a href="javascript: void(0);"
|
|
|
onclick="goNewBack(1, '${clubList.addTime}', ${clubList.userIdentity}, '${clubList.name}', '${clubList.linkMan}','${clubList.clubID}')">访问记录</a>
|
|
|
<a href="javascript: void(0);"
|
|
|
- onclick="goNewBack(2, '${clubList.addTime}', ${clubList.userIdentity}, '${clubList.name}', '${clubList.linkMan}','${clubList.clubID}')">咨询记录</a>
|
|
|
+ onclick="goNewBack(2, '${clubList.addTime}', ${clubList.userIdentity}, '${clubList.name}', '${clubList.linkMan}','${clubList.clubID}')">咨询记录</a>--%>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
@@ -324,10 +361,19 @@
|
|
|
console.log('---------', $('#activeStatus').val());
|
|
|
if (activeStatus === 0) {
|
|
|
// 活跃机构
|
|
|
- $('.icon-activeClub').attr("class", "redAddClass")
|
|
|
- } else {
|
|
|
+ $('.icon-activeClub').attr("class", "redAddClass");
|
|
|
+ $(".icon-ubActiveClub").removeClass("redAddClass");
|
|
|
+ $(".icon-tourist").removeClass("redAddClass");
|
|
|
+ } else if (activeStatus === 1){
|
|
|
// 不活跃机构
|
|
|
- $('.icon-ubActiveClub').attr("class", "redAddClass")
|
|
|
+ $('.icon-ubActiveClub').attr("class", "redAddClass");
|
|
|
+ $(".icon-activeClub").removeClass("redAddClass");
|
|
|
+ $(".icon-tourist").removeClass("redAddClass");
|
|
|
+ } else {
|
|
|
+ // 咨询游客
|
|
|
+ $('.icon-tourist').attr("class", "redAddClass");
|
|
|
+ $(".icon-ubActiveClub").removeClass("redAddClass");
|
|
|
+ $(".icon-activeClub").removeClass("redAddClass");
|
|
|
}
|
|
|
$('#searchForm').submit();
|
|
|
})
|
|
@@ -388,14 +434,30 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ function getNewAdmin(questionMan, spId) {
|
|
|
+ $.get("${ctx}/jump/link", function (data) {
|
|
|
+ link = "https://manager-b.caimei365.com/#/user/consult/unreg-list?questionMan=" + questionMan + "&serviceProviderId=" + spId + "&token=" + data;
|
|
|
+ window.open(link, "_blank");
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
$(function () {
|
|
|
const activeStatus = $('#activeStatus').val() * 1;
|
|
|
if (activeStatus === 0) {
|
|
|
// 活跃机构
|
|
|
$('.icon-activeClub').attr("class", "redAddClass")
|
|
|
- } else {
|
|
|
+ $(".icon-ubActiveClub").removeClass("redAddClass");
|
|
|
+ $(".icon-tourist").removeClass("redAddClass");
|
|
|
+ } else if (activeStatus === 1){
|
|
|
// 不活跃机构
|
|
|
- $('.icon-ubActiveClub').attr("class", "redAddClass")
|
|
|
+ $('.icon-ubActiveClub').attr("class", "redAddClass");
|
|
|
+ $(".icon-activeClub").removeClass("redAddClass");
|
|
|
+ $(".icon-tourist").removeClass("redAddClass");
|
|
|
+ } else {
|
|
|
+ // 咨询游客
|
|
|
+ $('.icon-tourist').attr("class", "redAddClass");
|
|
|
+ $(".icon-ubActiveClub").removeClass("redAddClass");
|
|
|
+ $(".icon-activeClub").removeClass("redAddClass");
|
|
|
}
|
|
|
const typeMap = {
|
|
|
1: {
|