Showing
2 changed files
with
7 additions
and
3 deletions
@@ -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 | +}); |
-
Please register or login to post a comment