...
|
...
|
@@ -77,19 +77,31 @@ define('yohood', function(require, exports) { |
|
|
prev: '.limited-slide-prev',
|
|
|
next: '.limited-slide-next',
|
|
|
auto: false,
|
|
|
transitionEnd: function(index, element) {
|
|
|
limitedPrev.removeClass('disable');
|
|
|
limitedNext.removeClass('disable');
|
|
|
if (index === swiperLen - 1) {
|
|
|
limitedNext.addClass('disable');
|
|
|
};
|
|
|
if (index === 0) {
|
|
|
limitedPrev.addClass('disable');
|
|
|
};
|
|
|
}
|
|
|
callback: function(index, element) {
|
|
|
limitedPrev.removeClass('disable');
|
|
|
limitedNext.removeClass('disable');
|
|
|
console.log(index);
|
|
|
console.log(swiperLen);
|
|
|
if (index === swiperLen - 1) {
|
|
|
limitedNext.addClass('disable');
|
|
|
};
|
|
|
if (index === 0) {
|
|
|
limitedPrev.addClass('disable');
|
|
|
};
|
|
|
}
|
|
|
/*touchstart: function() {
|
|
|
limitedPrev.removeClass('disable');
|
|
|
limitedNext.removeClass('disable');
|
|
|
if (index === swiperLen - 1) {
|
|
|
limitedNext.addClass('disable');
|
|
|
};
|
|
|
if (index === 0) {
|
|
|
limitedPrev.addClass('disable');
|
|
|
};
|
|
|
}*/
|
|
|
});
|
|
|
limitedPrev.addClass('disable');
|
|
|
limitedNext.on('click', function() {
|
|
|
/*limitedNext.on('click', function() {
|
|
|
limitedPrev.removeClass('disable');
|
|
|
if (goodsSwiper.getPos() === swiperLen - 1) {
|
|
|
$(this).addClass('disable');
|
...
|
...
|
@@ -100,7 +112,7 @@ define('yohood', function(require, exports) { |
|
|
if (goodsSwiper.getPos() === 0) {
|
|
|
$(this).addClass('disable');
|
|
|
};
|
|
|
});
|
|
|
});*/
|
|
|
}
|
|
|
//获取推荐商品
|
|
|
function getRecommendProduct(obj, limit) {
|
...
|
...
|
|