Authored by uedxwg

热销排行内容间距修改 @ 赵彪

@@ -38,11 +38,14 @@ function hotrank(page, sort, tabId, notab) { @@ -38,11 +38,14 @@ function hotrank(page, sort, tabId, notab) {
38 } 38 }
39 } else { 39 } else {
40 $('.no-result').remove(); 40 $('.no-result').remove();
41 - $('.rank-main').remove(); 41 + if (page === 1) {
  42 + $('.rank-main').remove();
  43 + }
42 $('#hotRank').append(data); 44 $('#hotRank').append(data);
43 } 45 }
  46 +
44 lazyLoad($('img.lazy')); 47 lazyLoad($('img.lazy'));
45 - $('.rank-main ul li:gt(2)').find('.item-content i').removeClass('top'); 48 + $('.rank-main ul li:gt(9)').find('.item-content i').removeClass('top');
46 winH = $(window).height(); 49 winH = $(window).height();
47 if ($('.rank-main').length !== 0) { 50 if ($('.rank-main').length !== 0) {
48 $('#yoho-footer').css('position', 'static'); 51 $('#yoho-footer').css('position', 'static');
@@ -54,6 +54,8 @@ @@ -54,6 +54,8 @@
54 margin: (15rem / $pxConvertRem) 0 0 !important; 54 margin: (15rem / $pxConvertRem) 0 0 !important;
55 padding: 0 !important; 55 padding: 0 !important;
56 width: 9.5rem; 56 width: 9.5rem;
  57 + max-height: 72rem / $pxConvertRem;
  58 + overflow: hidden;
57 line-height: 36rem / $pxConvertRem; 59 line-height: 36rem / $pxConvertRem;
58 color: #444; 60 color: #444;
59 font-size: 28rem / $pxConvertRem; 61 font-size: 28rem / $pxConvertRem;
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 </div> 21 </div>
22 <div class="item-content"> 22 <div class="item-content">
23 <i class="rank-icon top">{{rank}}</i> 23 <i class="rank-icon top">{{rank}}</i>
24 - <h2 {{# active}}class="hasActive"{{/ active}}>{{name}}</h2> 24 + <h2 {{# sales_phrase}}class="hasActive"{{/ sales_phrase}}>{{name}}</h2>
25 {{# active}} 25 {{# active}}
26 <p>{{.}}</p> 26 <p>{{.}}</p>
27 {{/ active}} 27 {{/ active}}