...
|
...
|
@@ -203,35 +203,35 @@ if ($('.collocation').find('.good-info').length === 0) { |
|
|
if ($('.goods').find('.good-info').length === 0) {
|
|
|
$('.related-group').hide();
|
|
|
} else if ($('.goods').find('.good-info').length < 5) {
|
|
|
$('.left').hide();
|
|
|
$('.right').hide();
|
|
|
$('.btn-left').hide();
|
|
|
$('.btn-right').hide();
|
|
|
}
|
|
|
|
|
|
$('.right').click(function() {
|
|
|
$('.btn-right').click(function() {
|
|
|
pag = pag + 1;
|
|
|
|
|
|
if (pag === leng - 1) {
|
|
|
$('.right').addClass('hide');
|
|
|
$('.btn-right').addClass('hide');
|
|
|
}
|
|
|
|
|
|
if (pag !== 0) {
|
|
|
$('.left').removeClass('hide');
|
|
|
$('.btn-left').removeClass('hide');
|
|
|
}
|
|
|
|
|
|
$('.goods').animate({left: '+=-930px'});
|
|
|
});
|
|
|
|
|
|
$('.left').click(function() {
|
|
|
$('.btn-left').click(function() {
|
|
|
var $goods = $('.goods');
|
|
|
|
|
|
pag = pag - 1;
|
|
|
|
|
|
if (pag === 0) {
|
|
|
$('.left').addClass('hide');
|
|
|
$('.btn-left').addClass('hide');
|
|
|
}
|
|
|
|
|
|
if (pag !== leng - 1) {
|
|
|
$('.right').removeClass('hide');
|
|
|
$('.btn-right').removeClass('hide');
|
|
|
}
|
|
|
|
|
|
$goods.animate({left: '+=930px'});
|
...
|
...
|
|