Authored by 梁志锋

update

... ... @@ -16,8 +16,7 @@ var searchH = $('.newbrand-search').outerHeight(),
headerH = $('.yoho-header').outerHeight(),
brandSwipe = parseInt(searchH) + parseInt(headerH) - 1;
var myHammer,
brandsData,
var brandsData,
$keyword,
searchBtnHammer,
clearTextHammer;
... ... @@ -54,14 +53,18 @@ $(window).scroll(function() {
});
});
$('#right-bar .con').find('b').unbind().on('touchstart', function(e) {
function rightBarBindClick() {
$('#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.stopPropagation();
});
});
}
rightBarBindClick();
function searchResult() {
var keyword = ($keyword.val() + '').toLowerCase();
... ...