Authored by 梁志锋

brand

  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'));
1 -/**  
2 - * 男首  
3 - * @author: liangzhifeng<zhifeng.liang@yoho.cn>  
4 - * @date: 2015/10/12  
5 - */  
6 - var $ = require('yoho.zepto'),  
7 - lazyLoad = require('yoho.zeptolazyload');  
8 -  
9 -//Init LazyLoad  
10 -lazyLoad($('img.lazy'));  
  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 +}
  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 +}
@@ -29,12 +29,7 @@ @@ -29,12 +29,7 @@
29 vertical-align: middle; 29 vertical-align: middle;
30 } 30 }
31 } 31 }
32 - .category-title {  
33 - line-height: 22rem / $pxConvertRem;  
34 - color: #aaa;  
35 - font-size: 18rem / $pxConvertRem;  
36 - text-align: center;  
37 - } 32 +
38 } 33 }
39 } 34 }
40 } 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";