Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYPC
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
2
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
biao
9 years ago
Commit
98e48ea6618319fed68cfdcd2166f4e54bc6f329
1 parent
9f641fbf
fix the issue of scroll bar show when there is no scroll. code review by XWG
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
static/js/cart/cart.js
static/js/cart/cart.js
View file @
98e48ea
...
...
@@ -22,6 +22,9 @@ require('./good');
lazyLoad
(
$
(
'img.lazy'
));
console
.
log
(
$
(
document
).
height
());
console
.
log
(
$
(
window
).
height
());
if
(
'advance'
===
cartType
)
{
$cartContent
.
toggleClass
(
'hide'
);
}
...
...
@@ -82,5 +85,16 @@ if ($('.cart-zero').length > 0) {
require
(
'../product/recommend-for-you'
);
}
function
notAllowScroll
()
{
var
docH
=
$
(
document
).
height
(),
winH
=
$
(
window
).
height
();
if
(
docH
-
winH
<=
10
)
{
$
(
'body'
).
css
(
'overflow'
,
'hidden'
);
}
}
notAllowScroll
();
//提前触发lazyload
$
(
window
).
scrollTop
(
1
).
scrollTop
(
0
);
...
...
Please
register
or
login
to post a comment