...
|
...
|
@@ -22,8 +22,6 @@ var myHammer, |
|
|
searchBtnHammer,
|
|
|
clearTextHammer;
|
|
|
|
|
|
var $rightBarCon = $('#right-bar .con').find('b').unbind();
|
|
|
|
|
|
swiper = new Swiper('.swiper-container', {
|
|
|
lazyLoading: true,
|
|
|
loop: true,
|
...
|
...
|
@@ -56,27 +54,14 @@ $(window).scroll(function() { |
|
|
});
|
|
|
});
|
|
|
|
|
|
|
|
|
function rightBarBindClick() {
|
|
|
$rightBarCon = $('#right-bar .con').find('b').unbind();
|
|
|
myHammer = new Hammer($rightBarCon[0]);
|
|
|
myHammer.on('tap', function(e) {
|
|
|
var index = $rightBarCon.index();
|
|
|
$('#right-bar .con').find('b').unbind().on('touchstart', function(e) {
|
|
|
var index = $(this).index();
|
|
|
|
|
|
if ($('.bar-' + index).size() > 0) {
|
|
|
document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1);
|
|
|
}
|
|
|
e.srcEvent.stopPropagation();
|
|
|
});
|
|
|
}
|
|
|
|
|
|
if ($rightBarCon[0]) {
|
|
|
rightBarBindClick();
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
* 品牌搜索
|
|
|
*/
|
|
|
e.stopPropagation();
|
|
|
});
|
|
|
|
|
|
function searchResult() {
|
|
|
var keyword = ($keyword.val() + '').toLowerCase();
|
...
|
...
|
|