Merge branch 'feature/cart' of git.dev.yoho.cn:web/yohobuy into feature/cart
Showing
10 changed files
with
18 additions
and
7 deletions
@@ -620,7 +620,7 @@ class Helpers | @@ -620,7 +620,7 @@ class Helpers | ||
620 | foreach ($value['goods_list'] as $single) { | 620 | foreach ($value['goods_list'] as $single) { |
621 | $oneGoods['id'] = $single['product_skn']; | 621 | $oneGoods['id'] = $single['product_skn']; |
622 | $oneGoods['name'] = $single['product_name']; | 622 | $oneGoods['name'] = $single['product_name']; |
623 | - $oneGoods['thumb'] = !empty($single['goods_images']) ? Images::getImageUrl($single['goods_images'], 120, 120) : ''; | 623 | + $oneGoods['thumb'] = !empty($single['goods_images']) ? Images::getImageUrl($single['goods_images'], 120, 160) : ''; |
624 | $oneGoods['appearDate'] = '12月'; // 目前app接口没有返回该数据 | 624 | $oneGoods['appearDate'] = '12月'; // 目前app接口没有返回该数据 |
625 | $oneGoods['price'] = $single['last_price']; | 625 | $oneGoods['price'] = $single['last_price']; |
626 | $oneGoods['marketPrice'] = $single['market_price']; | 626 | $oneGoods['marketPrice'] = $single['market_price']; |
@@ -44,6 +44,10 @@ | @@ -44,6 +44,10 @@ | ||
44 | 44 | ||
45 | &:before { | 45 | &:before { |
46 | content: '赠品'; | 46 | content: '赠品'; |
47 | + display: block; | ||
48 | + font-size: 12px; | ||
49 | + line-height: 25rem / $pxConvertRem; | ||
50 | + transform: scale(0.833); | ||
47 | } | 51 | } |
48 | } | 52 | } |
49 | 53 | ||
@@ -52,6 +56,7 @@ | @@ -52,6 +56,7 @@ | ||
52 | } | 56 | } |
53 | 57 | ||
54 | .name { | 58 | .name { |
59 | + width: 440rem / $pxConvertRem; | ||
55 | font-size: 28rem / $pxConvertRem; | 60 | font-size: 28rem / $pxConvertRem; |
56 | } | 61 | } |
57 | 62 | ||
@@ -74,8 +79,14 @@ | @@ -74,8 +79,14 @@ | ||
74 | } | 79 | } |
75 | 80 | ||
76 | .price { | 81 | .price { |
82 | + margin-left: 10rem / $pxConvertRem; | ||
77 | font-size: 24rem / $pxConvertRem; | 83 | font-size: 24rem / $pxConvertRem; |
78 | - color: #000; | 84 | + color: #f1545b; |
85 | + | ||
86 | + &.market-price { | ||
87 | + color: #999; | ||
88 | + text-decoration: line-through; | ||
89 | + } | ||
79 | } | 90 | } |
80 | 91 | ||
81 | .count { | 92 | .count { |
@@ -96,9 +107,9 @@ | @@ -96,9 +107,9 @@ | ||
96 | } | 107 | } |
97 | 108 | ||
98 | .title { | 109 | .title { |
99 | - height: 50rem / $pxConvertRem; | ||
100 | - line-height: 50rem / $pxConvertRem; | ||
101 | - padding-left: 20rem / $pxConvertRem; | 110 | + height: 60rem / $pxConvertRem; |
111 | + line-height: 60rem / $pxConvertRem; | ||
112 | + padding: 0 20rem / $pxConvertRem; | ||
102 | font-size: 24rem / $pxConvertRem; | 113 | font-size: 24rem / $pxConvertRem; |
103 | background: #f8f8f8; | 114 | background: #f8f8f8; |
104 | } | 115 | } |
@@ -158,5 +158,5 @@ a { | @@ -158,5 +158,5 @@ a { | ||
158 | @import "category/index"; | 158 | @import "category/index"; |
159 | @import "product/index"; | 159 | @import "product/index"; |
160 | @import "index/index"; | 160 | @import "index/index"; |
161 | -@import "shopping-cart/index"; | 161 | +@import "cart/index"; |
162 | @import "me/index"; //个人中心 | 162 | @import "me/index"; //个人中心 |
@@ -22,7 +22,7 @@ | @@ -22,7 +22,7 @@ | ||
22 | <span class="price"> | 22 | <span class="price"> |
23 | ¥{{price}} | 23 | ¥{{price}} |
24 | </span> | 24 | </span> |
25 | - <span class="price"> | 25 | + <span class="price market-price"> |
26 | ¥{{marketPrice}} | 26 | ¥{{marketPrice}} |
27 | </span> | 27 | </span> |
28 | <span class="count"> | 28 | <span class="count"> |
-
Please register or login to post a comment