|
@@ -300,12 +300,12 @@ define(['$', 'template', 'IScroll', 'product', 'user', 'native', 'config', 'addr
|
|
setTimeout(function () {
|
|
setTimeout(function () {
|
|
pageData.scroll = new IScroll('#homeScroll');
|
|
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);
|
|
}, 750);
|
|
- /*setTimeout(function () {
|
|
|
|
|
|
+ setTimeout(function () {
|
|
var swiper = new Swiper('.swiper-container', {
|
|
var swiper = new Swiper('.swiper-container', {
|
|
pagination: '.pagination',
|
|
pagination: '.pagination',
|
|
loop: true,
|
|
loop: true,
|
|
@@ -314,7 +314,7 @@ define(['$', 'template', 'IScroll', 'product', 'user', 'native', 'config', 'addr
|
|
autoplay: 5000,
|
|
autoplay: 5000,
|
|
autoplayDisableOnInteraction: false
|
|
autoplayDisableOnInteraction: false
|
|
});
|
|
});
|
|
- }, 700);*/
|
|
|
|
|
|
+ }, 700);
|
|
setInterval(function () {
|
|
setInterval(function () {
|
|
if($('.swiper-wrapper').height()<=30){
|
|
if($('.swiper-wrapper').height()<=30){
|
|
$('.swiper-wrapper').height($('.swiper-slide img').height());
|
|
$('.swiper-wrapper').height($('.swiper-slide img').height());
|