Showing
7 changed files
with
44 additions
and
11 deletions
@@ -749,6 +749,7 @@ class Helpers | @@ -749,6 +749,7 @@ class Helpers | ||
749 | $oneGoods['isStudents'] = $value['sales_price'] !== $value['last_vip_price'] && $value['discount_tag'] === 'S'; | 749 | $oneGoods['isStudents'] = $value['sales_price'] !== $value['last_vip_price'] && $value['discount_tag'] === 'S'; |
750 | $oneGoods['count'] = $value['buy_number']; | 750 | $oneGoods['count'] = $value['buy_number']; |
751 | $oneGoods['promotion_id'] = $value['promotion_id']; | 751 | $oneGoods['promotion_id'] = $value['promotion_id']; |
752 | + $oneGoods['factoryColor'] = $value['factory_goods_name'] ? $value['factory_goods_name'] : $value['color_name']; | ||
752 | 753 | ||
753 | if ($isValid) { | 754 | if ($isValid) { |
754 | // 库存不足 | 755 | // 库存不足 |
@@ -103,17 +103,21 @@ | @@ -103,17 +103,21 @@ | ||
103 | } | 103 | } |
104 | 104 | ||
105 | .block { | 105 | .block { |
106 | - float: left; | ||
107 | display: block; | 106 | display: block; |
107 | + float: left; | ||
108 | box-sizing: border-box; | 108 | box-sizing: border-box; |
109 | - padding: 0 20px; | ||
110 | - min-width: 80px; | ||
111 | - height: 80px; | 109 | + margin-right: 0.75rem; |
110 | + margin-bottom: 0.75rem; | ||
111 | + padding: 0 0.5rem; | ||
112 | + min-width: 2rem; | ||
113 | + max-width: 12rem; | ||
114 | + height: 2rem; | ||
112 | border: 1px solid #000; | 115 | border: 1px solid #000; |
113 | - margin-right: 30px; | ||
114 | - margin-bottom: 30px; | ||
115 | - line-height: 80px; | ||
116 | text-align: center; | 116 | text-align: center; |
117 | + line-height: 2rem; | ||
118 | + white-space: nowrap; | ||
119 | + text-overflow: ellipsis; | ||
120 | + overflow: hidden; | ||
117 | 121 | ||
118 | &.chosed { | 122 | &.chosed { |
119 | border-color: #e10; | 123 | border-color: #e10; |
@@ -103,10 +103,20 @@ | @@ -103,10 +103,20 @@ | ||
103 | } | 103 | } |
104 | 104 | ||
105 | .color, .size { | 105 | .color, .size { |
106 | + display: inline-block; | ||
106 | font-size: 0.6rem; | 107 | font-size: 0.6rem; |
107 | color: #b6b6b6; | 108 | color: #b6b6b6; |
108 | } | 109 | } |
109 | 110 | ||
111 | + .color { | ||
112 | + display: inline-block; | ||
113 | + max-width: 5.5rem; | ||
114 | + text-overflow: ellipsis; | ||
115 | + overflow: hidden; | ||
116 | + white-space: nowrap; | ||
117 | + vertical-align: bottom; | ||
118 | + } | ||
119 | + | ||
110 | .appear-date { | 120 | .appear-date { |
111 | float: left; | 121 | float: left; |
112 | color: $cartRed; | 122 | color: $cartRed; |
@@ -376,6 +376,15 @@ | @@ -376,6 +376,15 @@ | ||
376 | } | 376 | } |
377 | } | 377 | } |
378 | 378 | ||
379 | + .row .color { | ||
380 | + display: inline-block; | ||
381 | + max-width: 5.5rem; | ||
382 | + text-overflow: ellipsis; | ||
383 | + overflow: hidden; | ||
384 | + white-space: nowrap; | ||
385 | + vertical-align: bottom; | ||
386 | + } | ||
387 | + | ||
379 | .color, .size { | 388 | .color, .size { |
380 | color: #b6b6b6; | 389 | color: #b6b6b6; |
381 | } | 390 | } |
@@ -319,6 +319,14 @@ | @@ -319,6 +319,14 @@ | ||
319 | margin-right: 15px; | 319 | margin-right: 15px; |
320 | } | 320 | } |
321 | } | 321 | } |
322 | + .row .color { | ||
323 | + display: inline-block; | ||
324 | + max-width: 5.5rem; | ||
325 | + text-overflow: ellipsis; | ||
326 | + overflow: hidden; | ||
327 | + white-space: nowrap; | ||
328 | + vertical-align: bottom; | ||
329 | + } | ||
322 | 330 | ||
323 | .color, .size { | 331 | .color, .size { |
324 | color: #b6b6b6; | 332 | color: #b6b6b6; |
@@ -26,9 +26,9 @@ | @@ -26,9 +26,9 @@ | ||
26 | ×{{count}} | 26 | ×{{count}} |
27 | </span> | 27 | </span> |
28 | <p class="row color-size-row"> | 28 | <p class="row color-size-row"> |
29 | - {{#if color}} | 29 | + {{#if factoryColor}} |
30 | <span class="color"> | 30 | <span class="color"> |
31 | - 颜色:{{color}} | 31 | + 颜色:{{factoryColor}} |
32 | </span> | 32 | </span> |
33 | {{/if}} | 33 | {{/if}} |
34 | 34 |
@@ -119,6 +119,7 @@ class CartModel | @@ -119,6 +119,7 @@ class CartModel | ||
119 | } | 119 | } |
120 | while (false); | 120 | while (false); |
121 | 121 | ||
122 | + | ||
122 | return $result; | 123 | return $result; |
123 | } | 124 | } |
124 | 125 | ||
@@ -495,7 +496,7 @@ class CartModel | @@ -495,7 +496,7 @@ class CartModel | ||
495 | $oneGoods['id'] = $single['product_sku']; | 496 | $oneGoods['id'] = $single['product_sku']; |
496 | $oneGoods['thumb'] = Images::getImageUrl($single['goods_images'], 120, 160); | 497 | $oneGoods['thumb'] = Images::getImageUrl($single['goods_images'], 120, 160); |
497 | $oneGoods['name'] = $single['product_name']; | 498 | $oneGoods['name'] = $single['product_name']; |
498 | - $oneGoods['color'] = $single['color_name']; | 499 | + $oneGoods['color'] = $single['factory_goods_name'] ? $single['factory_goods_name'] : $single['color_name']; |
499 | $oneGoods['size'] = $single['size_name']; | 500 | $oneGoods['size'] = $single['size_name']; |
500 | $oneGoods['count'] = $single['buy_number']; | 501 | $oneGoods['count'] = $single['buy_number']; |
501 | $oneGoods['price'] = Helpers::transPrice($single['last_price']); | 502 | $oneGoods['price'] = Helpers::transPrice($single['last_price']); |
@@ -933,7 +934,7 @@ class CartModel | @@ -933,7 +934,7 @@ class CartModel | ||
933 | $oneColor = array(); | 934 | $oneColor = array(); |
934 | $oneColor['id'] = $val['color_id']; | 935 | $oneColor['id'] = $val['color_id']; |
935 | $oneColor['skcId'] = $val['product_skc']; | 936 | $oneColor['skcId'] = $val['product_skc']; |
936 | - $oneColor['name'] = $val['color_name']; | 937 | + $oneColor['name'] = $val['factory_goods_name'] ? $val['factory_goods_name'] : $val['color_name']; |
937 | $oneColor['goodsName'] = $productData['product_name']; | 938 | $oneColor['goodsName'] = $productData['product_name']; |
938 | $oneColor['colorNum'] = $colorNum; | 939 | $oneColor['colorNum'] = $colorNum; |
939 | $colorList[] = $oneColor; | 940 | $colorList[] = $oneColor; |
-
Please register or login to post a comment