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
Email Patches
Plain Diff
Browse Files
Authored by
xuqi
9 years ago
Commit
ac9757806f92389cb16af7514ea02197f80ee653
1 parent
315bd363
return top position
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
0 deletions
public/js/me/me.js
public/scss/me/_index.css
public/js/me/me.js
View file @
ac97578
...
...
@@ -6,6 +6,15 @@
var
$
=
require
(
'yoho-jquery'
),
lazyLoad
=
require
(
'yoho-jquery-lazyload'
);
var
$st
=
$
(
'.service-top'
);
function
reposServiceTop
()
{
if
(
$
(
window
).
width
()
<
1380
)
{
$st
.
addClass
(
'for-min'
);
}
else
{
$st
.
removeClass
(
'for-min'
);
}
}
$
(
'.blk-footer .return-top'
).
remove
();
// 移除通用的返回顶部组件
...
...
@@ -20,3 +29,8 @@ $('.service, .return-top').hover(function() {
},
function
()
{
$
(
this
).
find
(
'.iconfont'
).
removeClass
(
'hide'
).
end
().
find
(
'.hover-text'
).
addClass
(
'hide'
);
});
// repos service-return when window resize
$
(
window
).
resize
(
reposServiceTop
);
reposServiceTop
();
...
...
public/scss/me/_index.css
View file @
ac97578
...
...
@@ -64,6 +64,12 @@
z-index
:
2
;
margin-left
:
625px
;
&.for-min
{
right
:
20px
;
left
:
initial
;
margin-left
:
auto
;
}
.service
,
.return-top
{
display
:
block
;
...
...
Please
register
or
login
to post a comment