Authored by zhangxiaoru

没有brandlist时隐藏

... ... @@ -46,7 +46,7 @@
<ul class="list-box">
{{# indexList}}
<li class="item in items">
<li>
<a class="no-intercept" href="#{{index}}">{{name}}</a>
</li>
{{/ indexList}}
... ...
... ... @@ -6,7 +6,8 @@ var categoryHeight = $('.tab-box').height(),
isBrand;
var $intercept = $('.no-intercept'),
$list = $('.brand-list-box');
$list = $('.brand-list-box'),
$listBox = $('.list-box');
function channels(key) {
... ... @@ -97,6 +98,10 @@ $('.brand-tab').find('li').click(function() {
initialize();
});
if ($listBox.find('li').length <= 0) {
$listBox.hide();
}
$(function() {
$('.banner-swiper').each(function() {
if (!$(this).parents('.content').hasClass('hide') && $(this).hasClass('swiper-container-horizontal') === false && $(this).find('li').length > 1) {
... ...