|
@@ -0,0 +1,448 @@
|
|
|
|
+<%@ 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">
|
|
|
|
+ .reg-row .new-tag.active{border:1px solid #de5801}
|
|
|
|
+ .reg-row{margin-bottom:20px}
|
|
|
|
+ .reg-row .reg-label{display:inline-block;width:120px;text-align:right;font-size:13px}
|
|
|
|
+ .the-oradio{display:inline-block;vertical-align:top}
|
|
|
|
+ .the-oradio div{width:85px;display:inline-block;font-size:12px;color:#666}
|
|
|
|
+ .the-oradio div input[type="radio"]{width:17px;height:17px;margin-right:5px;vertical-align:text-top}
|
|
|
|
+ .med-option{display:block;margin:10px 0 0 125px}
|
|
|
|
+ .reg-row .business-license{position:relative;display:inline-block;width:166px;height:123px;border-radius:6px;margin:18px 0 0 125px}
|
|
|
|
+ #medicalPracticeLicenseImgPreview{display:inline-block}
|
|
|
|
+ .qualification{margin-top:20px}
|
|
|
|
+ .reg-row .tags-area{display:inline-block;width:420px}
|
|
|
|
+ .reg-row .new-tag{display:inline-block;width:70px;border:1px solid #e5e5e5;border-radius:6px;padding:5px;margin-right:14px;margin-bottom:14px;text-align:center;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}
|
|
|
|
+ .reg-row .tags-operate{margin-left:125px}
|
|
|
|
+ .reg-row .reg-input{width:336px;height:32px;padding:0 8px;margin-right:20px;border:1px solid #dcdcdc;border-radius:6px}
|
|
|
|
+ .reg-row .tags-operate .tag-input{width:159px;margin-right:13px;display:none;vertical-align:top}
|
|
|
|
+ .reg-row .tags-operate .tag-add{line-height:20px;vertical-align:middle;margin-bottom:0;vertical-align:top}
|
|
|
|
+ .reg-row .tags-area{vertical-align:top}
|
|
|
|
+ .tag-add{display:none}
|
|
|
|
+ .table th{text-align:center}
|
|
|
|
+ .table td{text-align:center}
|
|
|
|
+ .modal{width:700px;margin-left:-350px}
|
|
|
|
+ #myModal{display:none}
|
|
|
|
+ .modal-body{max-height:300px !important}
|
|
|
|
+ .modal.fade.in{top:0 !important}
|
|
|
|
+ #btnSubmit{margin-left:20px}
|
|
|
|
+ .flex-wrap .item{margin-right:20px}
|
|
|
|
+ #auditBox{padding:20px;line-height:30px}
|
|
|
|
+ #auditBox .bd-row{display:flex;margin-bottom:15px}
|
|
|
|
+ #auditBox .bd-row > span{display:inline-block;width:60px}
|
|
|
|
+ #auditBox .auditCheckBox{width:250px}
|
|
|
|
+ #auditBox .auditCheckBox label{margin:0 5px 5px 0}
|
|
|
|
+ #auditBox .auditCheckBox input{display:none}
|
|
|
|
+ #auditBox .auditCheckBox input + span{display:inline-block;line-height:24px;padding:0 12px;border:1px solid #666;border-radius:5px}
|
|
|
|
+ #auditBox .auditCheckBox input:checked + span{background-color:#E6633A}
|
|
|
|
+ #alertModal{width:300px;height:200px;border:1px solid #ebebeb;border-radius:10px;position:fixed;top:0;bottom:0;left:0;right:0;margin:auto;background:#FFFFFF;display:none}
|
|
|
|
+ #alertModal .title{height:50px;line-height:50px;font-size:14px;font-weight:bold;text-align:center;position:relative;border-bottom:1px solid #EBEBEB}
|
|
|
|
+ #alertModal .close{width:50px;height:50px;display:block;position:absolute;right:0;top:0;line-height:50px;color:#000;font-weight:bold;text-align:center;font-style:normal;font-size:18px}
|
|
|
|
+ #alertModal .alert-content{width:260px;height:60px;padding:20px}
|
|
|
|
+ #alertModal .alertModal-btn{width:260px;height:49px;padding:0 20px;border-top:1px solid #EBEBEB}
|
|
|
|
+ #alertModal .alertModal-btn button{float:right;margin:5px}
|
|
|
|
+ .acticer_span{display: inline-block;width: 14px;height: 14px;border-radius: 50%;box-sizing: border-box;border: 1px solid #999999;text-align: center;color: #333333;font-size: 12px;line-height: 14px;float: none;margin-left: 3px;}
|
|
|
|
+ /*#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 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">
|
|
|
|
+ <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
|
|
|
|
+ <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
|
|
|
|
+ <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>机构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="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>
|
|
|
|
+ <div class="item">
|
|
|
|
+ <label>机构级别:</label>
|
|
|
|
+ <form:select path="userIdentity" class="input-medium">
|
|
|
|
+ <form:option value="" label="请选择"/>
|
|
|
|
+ <form:option value="4" label="个人机构"/>
|
|
|
|
+ <form:option value="2" label="资质机构"/>
|
|
|
|
+ <form:option value="8" label="超级会员"/>
|
|
|
|
+ </form:select>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="item">
|
|
|
|
+ <label> 状态:</label>
|
|
|
|
+ <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>
|
|
|
|
+ <div class="item">
|
|
|
|
+ <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 path="recentlyEndTime" type="text" maxlength="20" class="input-mini Wdate" value="${recentlyEndTime}"
|
|
|
|
+ onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:false});"/>
|
|
|
|
+ </div>
|
|
|
|
+ <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>
|
|
|
|
+ <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>
|
|
|
|
+ <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>
|
|
|
|
+ <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>
|
|
|
|
+ <td>
|
|
|
|
+ <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>
|
|
|
|
+ </tbody>
|
|
|
|
+</table>
|
|
|
|
+<div class="pagination">${page}</div>
|
|
|
|
+<script type="text/javascript">
|
|
|
|
+ function page(n,s) {
|
|
|
|
+ $('#pageNo').val(n);
|
|
|
|
+ $('#pageSize').val(s);
|
|
|
|
+ $('#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 () {
|
|
|
|
+ const activeStatus = $('#activeStatus').val() * 1;
|
|
|
|
+ if (activeStatus === 0) {
|
|
|
|
+ // 活跃机构
|
|
|
|
+ $('.icon-activeClub').attr("class", "redAddClass")
|
|
|
|
+ } else {
|
|
|
|
+ // 不活跃机构
|
|
|
|
+ $('.icon-ubActiveClub').attr("class", "redAddClass")
|
|
|
|
+ }
|
|
|
|
+ const typeMap = {
|
|
|
|
+ 1: {
|
|
|
|
+ val: $("#orderByType").val() ? $("#orderByType").val() * 1 : null,
|
|
|
|
+ dom: $('#sort-button1')
|
|
|
|
+ },
|
|
|
|
+ 2: {
|
|
|
|
+ val: $("#activeStatus").val() ? $("#activeStatus").val() * 1 : null,
|
|
|
|
+ dom: $('#activeClub')
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ const setActiveFn = function (type,num){
|
|
|
|
+ if( type === 0){
|
|
|
|
+ typeMap[num].dom.find('.icon-up').addClass('active');
|
|
|
|
+ }else{
|
|
|
|
+ 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)
|
|
|
|
+ }
|
|
|
|
+ // 活跃、不活跃机构
|
|
|
|
+ if(typeMap[2].val || typeMap[2].val === 0) {
|
|
|
|
+ setActiveClub(typeMap[2].val,2)
|
|
|
|
+ }
|
|
|
|
+ $('#btnSubmit').click(function () {
|
|
|
|
+ $('#searchForm').submit();
|
|
|
|
+ })
|
|
|
|
+ })
|
|
|
|
+ function stringToDate(dateString) {
|
|
|
|
+ const parts = dateString.split(/[- :]/);
|
|
|
|
+ return new Date(parts[0], parts[1] - 1, parts[2], parts[3], parts[4], parts[5]);
|
|
|
|
+ }
|
|
|
|
+ // 当天0点0分时间
|
|
|
|
+ function getZeroTimeToday() {
|
|
|
|
+ const today = new Date();
|
|
|
|
+ return new Date(today.getFullYear(), today.getMonth(), today.getDate());
|
|
|
|
+ }
|
|
|
|
+</script>
|
|
|
|
+</body>
|
|
|
|
+</html>
|