|
@@ -246,15 +246,20 @@ define(['$', 'template', 'IScroll', 'product', 'user', 'native', 'config', 'addr
|
|
|
setTimeout(function () {
|
|
|
pageData.scroll = new IScroll('#homeScroll');
|
|
|
var swiper = new Swiper('.swiper-container', {
|
|
|
- pagination: '.swiper-pagination',
|
|
|
- nextButton: '.swiper-button-next',
|
|
|
- prevButton: '.swiper-button-prev',
|
|
|
- paginationClickable: true,
|
|
|
+ /* paginationClickable: true,
|
|
|
+ pagination: '.pagination',
|
|
|
spaceBetween: 30,
|
|
|
centeredSlides: true,
|
|
|
autoplay: 1500,
|
|
|
+ autoplayDisableOnInteraction: false*/
|
|
|
+ pagination: '.pagination',
|
|
|
+ loop : true,
|
|
|
+ paginationClickable: true,
|
|
|
+ centeredSlides: true,
|
|
|
+ autoplay: 1500,
|
|
|
autoplayDisableOnInteraction: false
|
|
|
});
|
|
|
+ $('.swiper-container').height($('.swiper-container img').height());
|
|
|
}, 200);
|
|
|
|
|
|
// 目前的作用只是供后端判断,该用户是否为新用户,所以没有回调。
|