Authored by hongweigao

修改top

... ... @@ -91,15 +91,17 @@
{{#newProduct}}
<div id="new-product-floor" class="newProduct-floor">
{{> common/floor-header}}
<div class="all-catagory fixed-area clearfix">
<div class="catagory-text">推荐品类</div>
<ul class="catagory-navs clearfix">
{{#ctyList}}
<li {{#if active}} class="active" {{/if}} data-cateId="{{cateId}}">
<a href="{{url}}">{{name}}</a>
</li>
{{/ctyList}}
</ul>
<div style="height:28px;" id="catagory-wrap">
<div class="all-catagory fixed-area clearfix">
<div class="catagory-text">推荐品类</div>
<ul class="catagory-navs clearfix">
{{#ctyList}}
<li {{#if active}} class="active" {{/if}} data-cateId="{{cateId}}">
<a href="{{url}}">{{name}}</a>
</li>
{{/ctyList}}
</ul>
</div>
</div>
<div id="pjax-container" class="new-arrive-list clearfix">
{{> list/new-arrive-list}}
... ...
... ... @@ -99,7 +99,7 @@ function getProData($good) {
}
function fixAreaTop(scrollTop) {
var fixedAreaTop = $fixedArea.offset() ? $fixedArea.offset().top + 28 : 0;
var fixedAreaTop = $('#catagory-wrap').offset() ? $('#catagory-wrap').offset().top + 28 : 0;
if (scrollTop > fixedAreaTop) {
$fixedArea.css({
... ... @@ -107,13 +107,11 @@ function fixAreaTop(scrollTop) {
top: 0
});
$('#pjax-container').css('margin-top', '48px');
} else {
$fixedArea.css({
position: 'static',
top: 0
});
$('#pjax-container').css('margin-top', '20px');
}
}
new Swiper('.rec-swiper', {
... ...