Authored by ccbikai

为您优选 修改

@@ -10,7 +10,8 @@ var Swiper = require('yoho.iswiper'); @@ -10,7 +10,8 @@ var Swiper = require('yoho.iswiper');
10 var recommendSwiper; 10 var recommendSwiper;
11 11
12 recommendSwiper = new Swiper('.swiper-recommend', { 12 recommendSwiper = new Swiper('.swiper-recommend', {
13 - lazyLoading: true,  
14 - lazyLoadingInPrevNext: true, 13 +
  14 + // lazyLoading: true,
  15 + // lazyLoadingInPrevNext: true,
15 slidesPerView: 'auto' 16 slidesPerView: 'auto'
16 }); 17 });
@@ -2,17 +2,17 @@ @@ -2,17 +2,17 @@
2 <div class="recommend-for-you"> 2 <div class="recommend-for-you">
3 <div class="title">为您优选新品</div> 3 <div class="title">为您优选新品</div>
4 <div class="swiper-recommend"> 4 <div class="swiper-recommend">
5 - <div class="swiper-wrapper"> 5 + <ul class="swiper-wrapper">
6 {{#recommendList}} 6 {{#recommendList}}
7 - <div class="swiper-slider"> 7 + <li class="swiper-slider">
8 <img class="img-box" src="{{thumb}}"> 8 <img class="img-box" src="{{thumb}}">
9 <div class="price"> 9 <div class="price">
10 <span class="sale-price"{{salePrice}}</span> 10 <span class="sale-price"{{salePrice}}</span>
11 <span class="old-price"{{price}}</span> 11 <span class="old-price"{{price}}</span>
12 </div> 12 </div>
13 - </div> 13 + </li>
14 {{/recommendList}} 14 {{/recommendList}}
15 - </div> 15 + </ul>
16 </div> 16 </div>
17 </div> 17 </div>
18 {{/ recommendForYou}} 18 {{/ recommendForYou}}