Authored by 梁志锋

update

framework @ 119c247f
1 -Subproject commit 75bbc3b075de19f239532f60c5995d06c5f814e2 1 +Subproject commit 119c247f5cf929aa1e059e40609bb16dd6b58f05
@@ -22,8 +22,6 @@ var myHammer, @@ -22,8 +22,6 @@ var myHammer,
22 searchBtnHammer, 22 searchBtnHammer,
23 clearTextHammer; 23 clearTextHammer;
24 24
25 -var $rightBarCon = $('#right-bar .con').find('b').unbind();  
26 -  
27 swiper = new Swiper('.swiper-container', { 25 swiper = new Swiper('.swiper-container', {
28 lazyLoading: true, 26 lazyLoading: true,
29 loop: true, 27 loop: true,
@@ -56,27 +54,14 @@ $(window).scroll(function() { @@ -56,27 +54,14 @@ $(window).scroll(function() {
56 }); 54 });
57 }); 55 });
58 56
59 -  
60 -function rightBarBindClick() {  
61 - $rightBarCon = $('#right-bar .con').find('b').unbind();  
62 - myHammer = new Hammer($rightBarCon[0]);  
63 - myHammer.on('tap', function(e) {  
64 - var index = $rightBarCon.index(); 57 +$('#right-bar .con').find('b').unbind().on('touchstart', function(e) {
  58 + var index = $(this).index();
65 59
66 if ($('.bar-' + index).size() > 0) { 60 if ($('.bar-' + index).size() > 0) {
67 document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1); 61 document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1);
68 } 62 }
69 - e.srcEvent.stopPropagation();  
70 - });  
71 -}  
72 -  
73 -if ($rightBarCon[0]) {  
74 - rightBarBindClick();  
75 -}  
76 -  
77 -/**  
78 - * 品牌搜索  
79 - */ 63 + e.stopPropagation();
  64 +});
80 65
81 function searchResult() { 66 function searchResult() {
82 var keyword = ($keyword.val() + '').toLowerCase(); 67 var keyword = ($keyword.val() + '').toLowerCase();