...
|
...
|
@@ -143,22 +143,22 @@ exports.init = function(num) { |
|
|
display: 'none'
|
|
|
});
|
|
|
});
|
|
|
};
|
|
|
|
|
|
//鼠标放在颜色列表上效果
|
|
|
$(document).on('hover', '.good-select-color li', function() {
|
|
|
//鼠标放在颜色列表上效果
|
|
|
$(document).on('hover', '.good-select-color li', function() {
|
|
|
var coverImg = $(this).find('img').attr('data-cover'),
|
|
|
$coverImg = $(this).closest('.good-item-wrapper').find('.good-detail-img').find('img');
|
|
|
|
|
|
$coverImg.attr('src', coverImg);
|
|
|
});
|
|
|
});
|
|
|
|
|
|
// 左侧导航
|
|
|
$productListNav.click(function() {
|
|
|
// 左侧导航
|
|
|
$productListNav.click(function() {
|
|
|
if ($(this).hasClass('active')) {
|
|
|
$(this).find('.sort-child-list').stop(true, true).slideUp();
|
|
|
} else {
|
|
|
$(this).find('.sort-child-list').stop(true, true).slideDown();
|
|
|
}
|
|
|
$(this).toggleClass('active');
|
|
|
});
|
|
|
}; |
|
|
\ No newline at end of file |
|
|
}); |
|
|
\ No newline at end of file |
...
|
...
|
|