Authored by zzzzzzz

新楼层1%

@@ -73,3 +73,5 @@ @@ -73,3 +73,5 @@
73 {{> resources/six-lines-floor}} 73 {{> resources/six-lines-floor}}
74 {{/if}} 74 {{/if}}
75 {{/content}} 75 {{/content}}
  76 +{{! 新新人专享}}
  77 + {{> resources/new-user-floor}}
  1 +<div class="new-user-floor">
  2 + {{> common/floor-header-more}}
  3 + <div class="new-user-icon">新人专享</div>
  4 + <a>
  5 + <img src="" alt="banner" class="new-user-banner" />
  6 + </a>
  7 + <div class="new-user-goods-container" style="background-image:url('//img11.static.yhbimg.com/yhb-img01/2016/09/06/20/0143eec063536a3af7a94cc8aa389053de.jpg?imageView2/2/w/640/h/200/q/90')">
  8 + <ul>
  9 + <li class="new-user-good">
  10 + <img src="" alt="" class="goods-pic" />
  11 + <div class="goods-info"></div>
  12 + </li>
  13 + </ul>
  14 + </div>
  15 +</div>
@@ -48,6 +48,7 @@ @@ -48,6 +48,7 @@
48 "babel-plugin-transform-runtime": "^6.12.0", 48 "babel-plugin-transform-runtime": "^6.12.0",
49 "babel-preset-es2015": "^6.14.0", 49 "babel-preset-es2015": "^6.14.0",
50 "babel-runtime": "^6.11.6", 50 "babel-runtime": "^6.11.6",
  51 + "css-loader": "^0.25.0",
51 "eslint": "^3.7.1", 52 "eslint": "^3.7.1",
52 "eslint-config-yoho": "^1.0.1", 53 "eslint-config-yoho": "^1.0.1",
53 "eslint-plugin-html": "^1.5.2", 54 "eslint-plugin-html": "^1.5.2",

18.4 KB | W: | H:

26.5 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
@@ -2,6 +2,7 @@ @@ -2,6 +2,7 @@
2 position: relative; 2 position: relative;
3 margin: 30px 0 0; 3 margin: 30px 0 0;
4 height: 200px; 4 height: 200px;
  5 + border-bottom: 1px solid #e0e0e0;
5 overflow: hidden; 6 overflow: hidden;
6 7
7 img { 8 img {
@@ -14,9 +14,7 @@ @@ -14,9 +14,7 @@
14 position: relative; 14 position: relative;
15 height: 99px; 15 height: 99px;
16 line-height: 99px; 16 line-height: 99px;
17 - margin: 29px 0 0;  
18 - background: #fff;  
19 - border-top: 1px solid #e0e0e0; 17 + background: #f0f0f0;
20 text-align: center; 18 text-align: center;
21 font-size: 32px; 19 font-size: 32px;
22 color: #444; 20 color: #444;
@@ -26,6 +26,7 @@ @@ -26,6 +26,7 @@
26 @import "seckill"; 26 @import "seckill";
27 @import "three-picture"; 27 @import "three-picture";
28 @import "six-lines-floor"; 28 @import "six-lines-floor";
  29 +@import "new-user-floor";
29 30
30 .mobile-container { 31 .mobile-container {
31 margin-left: auto; 32 margin-left: auto;
1 .hot-brands { 1 .hot-brands {
2 border-bottom: 1px solid #e0e0e0; 2 border-bottom: 1px solid #e0e0e0;
3 background: #fff; 3 background: #fff;
4 - margin-top: 30px;  
5 4
6 .floor-header { 5 .floor-header {
7 width: 100%; 6 width: 100%;
1 .hot-category { 1 .hot-category {
2 - margin: 30px 0 0;  
3 border-bottom: 1px solid #e0e0e0; 2 border-bottom: 1px solid #e0e0e0;
4 3
5 .category-banner { 4 .category-banner {
  1 +.new-user-floor {
  2 + position: relative;
  3 + background: #fff;
  4 + -webkit-overflow-scrolling: touch;
  5 +
  6 + .new-user-icon {
  7 + position: absolute;
  8 + bottom: 26px;
  9 + left: 0;
  10 + height: 171px;
  11 + width: 35px;
  12 + font-size: 22px;
  13 + color: #fff;
  14 + text-align: center;
  15 + letter-spacing: 4px;
  16 + line-height: 2;
  17 + background: resolve('channel/new-user.png');
  18 + background-size: 100% 100%;
  19 + writing-mode: tb-rl;
  20 + -webkit-writing-mode: tb-rl;
  21 + -ms-writing-mode: tb-rl;
  22 + }
  23 +}
  24 +
  25 +.new-user-banner {
  26 + height: 200px;
  27 + width: 100%;
  28 + overflow: hidden;
  29 +}
  30 +
  31 +.new-user-goods-container {
  32 + height: 213px;
  33 + width: 100%;
  34 + overflow-x: scroll;
  35 + overflow-y: hidden;
  36 + background-size: 100% 100%;
  37 +
  38 + ul {
  39 + padding: 17px 0 26px 50px;
  40 + white-space: nowrap;
  41 + }
  42 +
  43 + .new-user-good {
  44 + display: inline-block;
  45 + height: 171px;
  46 + width: 256px;
  47 + background: #ccc;
  48 + margin-right: 16px;
  49 + }
  50 +
  51 + .goods-pic {
  52 + height: 100%;
  53 + width: 50%;
  54 + }
  55 +
  56 + .goods-info {
  57 + height: 100%;
  58 + width: 50%;
  59 + }
  60 +}
1 .hot-category { 1 .hot-category {
2 - margin: 30px 0 0;  
3 border-bottom: 1px solid #e0e0e0; 2 border-bottom: 1px solid #e0e0e0;
4 3
5 .category-banner { 4 .category-banner {