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
unknown
9 years ago
Commit
87a26dada6c38c03e7044030b6f6ad70b6328492
1 parent
77b61eec
热销排行一周热卖js modify @review by 王成龙
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletions
web-static/js/product/hotrank.js
web-static/js/product/hotrank.js
View file @
87a26da
...
...
@@ -117,6 +117,10 @@ $('.logo-brand').logoBrand({
var
nowIndex
=
$
(
this
).
index
(),
sid
=
$
(
this
).
data
(
'sid'
);
if
(
$
(
this
).
hasClass
(
'current'
))
{
return
;
}
//处理current样式
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
$
(
'.floatlayer'
).
find
(
'li'
).
removeClass
(
'current'
).
eq
(
nowIndex
).
addClass
(
'current'
);
...
...
@@ -135,7 +139,11 @@ $('.logo-brand').logoBrand({
$
(
'.floatlayer'
).
on
(
'click'
,
'li'
,
function
()
{
var
nowIndex
=
$
(
this
).
index
();
$
(
'.hot-cate'
).
find
(
'li'
).
trigger
(
'click'
);
if
(
$
(
this
).
hasClass
(
'current'
))
{
return
;
}
$
(
'.hot-cate'
).
find
(
'li'
).
eq
(
nowIndex
).
trigger
(
'click'
);
//处理current样式
$
(
this
).
addClass
(
'current'
).
siblings
().
removeClass
(
'current'
);
...
...
Please
register
or
login
to post a comment