Authored by 梁志锋

update

framework @ 119c247f
Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2
Subproject commit 119c247f5cf929aa1e059e40609bb16dd6b58f05
... ...
... ... @@ -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() {
});
});
$('#right-bar .con').find('b').unbind().on('touchstart', function(e) {
var index = $(this).index();
function rightBarBindClick() {
$rightBarCon = $('#right-bar .con').find('b').unbind();
myHammer = new Hammer($rightBarCon[0]);
myHammer.on('tap', function(e) {
var index = $rightBarCon.index();
if ($('.bar-' + index).size() > 0) {
document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1);
}
e.srcEvent.stopPropagation();
});
}
if ($rightBarCon[0]) {
rightBarBindClick();
}
/**
* 品牌搜索
*/
if ($('.bar-' + index).size() > 0) {
document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1);
}
e.stopPropagation();
});
function searchResult() {
var keyword = ($keyword.val() + '').toLowerCase();
... ...