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
weiqingting
9 years ago
Commit
00c772f1867dd47ac5be9531d3a99eaf4e5deab5
1 parent
2e7272a5
独立brands js
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
3 deletions
template/www.yohobuy.com/partials/layout/use.phtml
web-static/js/home/brands.js → web-static/js/brand/brands.js
web-static/js/brand/index.js
web-static/js/home/home.js
template/www.yohobuy.com/partials/layout/use.phtml
View file @
00c772f
...
...
@@ -94,4 +94,11 @@
<script>
seajs.use('js/product/hotrank');
</script>
{{/if}}
{{!-- 品牌页 --}}
{{#if brandsHomePage}}
<script>
seajs.use('js/brand/index');
</script>
{{/if}}
\ No newline at end of file
...
...
web-static/js/
home
/brands.js → web-static/js/
brand
/brands.js
View file @
00c772f
web-static/js/brand/index.js
0 → 100644
View file @
00c772f
/**
* 首页
* @author: xuqi<qi.xu@yoho.cn>
* @date: 2015/11/23
*/
var
$
=
require
(
'yoho.jquery'
),
lazyLoad
=
require
(
'yoho.lazyload'
);
require
(
'../common/slider'
);
require
(
'./brands'
);
lazyLoad
(
$
(
'img.lazy'
));
$
(
'.slide-container'
).
slider
();
...
...
web-static/js/home/home.js
View file @
00c772f
...
...
@@ -16,9 +16,7 @@ require('../common/logo-brand');
require
(
'../common/accordion'
);
if
(
homePage
===
'brands'
)
{
require
(
'./brands'
);
}
if
([
'boys'
,
'girls'
,
'kids'
,
'lifestyle'
].
indexOf
(
homePage
)
>
-
1
)
{
require
(
'../common/new-arrivls'
)({
...
...
Please
register
or
login
to post a comment