Authored by 梁志锋

Merge branch 'develop' of http://git.dev.yoho.cn/web/yohobuy into develop

@@ -15,10 +15,10 @@ var $navLi = $('#fav-tab > li'), @@ -15,10 +15,10 @@ var $navLi = $('#fav-tab > li'),
15 swiperObj = {}, 15 swiperObj = {},
16 favTabHammer, 16 favTabHammer,
17 favContentHammer, 17 favContentHammer,
18 - footerH = $('#yoho-footer').height(),  
19 $loadMore = $('.fav-load-more'), 18 $loadMore = $('.fav-load-more'),
20 $brandLoadMore = $('.fav-brand-load-more'), 19 $brandLoadMore = $('.fav-brand-load-more'),
21 winH = $(window).height(), 20 winH = $(window).height(),
  21 + footerH = $('#yoho-footer').height(),
22 $favProductList = $('.fav-product-list'), 22 $favProductList = $('.fav-product-list'),
23 $favBrandList = $('.fav-brand-swiper-wrapper'), 23 $favBrandList = $('.fav-brand-swiper-wrapper'),
24 pageId = 1, 24 pageId = 1,
@@ -220,8 +220,8 @@ favContentHammer.on('tap', function(e) { @@ -220,8 +220,8 @@ favContentHammer.on('tap', function(e) {
220 220
221 function scrollHandler() { 221 function scrollHandler() {
222 222
223 - if ($(window).scrollTop() + winH >= $(document).height() - footerH) {  
224 - 223 + //距离底部未1/4列表高度+底部高度的时候加载更多
  224 + if ($(window).scrollTop() + winH >= $(document).height() - 0.25 * $favBrandList.height() - footerH) {
225 if (brandTab) { 225 if (brandTab) {
226 $brandLoadMore.filter('.hide').removeClass('hide'); 226 $brandLoadMore.filter('.hide').removeClass('hide');
227 227
@@ -38,8 +38,8 @@ @@ -38,8 +38,8 @@
38 <div class="price-date"> 38 <div class="price-date">
39 {{# goodsPrice}} 39 {{# goodsPrice}}
40 <div class="goodsPrice"> 40 <div class="goodsPrice">
41 - <h1 class="currentPrice"{{currentPrice}}</h1>  
42 - <h1 class="previousPrice"{{previousPrice}}</h1> 41 + <h1 class="currentPrice">{{currentPrice}}</h1>
  42 + <h1 class="previousPrice">{{previousPrice}}</h1>
43 </div> 43 </div>
44 {{/ goodsPrice}} 44 {{/ goodsPrice}}
45 45
@@ -57,7 +57,7 @@ @@ -57,7 +57,7 @@
57 <li class="icons-item {{#if currentLevel}}current-level{{/if}}"> 57 <li class="icons-item {{#if currentLevel}}current-level{{/if}}">
58 <span class="vip-img " style="background-size:contain;"> 58 <span class="vip-img " style="background-size:contain;">
59 </span> 59 </span>
60 - <span class="vip-price ">¥{{text}}</span> 60 + <span class="vip-price ">{{text}}</span>
61 </li> 61 </li>
62 {{/ list}} 62 {{/ list}}
63 </ul> 63 </ul>