|
@@ -18,8 +18,6 @@ var searchH = $('.newbrand-search').outerHeight(), |
|
@@ -18,8 +18,6 @@ var searchH = $('.newbrand-search').outerHeight(), |
18
|
|
18
|
|
19
|
var myHammer, searchBtnHammer, clearTextHammer;
|
19
|
var myHammer, searchBtnHammer, clearTextHammer;
|
20
|
|
20
|
|
21
|
-var $rightBarCon = $('#right-bar .con').find('b').unbind();
|
|
|
22
|
-
|
|
|
23
|
swiper = new Swiper('.swiper-container', {
|
21
|
swiper = new Swiper('.swiper-container', {
|
24
|
lazyLoading: true,
|
22
|
lazyLoading: true,
|
25
|
loop: true,
|
23
|
loop: true,
|
|
@@ -54,17 +52,14 @@ if ($brandList.length > 0) { |
|
@@ -54,17 +52,14 @@ if ($brandList.length > 0) { |
54
|
});
|
52
|
});
|
55
|
}
|
53
|
}
|
56
|
|
54
|
|
57
|
-if ($rightBarCon[0]) {
|
|
|
58
|
- myHammer = new Hammer($rightBarCon[0]);
|
|
|
59
|
- myHammer.on('tap', function(e) {
|
|
|
60
|
- var index = $rightBarCon.index();
|
55
|
+$('#right-bar .con').find('b').unbind().on('touchstart', function() {
|
|
|
56
|
+ var index = $(this).index();
|
61
|
|
57
|
|
62
|
if ($('.bar-' + index).size() > 0) {
|
58
|
if ($('.bar-' + index).size() > 0) {
|
63
|
document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1);
|
59
|
document.body.scrollTop = parseInt($('.bar-' + index)[0].offsetTop) - parseInt(brandSwipe - 1);
|
64
|
}
|
60
|
}
|
65
|
- e.srcEvent.stopPropagation();
|
|
|
66
|
- });
|
|
|
67
|
-}
|
61
|
+ e.stopPropagation();
|
|
|
62
|
+});
|
68
|
|
63
|
|
69
|
function searchResult(type) {
|
64
|
function searchResult(type) {
|
70
|
var keyword = $('#keyword').val(),
|
65
|
var keyword = $('#keyword').val(),
|