...
|
...
|
@@ -9,16 +9,17 @@ var $allProductCell = $('.allproduct'), |
|
|
$categoryContainer = $('.category-container'),
|
|
|
$contents = $categoryContainer.children('.content'),
|
|
|
$subLevelItem = $categoryContainer.find('.sub-level li'),
|
|
|
$primaryItem = $categoryContainer.find('.primary-level li');
|
|
|
$primaryItem = $categoryContainer.find('.primary-level li'),
|
|
|
$trilangle = $categoryContainer.find('.primary-level-trilangle');
|
|
|
|
|
|
//初始化container高度
|
|
|
(function() {
|
|
|
var $header = $('.yoho-header');
|
|
|
|
|
|
var h = $(window).height() - $header.outerHeight() - $allProductCell.outerHeight();
|
|
|
var trilangleRightMargin = $(window).width() * 0.55;
|
|
|
|
|
|
$categoryContainer.css('min-height', h);
|
|
|
|
|
|
$trilangle.css('margin-right', trilangleRightMargin);
|
|
|
$contents.height(h);
|
|
|
|
|
|
}());
|
...
|
...
|
@@ -44,15 +45,11 @@ $categoryContainer.on('touchend', function(e) { |
|
|
return;
|
|
|
}
|
|
|
|
|
|
//$this.closest('.primary-level').children('.focus').removeClass('focus');
|
|
|
//$this.addClass('focus');
|
|
|
|
|
|
$subLevel.not('.hide').addClass('hide');
|
|
|
$subLevel.eq(index).removeClass('hide');
|
|
|
|
|
|
$trilangleItem.not('.hide').addClass('hide');
|
|
|
$trilangleItem.eq(index).removeClass('hide');
|
|
|
|
|
|
}
|
|
|
});
|
|
|
|
...
|
...
|
|