Authored by 毕凯

搜索页面 筛选框优化

@@ -259,9 +259,12 @@ if ($udPrice.length > 0) { @@ -259,9 +259,12 @@ if ($udPrice.length > 0) {
259 259
260 //【高级选项】鼠标移入显示子项 260 //【高级选项】鼠标移入显示子项
261 $seniorAttrWrap.on('mouseenter', '.attr', function() { 261 $seniorAttrWrap.on('mouseenter', '.attr', function() {
262 - var index = $(this).addClass('hover').index(); 262 + var $this = $(this);
  263 + var index = $this.index();
  264 +
  265 + $this.addClass('hover').siblings().removeClass('hover');
263 266
264 - $seniorSubWrap.children('.senior-sub:eq(' + index + ')').removeClass('hide'); 267 + $seniorSubWrap.children('.senior-sub:eq(' + index + ')').removeClass('hide').siblings().addClass('hide');
265 }).on('mouseleave', '.attr', function() { 268 }).on('mouseleave', '.attr', function() {
266 var $this = $(this), 269 var $this = $(this),
267 index = $this.index(); 270 index = $this.index();
@@ -296,4 +299,4 @@ $('.senior-sub').on('click', '.multi-select', function() { @@ -296,4 +299,4 @@ $('.senior-sub').on('click', '.multi-select', function() {
296 clearTimeout(seniorHoverTime); 299 clearTimeout(seniorHoverTime);
297 }).on('mouseleave', function() { 300 }).on('mouseleave', function() {
298 hideSeniorPanel(); 301 hideSeniorPanel();
299 -});  
  302 +});
@@ -265,6 +265,7 @@ @@ -265,6 +265,7 @@
265 top: 39px; 265 top: 39px;
266 background: #fff; 266 background: #fff;
267 border: 1px solid #eaeceb; 267 border: 1px solid #eaeceb;
  268 + z-index: 1;
268 269
269 ul { 270 ul {
270 max-width: 950px; 271 max-width: 950px;