Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHO-ACTIVITY-PHP
·
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
Plain Diff
Browse Files
Authored by
hf
9 years ago
Commit
2cd133758e914e390a931fae9a3fe0bc447aaf0a
2 parents
81bfeb18
38ed9626
Merge branch 'develop' of
http://git.dev.yoho.cn/web/yohobuy
into develop
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
18 deletions
framework
static/js/category/brand.js
framework
@
119c247f
Subproject commit
75bbc3b075de19f239532f60c5995d06c5f814e2
Subproject commit
119c247f5cf929aa1e059e40609bb16dd6b58f05
...
...
static/js/category/brand.js
View file @
2cd1337
...
...
@@ -16,14 +16,11 @@ var searchH = $('.newbrand-search').outerHeight(),
headerH
=
$
(
'.yoho-header'
).
outerHeight
(),
brandSwipe
=
parseInt
(
searchH
)
+
parseInt
(
headerH
)
-
1
;
var
myHammer
,
brandsData
,
var
brandsData
,
$keyword
,
searchBtnHammer
,
clearTextHammer
;
var
$rightBarCon
=
$
(
'#right-bar .con'
).
find
(
'b'
).
unbind
();
swiper
=
new
Swiper
(
'.swiper-container'
,
{
lazyLoading
:
true
,
loop
:
true
,
...
...
@@ -56,27 +53,18 @@ $(window).scroll(function() {
});
});
function
rightBarBindClick
()
{
$rightBarCon
=
$
(
'#right-bar .con'
).
find
(
'b'
).
unbind
();
myHammer
=
new
Hammer
(
$rightBarCon
[
0
]);
myHammer
.
on
(
'tap'
,
function
(
e
)
{
var
index
=
$rightBarCon
.
index
();
$
(
'#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
.
s
rcEvent
.
s
topPropagation
();
e
.
stopPropagation
();
});
}
if
(
$rightBarCon
[
0
])
{
rightBarBindClick
();
}
/**
* 品牌搜索
*/
rightBarBindClick
();
function
searchResult
()
{
var
keyword
=
(
$keyword
.
val
()
+
''
).
toLowerCase
();
...
...
Please
register
or
login
to post a comment