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
uedxwg
9 years ago
Commit
1077ee5859603ae7fd3efae22a2f3946c1a681cb
1 parent
fcec9c27
hotrank
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
static/js/product/newsale/hot-rank.js
static/js/product/newsale/hot-rank.js
View file @
1077ee5
var
$
=
require
(
'jquery'
),
Hammer
=
require
(
'yoho.hammer'
),
Swiper
=
require
(
'yoho.iswiper'
),
lazyLoad
=
require
(
'yoho.lazyload'
);
lazyLoad
=
require
(
'yoho.lazyload'
)
loading
=
require
(
'../../plugin/loading'
);;
var
page
=
1
,
winH
,
...
...
@@ -13,6 +15,7 @@ var page = 1,
id
=
''
;
function
hotrank
(
page
,
sort
,
tabId
,
notab
)
{
loading
.
showLoadingMask
();
$
.
ajax
({
type
:
'GET'
,
url
:
'/product/newsale/selectHotrank?'
+
sort
,
...
...
@@ -28,17 +31,20 @@ function hotrank(page, sort, tabId, notab) {
}
$
(
'#hotRank'
).
append
(
data
);
lazyLoad
(
$
(
'img.lazy'
));
$
(
'#yoho-footer'
).
css
(
'position'
,
'static'
);
$
(
'.rank-main ul li:gt(2)'
).
find
(
'.item-content i'
).
removeClass
(
'top'
);
winH
=
$
(
window
).
height
();
if
(
$
(
'.rank-main'
).
length
!==
0
)
{
$
(
'#yoho-footer'
).
css
(
'position'
,
'static'
);
listTop
=
$
(
'.rank-main'
).
find
(
'ul'
).
offset
().
top
;
}
else
{
$
(
'#yoho-footer'
).
css
(
'position'
,
'fixed'
);
}
navSwiper
=
new
Swiper
(
'.s-goods-nav'
,
{
grabCursor
:
true
,
slidesPerView
:
'auto'
,
slideElement
:
'li'
});
loading
.
hideLoadingMask
();
}
});
}
...
...
@@ -70,4 +76,4 @@ hotnav.on('tap', function (e) {
notab
=
1
;
hotrank
(
page
,
sort
,
id
,
notab
);
}
})
})
;
...
...
Please
register
or
login
to post a comment