Authored by zhangxiaoru

editorial

... ... @@ -18,11 +18,12 @@ var $commentList = $commentArea.find('.comments-wrap'),
$wordCountTip = $('#word-count-tip'),
_alert = dialog.Alert,
tag = $('#tags').find('li').length,
len = $('.goods').find('.good-info').length / 4,
leng = $('.goods').find('.good-info').length / 4,
pag = 0;
require('../plugins/share');
//require('yoho-unslider');
// require('yoho-unslider');
$('#prise-btn').click(function() {
var prising = false,
... ... @@ -203,27 +204,29 @@ if ($('.goods').find('.good-info').length === 0) {
$('.right').click(function() {
pag = pag + 1;
if (pag === len -1 ) {
if (pag === leng - 1) {
$('.right').addClass('hide');
}
if (pag !== 0 ) {
if (pag !== 0) {
$('.left').removeClass('hide');
}
$('.goods').animate({left: '+=' + '-930px'});
})
$('.goods').animate({left: '+=-930px'});
});
$('.left').click(function() {
var $goods = $('.goods');
pag = pag - 1;
if (pag === 0) {
$('.left').addClass('hide');
}
if(pag !== len -1) {
if (pag !== leng - 1) {
$('.right').removeClass('hide');
}
$(".goods").animate({left: '+=' + '930px'});
})
$goods.animate({left: '+=930px'});
});
... ...