Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
姜枫
9 years ago
Commit
1f97909da37c6ae0dc079e15d8d6b178e6d02c10
2 parents
754527ee
8114ee60
handle merge
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
public/js/brand/index.page.js
public/scss/editorial/_detail.css
public/js/brand/index.page.js
View file @
1f97909
...
...
@@ -20,7 +20,6 @@ lazyLoad($('.brand-page img.lazy'));
// 品牌类别滚动事件
$
(
window
).
scroll
(
function
()
{
var
navLength
=
$
(
'.category-nav'
).
find
(
'a'
).
length
+
1
;
if
(
$
(
this
).
scrollTop
()
>=
categoryTop
)
{
$gory
.
addClass
(
'category-fix'
);
...
...
@@ -29,14 +28,14 @@ $(window).scroll(function() {
}
$
(
'.brand-key'
).
each
(
function
(
i
,
ele
)
{
var
key
;
if
(
$
(
ele
).
parent
().
attr
(
'style'
))
{
return
;
}
if
(
$
(
ele
).
offset
().
top
-
$
(
window
).
scrollTop
()
<
100
)
{
var
key
=
$
(
ele
).
html
().
charAt
(
$
(
ele
).
html
().
length
-
1
);
key
=
$
(
ele
).
html
().
charAt
(
$
(
ele
).
html
().
length
-
1
);
$
(
'.category-nav'
).
find
(
'.'
+
key
).
css
(
'color'
,
'#379ed6'
).
siblings
().
css
(
'color'
,
'#222'
);
}
});
...
...
public/scss/editorial/_detail.css
View file @
1f97909
...
...
@@ -495,7 +495,7 @@
}
}
.share
{
padding-left
:
30px
;
width
:
330px
;
...
...
Please
register
or
login
to post a comment