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
uedxwg
9 years ago
Commit
1515f4813c4c9c377252293026b62290a1ba6755
1 parent
cb34b3a3
修复热门品牌无法滑动
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
static/js/category/brand.js
static/js/category/brand.js
View file @
1515f48
...
...
@@ -29,13 +29,7 @@ var brandsData,
loading
.
showLoadingMask
();
//热门品牌滑动
hotBrandsSwiper
=
new
Swiper
(
'.brands-swiper'
,
{
grabCursor
:
true
,
slidesPerView
:
'auto'
,
wrapperClass
:
'brands-list'
,
slideElement
:
'li'
});
lazyLoad
(
$
(
'img.lazy'
));
$
(
'.yoho-header'
).
css
({
...
...
@@ -51,12 +45,22 @@ $('.yoho-header').css({
$
(
'.hide-when-loading'
).
show
();
loading
.
hideLoadingMask
();
//banner滑动
swiper
=
new
Swiper
(
'.swiper-container'
,
{
lazyLoading
:
true
,
loop
:
true
,
autoplay
:
3000
,
pagination
:
'.swiper-pagination .pagination-inner'
});
//热门品牌滑动
hotBrandsSwiper
=
new
Swiper
(
'.brands-swiper'
,
{
grabCursor
:
true
,
slidesPerView
:
'auto'
,
wrapperClass
:
'brands-list'
,
slideElement
:
'li'
});
})();
$fixTitleBar
=
$
(
'<div class="title-bar fixed-title-bar"><h2></h2></div>'
);
...
...
Please
register
or
login
to post a comment