|
@@ -103,6 +103,10 @@
|
|
|
text-overflow: ellipsis;
|
|
|
width: 207px;
|
|
|
}
|
|
|
+
|
|
|
+ .btn-active {
|
|
|
+ color: #0C67B0;
|
|
|
+ }
|
|
|
</style>
|
|
|
</head>
|
|
|
|
|
@@ -137,8 +141,8 @@
|
|
|
<div style="width: 65%; margin: auto;">
|
|
|
<div class="layui-row">
|
|
|
<div class="layui-col-xs2">
|
|
|
- <div class="serach-title" style="margin-bottom:20px;cursor: pointer;" id="department">发布部门</div>
|
|
|
- <div class="serach-title" id="hotareas" style="cursor: pointer;">热门领域</div>
|
|
|
+ <div class="serach-title btn-active dept-btn" style="margin-bottom:20px;cursor: pointer;" id="department">发布部门</div>
|
|
|
+ <div class="serach-title area-btn" id="hotareas" style="cursor: pointer;">热门领域</div>
|
|
|
</div>
|
|
|
<div class="layui-col-xs10" id="searchDeptBox">
|
|
|
<div class="search-content" id="searchDept"></div>
|
|
@@ -434,6 +438,8 @@
|
|
|
|
|
|
var content = data[i]['_source']['content'];
|
|
|
var title = data[i]['_source']['title'];
|
|
|
+ var tag = data[i]['_source']['domain_type'];
|
|
|
+ tag = tag ? tag : ''
|
|
|
if (data[i]['_source']['title.keyword']) {
|
|
|
title = data[i]['_source']['title.keyword'];
|
|
|
}
|
|
@@ -456,7 +462,7 @@
|
|
|
}
|
|
|
|
|
|
html += '<div class="text_one" onclick="openWindow(\'' + data[i]['_source'].id + '\')">'
|
|
|
- + '<p>' + title + '</p>'
|
|
|
+ + '<p>' + title + '<span style="margin-left:30px">' + tag + '</span>' + '</p>'
|
|
|
+ '<p>'
|
|
|
+ tcontent
|
|
|
+ '</p>'
|
|
@@ -491,6 +497,9 @@
|
|
|
isDept = true
|
|
|
$('.search-content').children().removeClass('search-item-active')
|
|
|
$('.allItem').addClass('search-item-active')
|
|
|
+
|
|
|
+ $('.area-btn').removeClass('btn-active')
|
|
|
+ $('.dept-btn').addClass('btn-active')
|
|
|
openSearch()
|
|
|
}
|
|
|
)
|
|
@@ -503,6 +512,8 @@
|
|
|
isDept = false
|
|
|
$('.search-content').children().removeClass('search-item-active')
|
|
|
$('.allItem').addClass('search-item-active')
|
|
|
+ $('.dept-btn').removeClass('btn-active')
|
|
|
+ $('.area-btn').addClass('btn-active')
|
|
|
openSearch()
|
|
|
}
|
|
|
)
|