...
|
...
|
@@ -114,25 +114,6 @@ if ($('.banner-swiper').find('li').size() > 1) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
// single_image的轮播
|
|
|
|
|
|
|
|
|
$('.banner-center-swiper').each(function() {
|
|
|
if ($(this).find('li').size() > 1) {
|
|
|
new Swiper('.banner-center-swiper', {
|
|
|
loop: true,
|
|
|
autoplay: 3000,
|
|
|
autoplayDisableOnInteraction: false,
|
|
|
paginationClickable: true,
|
|
|
slideElement: 'li',
|
|
|
pagination: '.banner-center .pagination-inner',
|
|
|
});
|
|
|
} else {
|
|
|
$(this).unbind();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
|
|
|
// 店铺推荐人数和收藏初始查询
|
|
|
var checkShop = function() {
|
|
|
var shopIds = [];
|
...
|
...
|
@@ -189,6 +170,22 @@ var saleTime = function(elem, offsetTime) { |
|
|
};
|
|
|
|
|
|
function ajaxResource() {
|
|
|
|
|
|
$('.banner-center-swiper').each(function() {
|
|
|
if ($(this).find('li').size() > 1) {
|
|
|
new Swiper('.banner-center-swiper', {
|
|
|
loop: true,
|
|
|
autoplay: 3000,
|
|
|
autoplayDisableOnInteraction: false,
|
|
|
paginationClickable: true,
|
|
|
slideElement: 'li',
|
|
|
pagination: '.banner-center .pagination-inner',
|
|
|
});
|
|
|
} else {
|
|
|
$(this).unbind();
|
|
|
}
|
|
|
});
|
|
|
|
|
|
// 热门品牌滑动
|
|
|
if ($('.brands-swiper').find('li').length > 1) {
|
|
|
new Swiper('.brands-swiper', {
|
...
|
...
|
|