Showing
1 changed file
with
2 additions
and
6 deletions
@@ -186,12 +186,8 @@ $goodInfoMain.on('click', '.col-btn', function() { | @@ -186,12 +186,8 @@ $goodInfoMain.on('click', '.col-btn', function() { | ||
186 | }); | 186 | }); |
187 | 187 | ||
188 | // 左侧导航 | 188 | // 左侧导航 |
189 | -$productListNav.click(function(event) { | ||
190 | - var $this = $(this); | ||
191 | - | ||
192 | - if (!$this.hasClass('product-list-nav')) { | ||
193 | - return; | ||
194 | - } | 189 | +$productListNav.find('h3').click(function(event) { |
190 | + var $this = $(this).closest('.product-list-nav'); | ||
195 | 191 | ||
196 | if ($this.hasClass('active')) { | 192 | if ($this.hasClass('active')) { |
197 | 193 |
-
Please register or login to post a comment