Authored by lore-w

商品列表页增加下拉效果

... ... @@ -85,9 +85,6 @@ module.exports = function($o, rowWidth) {
offsetL = $target.offset().left;
offsetR = winW - (offsetL + targetWidth);
console.log($target.offset().left);
pMouseHover.fire({
type: 'MouseEnter',
target: $target,
... ...
... ... @@ -137,9 +137,10 @@ exports.init = function(num) {
// 左侧导航
$productListNav.click(function() {
if ($(this).hasClass('active')) {
$(this).removeClass('active');
$(this).find('.sort-child-list').stop(true, true).slideUp();
} else {
$(this).addClass('active');
$(this).find('.sort-child-list').stop(true, true).slideDown();
}
$(this).toggleClass('active');
});
};
\ No newline at end of file
... ...
... ... @@ -61,9 +61,9 @@
}
}
}
ul.sort-child-list {
/*ul.sort-child-list {
display: block;
}
}*/
}
}
... ...