all-goods-filter-handle
Showing
1 changed file
with
3 additions
and
0 deletions
@@ -8,11 +8,14 @@ let Tab = require('../plugin/tab'); | @@ -8,11 +8,14 @@ let Tab = require('../plugin/tab'); | ||
8 | 8 | ||
9 | let $filterBox = $('.filter-box'); | 9 | let $filterBox = $('.filter-box'); |
10 | let $shopCategory = $('#shop-category'); | 10 | let $shopCategory = $('#shop-category'); |
11 | +let $listNav = $('#list-nav'); // 筛选项列表 | ||
11 | 12 | ||
12 | Tab.prototype.home = function() { // 隐藏筛选 TAB | 13 | Tab.prototype.home = function() { // 隐藏筛选 TAB |
13 | $filterBox.css('display', 'none'); | 14 | $filterBox.css('display', 'none'); |
14 | }; | 15 | }; |
15 | Tab.prototype.getallgoods = function() { // 显示筛选 TAB | 16 | Tab.prototype.getallgoods = function() { // 显示筛选 TAB |
17 | + $listNav.find('li').removeClass('active'); | ||
18 | + $listNav.find('.default').addClass('active'); | ||
16 | $filterBox.css('display', 'block'); | 19 | $filterBox.css('display', 'block'); |
17 | allProduct.getGoodsList({type: 'default', page: 1}); | 20 | allProduct.getGoodsList({type: 'default', page: 1}); |
18 | }; | 21 | }; |
-
Please register or login to post a comment