Showing
1 changed file
with
6 additions
and
5 deletions
@@ -187,19 +187,20 @@ $goodInfoMain.on('click', '.col-btn', function() { | @@ -187,19 +187,20 @@ $goodInfoMain.on('click', '.col-btn', function() { | ||
187 | 187 | ||
188 | // 左侧导航 | 188 | // 左侧导航 |
189 | $productListNav.click(function(event) { | 189 | $productListNav.click(function(event) { |
190 | + var $this = $(this); | ||
190 | 191 | ||
191 | - if (!$(event.target).hasClass('product-list-nav')) { | 192 | + if (!$this.hasClass('product-list-nav')) { |
192 | return; | 193 | return; |
193 | } | 194 | } |
194 | 195 | ||
195 | - if ($(this).hasClass('active')) { | 196 | + if ($this.hasClass('active')) { |
196 | 197 | ||
197 | - $(this).find('.sort-child-list').stop(true, true).slideUp(); | 198 | + $this.find('.sort-child-list').stop(true, true).slideUp(); |
198 | 199 | ||
199 | } else { | 200 | } else { |
200 | 201 | ||
201 | - $(this).find('.sort-child-list').stop(true, true).slideDown(); | 202 | + $this.find('.sort-child-list').stop(true, true).slideDown(); |
202 | } | 203 | } |
203 | 204 | ||
204 | - $(this).toggleClass('active'); | 205 | + $this.toggleClass('active'); |
205 | }); | 206 | }); |
-
Please register or login to post a comment