Authored by 阿达

全部商品模板

1 -@import "new-arrival", "discount", "list", "detail", "suspend-cart", "hot-rank", "_recommend-for-you.scss", "limit", "_shop-index"; 1 +@import "new-arrival", "discount", "list", "detail", "suspend-cart", "hot-rank", "_recommend-for-you.scss", "limit", "_shop-index", "product-category", "shop-prodfile";
  1 +.product-category {
  2 + font-size: 30rem / $pxConvertRem;
  3 + background-color: #fff;
  4 +
  5 + .allproduct {
  6 + position: relative;
  7 + padding: 15px 0px;
  8 + background: #f8f8f8;
  9 + border-top: 15px;
  10 + border-bottom: 15px;
  11 + padding-left: 32rem / $pxConvertRem;
  12 + border-top: 1px solid #e6e6e6;
  13 + }
  14 +
  15 + .margin-under-allproduct{
  16 + width: 100%;
  17 + height: 30rem / $pxConvertRem;
  18 + background-color: #f0f0f0;
  19 + }
  20 +
  21 + .category-container{
  22 + border-top: 1px solid #e6e6e6;
  23 + }
  24 + .arrow-icon {
  25 + position: absolute;
  26 + font-size: 12px;
  27 + top: 15px;
  28 + right: 20px;
  29 + }
  30 +
  31 + .allproductParagaraph {
  32 + font-size: 18px;
  33 + left: 20px;
  34 + }
  35 +
  36 + .content {
  37 + background: #f8f8f8;
  38 +
  39 + &.hide {
  40 + display: none;
  41 + }
  42 + }
  43 +
  44 + .primary-level {
  45 + float: left;
  46 + box-sizing: border-box;
  47 + width: 100%;
  48 + position: absolute;
  49 + > li {
  50 + position:relative;
  51 + height: 89rem / $pxConvertRem;
  52 + line-height: 89rem / $pxConvertRem;
  53 + padding-left: 32rem / $pxConvertRem;
  54 + box-sizing: border-box;
  55 + border-bottom: 1px solid #e6e6e6;
  56 + background-color: #fff;
  57 + }
  58 + }
  59 +
  60 + .primary-level-trilangle{
  61 + float:right;
  62 + margin-right:56%;
  63 + }
  64 +
  65 + .trilanglefont {
  66 + font-family: "iconfont" !important;
  67 + font-size: 30px;
  68 + font-style: normal;
  69 + text-decoration: none;
  70 + -webkit-font-smoothing: antialiased;
  71 + -webkit-text-stroke-width: 0.2px;
  72 + -moz-osx-font-smoothing: grayscale;
  73 + color: #f4f4f4;
  74 + }
  75 +
  76 +
  77 + .sub-level-container {
  78 + float: right;
  79 + box-sizing: border-box;
  80 + background: #f4f4f4;
  81 + width: 55%;
  82 + height: 100%;
  83 + position: relative;
  84 + }
  85 +
  86 + .sub-level {
  87 + width: 100%;
  88 +
  89 + &.hide {
  90 + display: none;
  91 + }
  92 +
  93 + > li {
  94 + box-sizing: border-box;
  95 + height: 89rem / $pxConvertRem;
  96 + line-height: 89rem / $pxConvertRem;
  97 + border-bottom: 1px solid #e6e6e6;
  98 + padding-left: 2rem / $pxConvertRem;
  99 + //border-left: 50rem / $pxConvertRem;
  100 + margin-left: 30rem / $pxConvertRem;
  101 +
  102 + &.highlight {
  103 + background: #dbdbdb;
  104 + }
  105 +
  106 + &:last-child {
  107 + border-bottom: none;
  108 + }
  109 + }
  110 +
  111 + a {
  112 + display: block;
  113 + height: 100%;
  114 + width: 100%;
  115 + color: #afafaf;
  116 + }
  117 + }
  118 +}
  1 +.shop-introduce{
  2 + .banner {
  3 + margin: 30px auto;
  4 + width: auto;
  5 + height: auto;
  6 + display: block;
  7 + background-size: 100%;
  8 + }
  9 +
  10 + .descripition {
  11 + margin: 40px 20px 0px 20px;
  12 + font-size: 16px;
  13 + line-height: 22px;
  14 + padding: 20px 0;
  15 + border-top: 1px solid #e6e6e6;
  16 + border-bottom: 1px solid #e6e6e6;
  17 + text-indent:2em;
  18 + }
  19 +
  20 + .sign-icon {
  21 + font-size: 20px;
  22 + height: 40px;
  23 + line-height: 40px;
  24 + text-align: center;
  25 + font-weight: 100;
  26 + }
  27 +
  28 + .sign-icon > span {
  29 + width:auto;
  30 + }
  31 +}
  32 +
  33 +.brand{
  34 + .brand-list{
  35 + margin-left: 20px;
  36 + font-size: 18px;
  37 + border-bottom: 1px solid #e6e6e6;
  38 + text-align: left;
  39 + height: 44px;
  40 + line-height: 44px;
  41 + vertical-align:middle;
  42 + display: block;
  43 + width: 100%;
  44 + }
  45 +}
@@ -16,7 +16,7 @@ @@ -16,7 +16,7 @@
16 text-indent:2em; 16 text-indent:2em;
17 } 17 }
18 18
19 -.fo { 19 +.sign-icon {
20 font-size: 20px; 20 font-size: 20px;
21 height: 40px; 21 height: 40px;
22 line-height: 40px; 22 line-height: 40px;
@@ -24,7 +24,7 @@ @@ -24,7 +24,7 @@
24 font-weight: 100; 24 font-weight: 100;
25 } 25 }
26 26
27 -.fo > span { 27 +.sign-icon > span {
28 width:auto; 28 width:auto;
29 } 29 }
30 30
  1 +{{> layout/header}}
  2 + <div class="good-list-page yoho-page">
  3 + {{> product/list}}
  4 + </div>
  5 +{{> layout/footer}}
1 {{> layout/header}} 1 {{> layout/header}}
2 -<div> 2 +<div class="shop-introduce">
3 <a class="banner"> 3 <a class="banner">
4 <img src="{{content.shop_logo}}"> 4 <img src="{{content.shop_logo}}">
5 </a> 5 </a>
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 {{content.shop_intro}} 8 {{content.shop_intro}}
9 </div> 9 </div>
10 10
11 - <p class="fo"> 11 + <p class="sign-icon">
12 <span class="iconfont">&#xe649;</span> 12 <span class="iconfont">&#xe649;</span>
13 100%品牌授权正品 13 100%品牌授权正品
14 </p> 14 </p>
  1 +{{> layout/header}}
  2 + {{# brands}}
  3 + <a class="brand-list" href="{{url}}">
  4 + {{brandname}}
  5 + </a>
  6 + {{/ brands}}
  7 +{{> layout/footer}}
  1 +{{> layout/header}}
  2 +
  3 +<div class="product-category yoho-page">
  4 +
  5 + <div id="allproduct" class="allproduct">
  6 + <a href={{allproduct}}>
  7 + <p class="allproductParagaraph">全部商品</p>
  8 + <i class="arrow-icon iconfont">&#xe614;</i>
  9 + </a>
  10 + </div>
  11 + <div class="margin-under-allproduct">
  12 + </div>
  13 + <div class="category-container clearfix">
  14 + <div class="content">
  15 + {{# content}}
  16 + <ul class="primary-level">
  17 + {{# class}}
  18 + <li class="p-level-item">{{name}}
  19 + <div class="primary-level-trilangle trilanglefont hide">&#xe64a;</div>
  20 + </li>{{/ class}}
  21 + </ul>
  22 + <div class="sub-level-container hide">
  23 + {{# category}}
  24 + <ul class="sub-level">
  25 + {{# subcategory}}
  26 + <li>
  27 + <a href={{url}}>
  28 + {{category_name}}
  29 + </a>
  30 + </li>
  31 + {{/ subcategory}}
  32 + </ul>
  33 + {{/ category}}
  34 + </div>
  35 + {{/ content}}
  36 + </div>
  37 +</div>
  38 +
  39 +</div>
  40 +{{> layout/footer}}
  1 +{{> layout/header}}
  2 +<div class="shop-introduce">
  3 + <a class="banner">
  4 + <img src="{{content.shop_logo}}">
  5 + </a>
  6 +
  7 + <div class="descripition">
  8 + {{content.shop_intro}}
  9 + </div>
  10 +
  11 + <p class="sign-icon">
  12 + <span class="iconfont">&#xe649;</span>
  13 + 100%品牌授权正品
  14 + </p>
  15 +</div>
  16 +{{> layout/footer}}