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
梁志锋
9 years ago
Commit
60e3278148ca83b10a4e6ba0cbacc10a7ed6647c
1 parent
97542741
update
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
11 deletions
static/js/home/home.js
static/js/home/maybe-like.js
static/js/home/home.js
View file @
60e3278
...
...
@@ -11,18 +11,17 @@ var $ = require('yoho.zepto'),
trendTopicSwiper
,
goodsSwiper
;
require
(
'./maybe-like'
);
var
swiperClass
;
var
requestFrame
,
thisFunc
,
start
=
0
,
i
,
swiperClass
,
supportCss3
,
$logotrans
=
$
(
'.home-header .logo'
),
isen
=
true
;
require
(
'./maybe-like'
);
lazyLoad
(
$
(
'img.lazy'
));
//$('img:in-viewport').trigger('appear');
...
...
static/js/home/maybe-like.js
View file @
60e3278
...
...
@@ -10,17 +10,14 @@ var $ = require('yoho.zepto'),
var
winH
=
$
(
window
).
height
(),
loadMoreH
=
$
(
'#load-more'
).
height
(),
$goodList
=
$
(
'#goods-list'
),
loading
=
false
,
end
=
false
,
page
=
0
,
gender
=
'
'
,
gender
=
$
(
'.mobile-wrap'
).
hasClass
(
'boys-wrap'
)
?
'1,3'
:
'2,3
'
,
num
,
res
;
gender
=
$
(
'.mobile-wrap'
).
hasClass
(
'boys-wrap'
)
?
'1,3'
:
'2,3'
;
var
$goodList
=
$
(
'#goods-list'
);
//srcoll to load more
$
(
window
).
scroll
(
function
()
{
if
(
$
(
window
).
scrollTop
()
+
winH
>=
$
(
document
).
height
()
-
loadMoreH
)
{
...
...
@@ -28,7 +25,7 @@ $(window).scroll(function () {
num
=
$goodList
.
children
(
'.good-info'
).
length
;
$
.
ajax
({
type
:
'GET'
,
url
:
'/product/recom/maylike?gender='
+
gender
,
url
:
'/product/recom/maylike?gender='
+
gender
,
data
:
{
page
:
page
+
1
},
...
...
@@ -56,5 +53,4 @@ $(window).scroll(function () {
});
}
});
\ No newline at end of file
...
...
Please
register
or
login
to post a comment