|
@@ -300,20 +300,20 @@ define(['$', 'template', 'IScroll', 'product', 'user', 'native', 'config', 'addr
|
|
|
setTimeout(function () {
|
|
|
pageData.scroll = new IScroll('#homeScroll');
|
|
|
/*设置页面高度*/
|
|
|
- // var homeBox = $('.home-box');
|
|
|
- // var boxAlignCenter = $('.box-align-center').height();
|
|
|
- // var preventScroll = $('.prevent-scroll').height();
|
|
|
- // homeBox.height(boxAlignCenter * 4 + preventScroll);
|
|
|
+ var homeBox = $('.home-box');
|
|
|
+ var boxAlignCenter = $('.box-align-center').height();
|
|
|
+ var preventScroll = $('.prevent-scroll').height();
|
|
|
+ homeBox.height(boxAlignCenter * 4 + preventScroll);
|
|
|
}, 750);
|
|
|
setTimeout(function () {
|
|
|
- // var swiper = new Swiper('.swiper-container', {
|
|
|
- // pagination: '.pagination',
|
|
|
- // loop: true,
|
|
|
- // paginationClickable: true,
|
|
|
- // centeredSlides: true,
|
|
|
- // autoplay: 5000,
|
|
|
- // autoplayDisableOnInteraction: false
|
|
|
- // });
|
|
|
+ var swiper = new Swiper('.swiper-container', {
|
|
|
+ pagination: '.pagination',
|
|
|
+ loop: true,
|
|
|
+ paginationClickable: true,
|
|
|
+ centeredSlides: true,
|
|
|
+ autoplay: 5000,
|
|
|
+ autoplayDisableOnInteraction: false
|
|
|
+ });
|
|
|
}, 700);
|
|
|
setInterval(function () {
|
|
|
if($('.swiper-wrapper').height()<=30){
|