Showing
4 changed files
with
26 additions
and
3 deletions
@@ -45,6 +45,11 @@ const index = uid => { | @@ -45,6 +45,11 @@ const index = uid => { | ||
45 | `/product/pro_${theGoods.product_id}_${theGoods.goods_id}_${theGoods.cn_alphabet}.html`); | 45 | `/product/pro_${theGoods.product_id}_${theGoods.goods_id}_${theGoods.cn_alphabet}.html`); |
46 | 46 | ||
47 | // TODO:format brand url | 47 | // TODO:format brand url |
48 | + | ||
49 | + // 处理商品是否是赠品 | ||
50 | + if (theGoods.goods_type === 'gift') { | ||
51 | + theGoods.isGift = true; | ||
52 | + } | ||
48 | }); | 53 | }); |
49 | 54 | ||
50 | theData.yoho_coin *= 100; // 有货币稀释 | 55 | theData.yoho_coin *= 100; // 有货币稀释 |
@@ -44,7 +44,7 @@ | @@ -44,7 +44,7 @@ | ||
44 | </a> | 44 | </a> |
45 | </p> | 45 | </p> |
46 | {{#with shopping_cart_data}} | 46 | {{#with shopping_cart_data}} |
47 | - {{#if is_multi_package}} | 47 | + {{#isY is_multi_package}} |
48 | <div class="multi-package-row"> | 48 | <div class="multi-package-row"> |
49 | 温馨提示:您购买的商品<em class="blue">分属不同仓库</em>,需要调拨,将被拆分成多个包裹送达 | 49 | 温馨提示:您购买的商品<em class="blue">分属不同仓库</em>,需要调拨,将被拆分成多个包裹送达 |
50 | <span class="iconfont show-package"></span> | 50 | <span class="iconfont show-package"></span> |
@@ -65,7 +65,7 @@ | @@ -65,7 +65,7 @@ | ||
65 | {{/each}} | 65 | {{/each}} |
66 | </div> | 66 | </div> |
67 | </div> | 67 | </div> |
68 | - {{/if}} | 68 | + {{/isY}} |
69 | {{/with}} | 69 | {{/with}} |
70 | <div class="content"> | 70 | <div class="content"> |
71 | <p class="order-table-head clearfix"> | 71 | <p class="order-table-head clearfix"> |
@@ -79,6 +79,10 @@ | @@ -79,6 +79,10 @@ | ||
79 | <li class="order-goods clearfix"> | 79 | <li class="order-goods clearfix"> |
80 | <a class="goods-img inline-block" href="{{link}}"> | 80 | <a class="goods-img inline-block" href="{{link}}"> |
81 | <img class="lazy" data-original="{{image goods_images 100 148}}"> | 81 | <img class="lazy" data-original="{{image goods_images 100 148}}"> |
82 | + | ||
83 | + {{#if isGift}} | ||
84 | + <span class="gift-tag">赠品</span> | ||
85 | + {{/if}} | ||
82 | </a> | 86 | </a> |
83 | <p class="brand-and-name inline-block"> | 87 | <p class="brand-and-name inline-block"> |
84 | <a class="brand-name" href="{{brandUrl}}">{{brandName}}</a> | 88 | <a class="brand-name" href="{{brandUrl}}">{{brandName}}</a> |
@@ -59,7 +59,7 @@ | @@ -59,7 +59,7 @@ | ||
59 | "uuid": "^2.0.2", | 59 | "uuid": "^2.0.2", |
60 | "winston": "^2.2.0", | 60 | "winston": "^2.2.0", |
61 | "winston-daily-rotate-file": "^1.1.4", | 61 | "winston-daily-rotate-file": "^1.1.4", |
62 | - "yoho-node-lib": "0.0.18" | 62 | + "yoho-node-lib": "0.0.19" |
63 | }, | 63 | }, |
64 | "devDependencies": { | 64 | "devDependencies": { |
65 | "autoprefixer": "^6.3.6", | 65 | "autoprefixer": "^6.3.6", |
@@ -231,6 +231,7 @@ | @@ -231,6 +231,7 @@ | ||
231 | 231 | ||
232 | /* [表格内容]商品图片 */ | 232 | /* [表格内容]商品图片 */ |
233 | .goods-img { | 233 | .goods-img { |
234 | + position: relative; | ||
234 | width: 180px; | 235 | width: 180px; |
235 | padding: 0 40px; | 236 | padding: 0 40px; |
236 | 237 | ||
@@ -238,6 +239,19 @@ | @@ -238,6 +239,19 @@ | ||
238 | width: 100px; | 239 | width: 100px; |
239 | height: 148px; | 240 | height: 148px; |
240 | } | 241 | } |
242 | + | ||
243 | + .gift-tag { | ||
244 | + position: absolute; | ||
245 | + bottom: 0; | ||
246 | + left: 40px; | ||
247 | + right: 40px; | ||
248 | + height: 25px; | ||
249 | + color: #fff; | ||
250 | + background: #379ed6; | ||
251 | + font-size: 12px; | ||
252 | + text-align: center; | ||
253 | + line-height: 25px; | ||
254 | + } | ||
241 | } | 255 | } |
242 | 256 | ||
243 | /* [表格内容]品牌和商品名称 */ | 257 | /* [表格内容]品牌和商品名称 */ |
-
Please register or login to post a comment