Authored by zhangxiaoru

添加头部

... ... @@ -37,6 +37,9 @@ const index = (req, res, next) => {
module: 'guang',
page: 'brand-list',
width750: true,
pageHeader: headerModel.setNav({
navTitle: ''
}),
categoryTab: isCate,
channel: result.channel ? result.channel : '',
brandList: result.brandList,
... ... @@ -98,9 +101,7 @@ const cateAll = (req, res, next) => {
category: {
nav: result.nav,
list: result.list
// searchUrl: helpers.urlFormat('/search', null, 'search')
}
// showFooterTab: footerModel.getUrlData('category')
});
}).catch(next);
};
... ...
... ... @@ -9,6 +9,8 @@ var $intercept = $('.no-intercept'),
$list = $('.brand-list-box'),
$listBox = $('.list-box');
require('../common');
function channels(key) {
var channel = {
men: 1,
... ... @@ -103,6 +105,20 @@ if ($listBox.find('li').length <= 0) {
$listBox.hide();
}
$(window).scroll(function() {
var totalHeight = $('#yoho-header').height() + $('.tab-box').height();
if ($(this).scrollTop() >= $('#yoho-header').height()) {
$('.tab-box').addClass('fastening');
$('.content-index').addClass('distance');
$('.list-box').css('top', $('.tab-box').height());
} else {
$('.tab-box').removeClass('fastening');
$('.content-index').removeClass('distance');
$('.list-box').css('top', totalHeight - $(this).scrollTop());
}
});
$(function() {
$('.banner-swiper').each(function() {
if (!$(this).parents('.content').hasClass('hide') && $(this).hasClass('swiper-container-horizontal') === false && $(this).find('li').length > 1) {
... ...
.brand-blk-page {
.tab-box {
position: fixed;
top: 0;
z-index: 9;
width: 100%;
}
.fastening {
position: fixed;
}
.distance {
margin-top: 170px;
}
.brand-tab {
max-width: inherit;
height: 80px;
... ... @@ -63,7 +70,6 @@
}
.content-index {
margin-top: 170px;
.search {
width: 100%;
... ... @@ -190,7 +196,7 @@
right: 0;
background: #fff;
opacity: 0.8;
top: 170px;
top: 270px;
overflow-y: auto;
z-index: 10;
... ... @@ -333,9 +339,9 @@
.recommend-content-five {
margin-top: -1px;
width: 100%;
overflow: hidden;
a {
height: 218px;
width: 50%;
outline: none;
color: #000;
... ...