Showing
6 changed files
with
81 additions
and
17 deletions
static/js/category/brand.js
0 → 100644
1 | +/** | ||
2 | + * 分类 | ||
3 | + * @author: xuqi<qi.xu@yoho.cn> | ||
4 | + * @date: 2015/10/14 | ||
5 | + */ | ||
6 | + | ||
7 | +var $ = require('yoho.zepto'), | ||
8 | + Swiper = require('yoho.iswiper'), | ||
9 | + lazyLoad = require('yoho.zeptolazyload'); | ||
10 | + | ||
11 | +var swiper; | ||
12 | + | ||
13 | +swiper = new Swiper('.swiper-container', { | ||
14 | + lazyLoading: true, | ||
15 | + loop: true, | ||
16 | + autoplay: 3000, | ||
17 | + pagination: '.swiper-pagination' | ||
18 | +}); | ||
19 | + | ||
20 | +lazyLoad($('img.lazy')); |
static/js/home/boys.js
deleted
100644 → 0
static/sass/category/_brand.scss
0 → 100644
1 | +.brand-page { | ||
2 | + font-size: 30rem / $pxConvertRem; | ||
3 | + | ||
4 | + .hot-brand { | ||
5 | + margin: (30rem / $pxConvertRem) 0 0; | ||
6 | + | ||
7 | + .hot-brand-list { | ||
8 | + background: #fff; | ||
9 | + li { | ||
10 | + float: left; | ||
11 | + width: 158rem / $pxConvertRem; | ||
12 | + height: 158rem / $pxConvertRem; | ||
13 | + | ||
14 | + .img-box { | ||
15 | + width: 100%; | ||
16 | + height: 100%; | ||
17 | + | ||
18 | + } | ||
19 | + } | ||
20 | + } | ||
21 | + } | ||
22 | + | ||
23 | + | ||
24 | +} |
static/sass/category/_hot-category.scss
0 → 100644
1 | +.hot-category { | ||
2 | + margin: (30rem / $pxConvertRem) 0 0; | ||
3 | + border-top: 1px solid #e0e0e0; | ||
4 | + .category-banner { | ||
5 | + height: 198rem / $pxConvertRem; | ||
6 | + img { | ||
7 | + display: block; | ||
8 | + width: 100%; | ||
9 | + height: 100%; | ||
10 | + } | ||
11 | + } | ||
12 | + .category-list { | ||
13 | + background: #fff; | ||
14 | + border-top: 1px solid #e0e0e0; | ||
15 | + li { | ||
16 | + float: left; | ||
17 | + width: 158rem / $pxConvertRem; | ||
18 | + height: 174rem / $pxConvertRem; | ||
19 | + border-bottom: 1px solid #e0e0e0; | ||
20 | + border-left: 1px solid #e0e0e0; | ||
21 | + .img-box { | ||
22 | + width: 100%; | ||
23 | + height: 138rem / $pxConvertRem; | ||
24 | + text-align: center; | ||
25 | + vertical-align: middle; | ||
26 | + img { | ||
27 | + max-width: 100%; | ||
28 | + max-height: 100%; | ||
29 | + vertical-align: middle; | ||
30 | + } | ||
31 | + } | ||
32 | + | ||
33 | + } | ||
34 | + } | ||
35 | +} |
@@ -92,4 +92,4 @@ a { | @@ -92,4 +92,4 @@ a { | ||
92 | @include border-radius(10px); | 92 | @include border-radius(10px); |
93 | } | 93 | } |
94 | 94 | ||
95 | -@import "layout/header", "layout/footer", "good", "filter", "passport/index", "guang/index", "home/index", "category/index", "product/index", "index/index"; | ||
95 | +@import "layout/header", "layout/footer", "good", "filter", "passport/index", "guang/index", "home/index", "category/index","category/brand", "product/index", "index/index"; |
-
Please register or login to post a comment