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
@@ -457,5 +457,6 @@ $listNav.on('touchstart', 'li', function() { @@ -457,5 +457,6 @@ $listNav.on('touchstart', 'li', function() {
457 457
458 // 用于统计点击了商品列表的第几个商品,序号从1开始计算。 458 // 用于统计点击了商品列表的第几个商品,序号从1开始计算。
459 if (window._yas) { 459 if (window._yas) {
460 - window._yas(1 * new Date(), '1.0.13.2', 'yohobuy_m', window._ozuid, '#goods-container >div >div .good-thumb >img'); 460 + window._yas(1 * new Date(), '1.0.13.2', 'yohobuy_m', window._ozuid,
  461 + '', '#goods-container >div >div .good-thumb >img');
461 } 462 }
@@ -23,7 +23,6 @@ @@ -23,7 +23,6 @@
23 overflow: hidden; 23 overflow: hidden;
24 } 24 }
25 .user-name { 25 .user-name {
26 - float: left;  
27 max-width: 240rem / $pxConvertRem; 26 max-width: 240rem / $pxConvertRem;
28 text-overflow:ellipsis; 27 text-overflow:ellipsis;
29 white-space:nowrap; 28 white-space:nowrap;
@@ -168,6 +168,9 @@ @@ -168,6 +168,9 @@
168 &.focus { 168 &.focus {
169 color: #000; 169 color: #000;
170 } 170 }
  171 + .comments-num {
  172 + display: none;
  173 + }
171 } 174 }
172 .comment-nav { 175 .comment-nav {
173 border-right: 1px solid #ccc; 176 border-right: 1px solid #ccc;
@@ -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>
1 <ul id="nav-tab" class="nav-tab clearfix"> 1 <ul id="nav-tab" class="nav-tab clearfix">
2 - <li class="comment-nav">商品评价(<span class="comments-num">{{commentsNum}}</span>)</li> 2 + <li class="comment-nav">商品评价<span class="comments-num">{{commentsNum}}</span></li>
3 <li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li> 3 <li class="consult-nav">购买咨询(<span class="consults-num">{{consultsNum}}</span>)</li>
4 </ul> 4 </ul>
5 <div id="feedback-content" > 5 <div id="feedback-content" >
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 </div> 27 </div>
28 {{/if}} 28 {{/if}}
29 <!-- <div class="comment-content-footer"> 29 <!-- <div class="comment-content-footer">
30 - <a href="{{link}}">查看更多 <span class="iconfont">&#xe604;</span></a> 30 + <a href="{{link}}">查看更多 <span class="iconfont">&#xe604;</span></a>
31 </div> --> 31 </div> -->
32 </div> 32 </div>
33 33
@@ -51,8 +51,8 @@ @@ -51,8 +51,8 @@
51 </div> 51 </div>
52 <div class="consult-content-footer" data-href="{{link}}"> 52 <div class="consult-content-footer" data-href="{{link}}">
53 <a href="javascript:;"> 53 <a href="javascript:;">
54 - 查看更多  
55 - <span class="iconfont">&#xe604;</span></a> 54 + 查看更多
  55 + <span class="iconfont">&#xe604;</span></a>
56 </div> 56 </div>
57 {{else}} 57 {{else}}
58 <div class="consult-content-main content-main no-item"> 58 <div class="consult-content-main content-main no-item">
@@ -61,9 +61,9 @@ @@ -61,9 +61,9 @@
61 61
62 <div class="consult-content-footer" data-href="{{link}}"> 62 <div class="consult-content-footer" data-href="{{link}}">
63 <a href="javascript:;"> 63 <a href="javascript:;">
64 - 我要咨询  
65 - <span class="iconfont">&#xe604;</span></a> 64 + 我要咨询
  65 + <span class="iconfont">&#xe604;</span></a>
66 </div> 66 </div>
67 {{/if}} 67 {{/if}}
68 </div> 68 </div>
69 -</div>  
  69 +</div>