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
xuqi
9 years ago
Commit
414e8f52298372331e5d06d31914a2df1c723ff1
1 parent
32361621
brand fav load. Review by:@梁志锋
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
static/js/me/fav.js
static/js/me/fav.js
View file @
414e8f5
...
...
@@ -15,10 +15,10 @@ var $navLi = $('#fav-tab > li'),
swiperObj
=
{},
favTabHammer
,
favContentHammer
,
footerH
=
$
(
'#yoho-footer'
).
height
(),
$loadMore
=
$
(
'.fav-load-more'
),
$brandLoadMore
=
$
(
'.fav-brand-load-more'
),
winH
=
$
(
window
).
height
(),
footerH
=
$
(
'#yoho-footer'
).
height
(),
$favProductList
=
$
(
'.fav-product-list'
),
$favBrandList
=
$
(
'.fav-brand-swiper-wrapper'
),
pageId
=
1
,
...
...
@@ -220,8 +220,8 @@ favContentHammer.on('tap', function(e) {
function
scrollHandler
()
{
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
footerH
)
{
//距离底部未1/4列表高度+底部高度的时候加载更多
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
0.25
*
$favBrandList
.
height
()
-
footerH
)
{
if
(
brandTab
)
{
$brandLoadMore
.
filter
(
'.hide'
).
removeClass
(
'hide'
);
...
...
Please
register
or
login
to post a comment