Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
f2a7d483c9a8984d6d9a4ae02681d673b00e169e
1 parent
b3d0d4fd
update
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
23 deletions
framework
static/js/category/brand.js
framework
@
119c247f
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
Subproject commit
119c247f5cf929aa1e059e40609bb16dd6b58f05
...
...
static/js/category/brand.js
View file @
f2a7d48
...
...
@@ -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
();
...
...
Please
register
or
login
to post a comment