...
|
...
|
@@ -8,11 +8,14 @@ let Tab = require('../plugin/tab'); |
|
|
|
|
|
let $filterBox = $('.filter-box');
|
|
|
let $shopCategory = $('#shop-category');
|
|
|
let $listNav = $('#list-nav'); // 筛选项列表
|
|
|
|
|
|
Tab.prototype.home = function() { // 隐藏筛选 TAB
|
|
|
$filterBox.css('display', 'none');
|
|
|
};
|
|
|
Tab.prototype.getallgoods = function() { // 显示筛选 TAB
|
|
|
$listNav.find('li').removeClass('active');
|
|
|
$listNav.find('.default').addClass('active');
|
|
|
$filterBox.css('display', 'block');
|
|
|
allProduct.getGoodsList({type: 'default', page: 1});
|
|
|
};
|
...
|
...
|
|