Showing
5 changed files
with
87 additions
and
26 deletions
@@ -1060,7 +1060,7 @@ | @@ -1060,7 +1060,7 @@ | ||
1060 | 'navHome': 'sss ', | 1060 | 'navHome': 'sss ', |
1061 | 'navTitle': '商品详情' | 1061 | 'navTitle': '商品详情' |
1062 | }, | 1062 | }, |
1063 | - | 1063 | + |
1064 | 'bannerTop': { | 1064 | 'bannerTop': { |
1065 | 'list': [ | 1065 | 'list': [ |
1066 | { | 1066 | { |
@@ -1069,6 +1069,25 @@ | @@ -1069,6 +1069,25 @@ | ||
1069 | ... | 1069 | ... |
1070 | ] | 1070 | ] |
1071 | }, | 1071 | }, |
1072 | + | ||
1073 | + tags: [ | ||
1074 | + { | ||
1075 | + is_new: true //NEW | ||
1076 | + }, | ||
1077 | + { | ||
1078 | + is_discount: true //SALE | ||
1079 | + }, | ||
1080 | + { | ||
1081 | + is_limited: false //限量商品 | ||
1082 | + }, | ||
1083 | + { | ||
1084 | + is_yohood: // YOHOOD | ||
1085 | + }, | ||
1086 | + { | ||
1087 | + is_advance: true //再到着 | ||
1088 | + } | ||
1089 | + ], | ||
1090 | + | ||
1072 | 'goodsName' : 'Stussy No. 4 BOX TEE ', | 1091 | 'goodsName' : 'Stussy No. 4 BOX TEE ', |
1073 | 'goodsSubtitle' : '【全民拼抢购】经典印花T恤,满4件免一件!', | 1092 | 'goodsSubtitle' : '【全民拼抢购】经典印花T恤,满4件免一件!', |
1074 | 1093 | ||
@@ -1194,7 +1213,7 @@ | @@ -1194,7 +1213,7 @@ | ||
1194 | ... | 1213 | ... |
1195 | ] | 1214 | ] |
1196 | }, | 1215 | }, |
1197 | - | 1216 | + |
1198 | 'washTips' : { | 1217 | 'washTips' : { |
1199 | 'list' : [ | 1218 | 'list' : [ |
1200 | { | 1219 | { |
@@ -1220,6 +1239,7 @@ | @@ -1220,6 +1239,7 @@ | ||
1220 | 1239 | ||
1221 | 'cartInfo' : { | 1240 | 'cartInfo' : { |
1222 | 'numInCart' : 3, | 1241 | 'numInCart' : 3, |
1223 | - 'goodsInstore' : 0 | 1242 | + 'goodsInstore' : 0, |
1243 | + '' | ||
1224 | } | 1244 | } |
1225 | } | 1245 | } |
@@ -30,7 +30,46 @@ $basicBtnC:#eb0313; | @@ -30,7 +30,46 @@ $basicBtnC:#eb0313; | ||
30 | left: pxToRem(30px); | 30 | left: pxToRem(30px); |
31 | right: auto; | 31 | right: auto; |
32 | } | 32 | } |
33 | - | 33 | +.tag-container{ |
34 | + position: absolute; | ||
35 | + left: pxToRem(108px); | ||
36 | + top: pxToRem(40px); | ||
37 | + height: pxToRem(35px); | ||
38 | + // width: pxToRem(70px); | ||
39 | + color: #fff; | ||
40 | + font-size: pxToRem(20px); | ||
41 | + line-height: pxToRem(35px); | ||
42 | + z-index: 2; | ||
43 | + .good-tag{ | ||
44 | + display: inline-block; | ||
45 | + box-sizing: border-box; | ||
46 | + margin-left: .5px; | ||
47 | + font-size: pxToRem(23px); | ||
48 | + text-align: center; | ||
49 | + line-height: pxToRem(35px); | ||
50 | + padding:0 8px; | ||
51 | + } | ||
52 | + .new-tag { | ||
53 | + background-color: #78dc7e; | ||
54 | + color: #fff; | ||
55 | + } | ||
56 | + .renew-tag { | ||
57 | + background-color: #78dc7e; | ||
58 | + color: #fff; | ||
59 | + } | ||
60 | + .sale-tag { | ||
61 | + background-color: #ff575c; | ||
62 | + color: #fff; | ||
63 | + } | ||
64 | + .new-festival-tag { | ||
65 | + background-color: #000; | ||
66 | + color: #fff; | ||
67 | + } | ||
68 | + .limit-tag { | ||
69 | + border: 1px solid #000; | ||
70 | + color: #000; | ||
71 | + } | ||
72 | +} | ||
34 | .good-detail-page { | 73 | .good-detail-page { |
35 | overflow: hidden; | 74 | overflow: hidden; |
36 | background-color: #f0f0f0; | 75 | background-color: #f0f0f0; |
@@ -83,19 +122,6 @@ $basicBtnC:#eb0313; | @@ -83,19 +122,6 @@ $basicBtnC:#eb0313; | ||
83 | position: relative; | 122 | position: relative; |
84 | background-color: #fff; | 123 | background-color: #fff; |
85 | // overflow: hidden; | 124 | // overflow: hidden; |
86 | - .is-new-lable { | ||
87 | - position: absolute; | ||
88 | - left: pxToRem(108px); | ||
89 | - top: pxToRem(40px); | ||
90 | - height: pxToRem(35px); | ||
91 | - width: pxToRem(70px); | ||
92 | - color: #fff; | ||
93 | - text-align: center; | ||
94 | - font-size: pxToRem(20px); | ||
95 | - line-height: pxToRem(35px); | ||
96 | - background-color: #7cd881; | ||
97 | - z-index: 2; | ||
98 | - } | ||
99 | } | 125 | } |
100 | .banner-top { | 126 | .banner-top { |
101 | // width: 100%; | 127 | // width: 100%; |
@@ -13,10 +13,8 @@ | @@ -13,10 +13,8 @@ | ||
13 | <div class="question"> | 13 | <div class="question"> |
14 | <span class="iconfont"></span> | 14 | <span class="iconfont"></span> |
15 | <p> | 15 | <p> |
16 | - {{question}} | ||
17 | - <span class="time"> | ||
18 | - {{time}} | ||
19 | - </span> | 16 | + {{question}}<br> |
17 | + <span class="time">{{time}}</span> | ||
20 | </p> | 18 | </p> |
21 | </div> | 19 | </div> |
22 | 20 |
1 | {{> layout/header}} | 1 | {{> layout/header}} |
2 | <div class="good-detail-page yoho-page"> | 2 | <div class="good-detail-page yoho-page"> |
3 | <div class="banner-container"> | 3 | <div class="banner-container"> |
4 | - <h1 class="is-new-lable">NEW</h1> | 4 | + <div class="tag-container"> |
5 | + {{# tags}} | ||
6 | + {{# is_new}} | ||
7 | + <p class="good-tag new-tag">NEW</p> | ||
8 | + {{/ is_new}} | ||
9 | + {{# is_advance}} | ||
10 | + <p class="good-tag renew-tag">再到着</p> | ||
11 | + {{/ is_advance}} | ||
12 | + {{# is_discount}} | ||
13 | + <p class="good-tag sale-tag">SALE</p> | ||
14 | + {{/ is_discount}} | ||
15 | + {{# is_yohoood}} | ||
16 | + <div class="good-tag yohood-tag"></div> | ||
17 | + {{/ is_yohoood}} | ||
18 | + {{# is_limited}} | ||
19 | + <p class="good-tag limit-tag">限量商品</p> | ||
20 | + {{/ is_limited}} | ||
21 | + {{/ tags}} | ||
22 | + </div> | ||
5 | {{# bannerTop}} | 23 | {{# bannerTop}} |
6 | {{> product/banner-swiper-arrow}} | 24 | {{> product/banner-swiper-arrow}} |
7 | {{/ bannerTop}} | 25 | {{/ bannerTop}} |
@@ -37,10 +37,9 @@ | @@ -37,10 +37,9 @@ | ||
37 | {{# consults}} | 37 | {{# consults}} |
38 | <div class="question"> | 38 | <div class="question"> |
39 | <span class="iconfont"></span> | 39 | <span class="iconfont"></span> |
40 | - <p>{{question}} | ||
41 | - <span class="time"> | ||
42 | - {{time}} | ||
43 | - </span> | 40 | + <p> |
41 | + {{question}} | ||
42 | + <span class="time">{{time}}</span> | ||
44 | </p> | 43 | </p> |
45 | </div> | 44 | </div> |
46 | 45 |
-
Please register or login to post a comment