...
|
...
|
@@ -18,8 +18,6 @@ var searchH = $('.newbrand-search').outerHeight(), |
|
|
|
|
|
var myHammer, searchBtnHammer, clearTextHammer;
|
|
|
|
|
|
var $rightBarCon = $('#right-bar .con').find('b').unbind();
|
|
|
|
|
|
swiper = new Swiper('.swiper-container', {
|
|
|
lazyLoading: true,
|
|
|
loop: true,
|
...
|
...
|
@@ -54,17 +52,14 @@ if ($brandList.length > 0) { |
|
|
});
|
|
|
}
|
|
|
|
|
|
if ($rightBarCon[0]) {
|
|
|
myHammer = new Hammer($rightBarCon[0]);
|
|
|
myHammer.on('tap', function(e) {
|
|
|
var index = $rightBarCon.index();
|
|
|
$('#right-bar .con').find('b').unbind().on('touchstart', function() {
|
|
|
var index = $(this).index();
|
|
|
|
|
|
if ($('.bar-' + index).size() > 0) {
|
|
|
document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1);
|
|
|
}
|
|
|
e.srcEvent.stopPropagation();
|
|
|
});
|
|
|
}
|
|
|
if ($('.bar-' + index).size() > 0) {
|
|
|
document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1);
|
|
|
}
|
|
|
e.stopPropagation();
|
|
|
});
|
|
|
|
|
|
function searchResult(type) {
|
|
|
var keyword = $('#keyword').val(),
|
...
|
...
|
|