|
@@ -49,58 +49,64 @@
|
|
|
/*#items{border-bottom: #0d0d0d 1px dashed}*/
|
|
|
.viewDiv{position: relative; margin: 0 auto;margin-top: 10px; width: 100%; height: 1px; background-color: #d4d4d4; text-align: center; font-size: 16px; color: rgba(101, 101, 101, 1);}
|
|
|
.autoView{position: absolute; left: 90%; background-color: #ffffff;margin-left: 100px; padding: 0 15px; transform: translateX(-30%) translateY(-30%);}
|
|
|
+ #activeClub { width: 100%; height: 50px; display: flex; align-items: center; }
|
|
|
+ #activeClub > li {float: left; text-align: center; margin-left: 15px; font-size: 15px; list-style-type: none;}
|
|
|
+ .redAddClass {color: red; border-bottom: red 5px solid;}
|
|
|
</style>
|
|
|
<link href="${ctxStatic}/modules/cmAgencyStatisticsList/cmAgencyStatisticsList.css" rel="stylesheet">
|
|
|
</head>
|
|
|
<body>
|
|
|
<ul class="nav nav-tabs">
|
|
|
<li><a href="${ctx}/new/user/agency/clubSales">机构-协销列表</a></li>
|
|
|
- <li><a href="${ctx}/new/user/agency/">机构基本资料列表</a></li>
|
|
|
- <li class="active"><a href="${ctx}/new/user/agency/statisticsList">机构分析统计列表</a></li>
|
|
|
- <li><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>
|
|
|
+ <li class="active"><a href="${ctx}/new/user/agency/findActiveClubInfo?orderByType=1&activeStatus=0">机构分析统计列表</a></li>
|
|
|
</ul>
|
|
|
-<form:form id="searchForm" modelAttribute="statistics" action="${ctx}/new/user/agency/statisticsList" method="post"
|
|
|
+<form:form id="searchForm" modelAttribute="activeClub" action="${ctx}/new/user/agency/findActiveClubInfo" 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="payTotalMonthType" name="payTotalMonthType" type="hidden" value="${statistics.payTotalMonthType}"/>
|
|
|
- <input id="orderCountMonthType" name="orderCountMonthType" type="hidden" value="${statistics.orderCountMonthType}"/>
|
|
|
- <input id="payTotalYearType" name="payTotalYearType" type="hidden" value="${statistics.payTotalYearType}"/>
|
|
|
- <input id="orderCountYearType" name="orderCountYearType" type="hidden" value="${statistics.orderCountYearType}"/>
|
|
|
- <input id="payTotalType" name="payTotalType" type="hidden" value="${statistics.payTotalType}"/>
|
|
|
+ <input id="userID" name="payTotalMonthType" type="hidden" value="${activeClub.userID}"/>
|
|
|
+ <input id="orderByType" name="orderByType" type="hidden" value="${activeClub.orderByType}"/>
|
|
|
+ <input id="activeStatus" name="activeStatus" type="hidden" value="${activeClub.activeStatus}"/>
|
|
|
<div class="flex-wrap">
|
|
|
<div id="items" class="flex-wrap">
|
|
|
<div class="item">
|
|
|
- <label>注册时间:</label>
|
|
|
- <form:input path="registerStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerStartTime}"
|
|
|
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
- -
|
|
|
- <form:input path="registerEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerEndTime}"
|
|
|
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ <label>机构ID:</label>
|
|
|
+ <form:input path="clubID" type="text" onkeyup="this.value=value.replace(/[^\d]/g,'')" htmlEscape="false"
|
|
|
+ maxlength="50" class="input-medium"/>
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
- <label>最近下单时间:</label>
|
|
|
- <form:input path="searchStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${searchStartTime}"
|
|
|
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
- -
|
|
|
- <form:input path="searchEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${searchEndTime}"
|
|
|
- onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ <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="contractMobile" 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">
|
|
|
+ <label class="control-label">机构类型:</label>
|
|
|
+ <form:select path="firstClubType" class="input-medium">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:option value="1" label="医美"/>
|
|
|
+ <form:option value="2" label="生美"/>
|
|
|
+ <form:option value="3" label="项目公司"/>
|
|
|
+ <form:option value="4" label="个人"/>
|
|
|
+ <form:option value="0" label="其他"/>
|
|
|
+ </form:select>
|
|
|
</div>
|
|
|
- <label class="control-label">机构类型:</label>
|
|
|
- <form:select path="customerValue" class="input-medium">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:option value="1" label="医美"/>
|
|
|
- <form:option value="2" label="生美"/>
|
|
|
- <form:option value="3" label="项目公司"/>
|
|
|
- <form:option value="4" label="个人"/>
|
|
|
- <form:option value="0" label="其他"/>
|
|
|
- </form:select>
|
|
|
<div class="item">
|
|
|
<label>机构级别:</label>
|
|
|
- <form:select path="searchUserIdentity" class="input-medium">
|
|
|
+ <form:select path="userIdentity" class="input-medium">
|
|
|
<form:option value="" label="请选择"/>
|
|
|
<form:option value="4" label="个人机构"/>
|
|
|
<form:option value="2" label="资质机构"/>
|
|
@@ -109,61 +115,68 @@
|
|
|
</div>
|
|
|
<div class="item">
|
|
|
<label> 状态:</label>
|
|
|
- <form:select path="searchStatus" class="input-medium">
|
|
|
+ <form:select path="clubStatus" class="input-medium">
|
|
|
<form:option value="" label="请选择"/>
|
|
|
<form:options items="${fns:getDictList('club_status')}" itemLabel="label" itemValue="value"
|
|
|
htmlEscape="false"/>
|
|
|
</form:select>
|
|
|
</div>
|
|
|
- <label class="control-label">联系人身份:</label>
|
|
|
- <form:select path="linkManIdentity" class="input-medium">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:option value="1" label="老板"/>
|
|
|
- <form:option value="2" label="采购"/>
|
|
|
- <form:option value="3" label="运营"/>
|
|
|
- <form:option value="4" label="其他"/>
|
|
|
- </form:select>
|
|
|
- <div class="viewDiv">
|
|
|
- <input id="btnSubmit" class="btn autoView btn-primary" type="button" value="查询"/>
|
|
|
- <input id="export" class="btn autoView btn-primary" type="button" value="导出"/>
|
|
|
- </div><br/>
|
|
|
- <div class="flex-wrap">
|
|
|
- <label class="control-label">近一个月购买额:</label>
|
|
|
- <form:select id="payTotalMonth" path="payTotalMonth" class="input-medium">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:option value="1" label="小于1万"/>
|
|
|
- <form:option value="2" label="1万至10万"/>
|
|
|
- <form:option value="3" label="10万至100万"/>
|
|
|
- <form:option value="4" label="大于100万"/>
|
|
|
- </form:select>
|
|
|
- <label class="control-label">近一年购买额:</label>
|
|
|
- <form:select id ="payTotalYear" path="payTotalYear" class="input-medium">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:option value="1" label="小于1万"/>
|
|
|
- <form:option value="2" label="1万至10万"/>
|
|
|
- <form:option value="3" label="10万至100万"/>
|
|
|
- <form:option value="4" label="大于100万"/>
|
|
|
- </form:select>
|
|
|
<div class="item">
|
|
|
- <label>自定义统计时间:</label>
|
|
|
- <form:input id="customStartTime" path="customStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${customStartTime}"
|
|
|
+ <label class="control-label">联系人身份:</label>
|
|
|
+ <form:select path="linkManIdentity" class="input-medium">
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
+ <form:option value="1" label="老板"/>
|
|
|
+ <form:option value="2" label="采购"/>
|
|
|
+ <form:option value="3" label="运营"/>
|
|
|
+ <form:option value="4" label="其他"/>
|
|
|
+ </form:select>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>注册时间:</label>
|
|
|
+ <form:input path="registerStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerStartTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ -
|
|
|
+ <form:input path="registerEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${registerEndTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>最近访问时间:</label>
|
|
|
+ <form:input path="behaviorStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${behaviorStartTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ -
|
|
|
+ <form:input path="behaviorEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${behaviorEndTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <label>最近咨询时间:</label>
|
|
|
+ <form:input path="recentlyStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${recentlyStartTime}"
|
|
|
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
-
|
|
|
- <form:input id="customEndTime" path="customEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${customEndTime}"
|
|
|
+ <form:input path="recentlyEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${recentlyEndTime}"
|
|
|
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
</div>
|
|
|
- <label class="control-label">总购买额:</label>
|
|
|
- <form:select id="payTotal" path="payTotal" class="input-medium">
|
|
|
- <form:option value="" label="请选择"/>
|
|
|
- <form:option value="1" label="小于1万"/>
|
|
|
- <form:option value="2" label="1万至10万"/>
|
|
|
- <form:option value="3" label="10万至100万"/>
|
|
|
- <form:option value="4" label="大于100万"/>
|
|
|
- </form:select>
|
|
|
+ <div class="item">
|
|
|
+ <label>最近下单时间:</label>
|
|
|
+ <form:input path="orderStartTime" type="text" maxlength="20" class="input-mini Wdate" value="${orderStartTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ -
|
|
|
+ <form:input path="orderEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${orderEndTime}"
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
+ </div>
|
|
|
+ <div class="item">
|
|
|
+ <input id="btnSubmit" class="btn btn-primary" type="button" value="查询"/>
|
|
|
+ <input id="export" class="btn btn-primary" type="button" value="导出"/>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</form:form>
|
|
|
<sys:message content="${message}"/>
|
|
|
+<div>
|
|
|
+ <ul id="activeClub">
|
|
|
+ <li class="icon-activeClub" value="0">活跃机构</li>
|
|
|
+ <li class="icon-ubActiveClub" value="1">不活跃机构</li>
|
|
|
+ </ul>
|
|
|
+</div>
|
|
|
<table id="contentTable" class="table table-striped table-bordered table-condensed">
|
|
|
<thead>
|
|
|
<tr>
|
|
@@ -173,18 +186,19 @@
|
|
|
<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/statisticsList?orderByType=0" class="icon icon-up"></a>
|
|
|
- <a href="${ctx}/new/user/agency/statisticsList?orderByType=1" class="icon icon-down"></a>
|
|
|
+ <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>
|
|
|
<th>最近下单时间</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
@@ -213,6 +227,17 @@
|
|
|
<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 != ''}">
|
|
@@ -240,30 +265,44 @@
|
|
|
</c:if>
|
|
|
</td>
|
|
|
<td>
|
|
|
- <c:if test="${clubList.addTime != null || clubList.addTime != '' || clubList.addTime ne null}">
|
|
|
- ${clubList.addTime}
|
|
|
+ <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.addTime == null || clubList.addTime == '' || clubList.addTime eq null}">
|
|
|
+ <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 class="td-none">${clubList.orderCountMonth}</td>
|
|
|
- <td class="td-none">${clubList.orderCountYear}</td>
|
|
|
- <td class="td-none">${clubList.payTotalMonth}</td>
|
|
|
- <td class="td-none">${clubList.payTotalYear}</td>
|
|
|
- <td class="td-none">${clubList.payTotal}</td>
|
|
|
- <td class="td-none">
|
|
|
- <c:if test="${clubList.pageLabel ne null}">
|
|
|
- ${clubList.pageLabel}
|
|
|
+ <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.pageLabel eq null}">
|
|
|
+ <c:if test="${clubList.lastOrderTime eq null}">
|
|
|
---
|
|
|
</c:if>
|
|
|
</td>
|
|
|
- <td class="td-none">${clubList.lastOrderTime}</td>
|
|
|
<td>
|
|
|
- <a href="${ctx}/new/user/agency/clubPortrait?clubID=${clubList.clubID}&clubName=${clubList.name}&dateType=0&type=4">查看详情</a>
|
|
|
+ <a href="${ctx}/new/user/agency/clubPortrait?clubID=${clubList.clubID}&clubName=${clubList.name}&dateType=0&type=4">机构画像</a>
|
|
|
+ <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>
|
|
|
</td>
|
|
|
</tr>
|
|
|
</c:forEach>
|
|
@@ -277,15 +316,98 @@
|
|
|
$('#searchForm').submit();
|
|
|
return false;
|
|
|
}
|
|
|
+ // 活跃、不活跃查询
|
|
|
+ $('#activeClub > li').click(function () {
|
|
|
+ console.log($(this).val());
|
|
|
+ const activeStatus = $(this).val() * 1;
|
|
|
+ $('#activeStatus').val(activeStatus);
|
|
|
+ console.log('---------', $('#activeStatus').val());
|
|
|
+ if (activeStatus === 0) {
|
|
|
+ // 活跃机构
|
|
|
+ $('.icon-activeClub').attr("class", "redAddClass")
|
|
|
+ } else {
|
|
|
+ // 不活跃机构
|
|
|
+ $('.icon-ubActiveClub').attr("class", "redAddClass")
|
|
|
+ }
|
|
|
+ $('#searchForm').submit();
|
|
|
+ })
|
|
|
+
|
|
|
+ function goNewBack(type, addTime, userIdentity, name, linkMan, clubId) {
|
|
|
+ // 跳转到新后台查询数据 type: 1 访问记录 2:咨询记录
|
|
|
+ const date = getZeroTimeToday();
|
|
|
+ console.log(date)
|
|
|
+ const addDateTime = stringToDate(addTime.toString());
|
|
|
+ console.log('addDateTime----', addDateTime);
|
|
|
+ if (type === 1) {
|
|
|
+ // 若是今天以前注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【过往数据】页面,
|
|
|
+ // 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果;
|
|
|
+ // 若是今天注册的机构,点击访问记录,跳转到新后台【用户行为记录】-【今日数据】页面,
|
|
|
+ // 页面展示以公司名称(个人机构以联系人当公司名称)筛选后的结果。
|
|
|
+ if (addDateTime < date) {
|
|
|
+ // 过往数据
|
|
|
+ if (userIdentity === 4) {
|
|
|
+ $.get("${ctx}/jump/link", function (data) {
|
|
|
+ link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
|
|
|
+ window.open(link, "_blank");
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ $.get("${ctx}/jump/link", function (data) {
|
|
|
+ link = "https://manager.caimei365.com/#/user/record-list?type=second&corporateName=" + name + "&clubId=" + clubId + "&token=" + data;
|
|
|
+ window.open(link, "_blank");
|
|
|
+ });
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // 今日数据
|
|
|
+ if (userIdentity === 4) {
|
|
|
+ $.get("${ctx}/jump/link", function (data) {
|
|
|
+ link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
|
|
|
+ window.open(link, "_blank");
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ $.get("${ctx}/jump/link", function (data) {
|
|
|
+ link = "https://manager.caimei365.com/#/user/record-list?type=first&corporateName=" + name + "&clubId=" + clubId + "&token=" + data;
|
|
|
+ window.open(link, "_blank");
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // 点击咨询记录,跳转到新后台【用户咨询记录汇总】页面,页面展示以机构名称筛选后的结果
|
|
|
+ if (userIdentity === 4) {
|
|
|
+ $.get("${ctx}/jump/link", function (data) {
|
|
|
+ link = "https://manager.caimei365.com/#/user/consult/list?clubName=" + linkMan + "&clubId=" + clubId + "&token=" + data;
|
|
|
+ window.open(link, "_blank");
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ $.get("${ctx}/jump/link", function (data) {
|
|
|
+ link = "https://manager.caimei365.com/#/user/consult/list?clubName=" + name + "&clubId=" + clubId + "&token=" + data;
|
|
|
+ window.open(link, "_blank");
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
$(function () {
|
|
|
+ console.log('$("#orderByType").val()', $("#orderByType").val());
|
|
|
+ console.log('$("#activeStatus").val()', $("#activeStatus").val());
|
|
|
+ console.log('----****-----', $('#activeStatus').val());
|
|
|
+ const activeStatus = $('#activeStatus').val() * 1;
|
|
|
+ if (activeStatus === 0) {
|
|
|
+ // 活跃机构
|
|
|
+ $('.icon-activeClub').attr("class", "redAddClass")
|
|
|
+ } else {
|
|
|
+ // 不活跃机构
|
|
|
+ $('.icon-ubActiveClub').attr("class", "redAddClass")
|
|
|
+ }
|
|
|
const typeMap = {
|
|
|
1: {
|
|
|
- val: $("#orderCountMonthType").val() ? $("#orderCountMonthType").val() * 1 : null,
|
|
|
+ val: $("#orderByType").val() ? $("#orderByType").val() * 1 : null,
|
|
|
dom: $('#sort-button1')
|
|
|
},
|
|
|
2: {
|
|
|
- val: $("#orderCountYearType").val() ? $("#orderCountYearType").val() * 1 : null,
|
|
|
- dom: $('#sort-button2')
|
|
|
+ val: $("#activeStatus").val() ? $("#activeStatus").val() * 1 : null,
|
|
|
+ dom: $('#activeClub')
|
|
|
}
|
|
|
}
|
|
|
const setActiveFn = function (type,num){
|
|
@@ -295,24 +417,23 @@
|
|
|
typeMap[num].dom.find('.icon-down').addClass('active');
|
|
|
}
|
|
|
}
|
|
|
+ const setActiveClub = function (type,num){
|
|
|
+ if( type === 0){
|
|
|
+ console.log('***************');
|
|
|
+ typeMap[num].dom.find('.icon-activeClub').addClass('active').addClass('redAddClss');
|
|
|
+ }else{
|
|
|
+ typeMap[num].dom.find('.icon-unActiveClub').addClass('active').addClass('redAddClss');
|
|
|
+ }
|
|
|
+ }
|
|
|
// 最近访问时间 1 降序 2 升序
|
|
|
if(typeMap[1].val || typeMap[1].val === 0) {
|
|
|
setActiveFn(typeMap[1].val,1)
|
|
|
}
|
|
|
- // 最近访问时间 1 降序 2 升序
|
|
|
+ // 活跃、不活跃机构
|
|
|
if(typeMap[2].val || typeMap[2].val === 0) {
|
|
|
- setActiveFn(typeMap[2].val,2)
|
|
|
+ setActiveClub(typeMap[2].val,2)
|
|
|
}
|
|
|
- $("#export").click(function () {
|
|
|
- var formData = $('#searchForm').serialize()
|
|
|
- window.location.href= "${ctx}/new/user/agency/club/export?"+formData
|
|
|
- })
|
|
|
$('#btnSubmit').click(function () {
|
|
|
- const payTotalMonth = $('#payTotalMonth').val();
|
|
|
- const payTotalYear = $('#payTotalYear').val();
|
|
|
- const customStartTime = $('#customStartTime').val();
|
|
|
- const customEndTime = $('#customEndTime').val();
|
|
|
- const payTotal = $('#payTotal').val();
|
|
|
$('#searchForm').submit();
|
|
|
})
|
|
|
})
|