Merge branch 'hotfix/brand-error-channel' into 'master'
changed: 商品列表页、猜你喜欢价格颜色修改 See merge request !43
Showing
3 changed files
with
10 additions
and
5 deletions
@@ -49,7 +49,7 @@ module.exports = { | @@ -49,7 +49,7 @@ module.exports = { | ||
49 | color: req.query.color, | 49 | color: req.query.color, |
50 | price: req.query.price, | 50 | price: req.query.price, |
51 | size: req.query.size, | 51 | size: req.query.size, |
52 | - pd: req.query.pd, | 52 | + pd: req.query.p_d, |
53 | tagsFilter: req.query.tagsFilter | 53 | tagsFilter: req.query.tagsFilter |
54 | }).then(result => { | 54 | }).then(result => { |
55 | res.json(result); | 55 | res.json(result); |
@@ -10,7 +10,8 @@ | @@ -10,7 +10,8 @@ | ||
10 | </a> | 10 | </a> |
11 | </a> | 11 | </a> |
12 | <div class="price"> | 12 | <div class="price"> |
13 | - <span class="discount" v-if="item.sales_price">¥{{item.sales_price}}</span> | 13 | + <span class="sale" :class="{'discount': item.sales_price !== item.market_price}" v-if="item.sales_price">¥{{item |
14 | + .sales_price}}</span> | ||
14 | <span class="market" :class="{'line-through': item.sales_price}" v-if="item.sales_price !== item.market_price">¥{{item.market_price}}</span> | 15 | <span class="market" :class="{'line-through': item.sales_price}" v-if="item.sales_price !== item.market_price">¥{{item.market_price}}</span> |
15 | </div> | 16 | </div> |
16 | </div> | 17 | </div> |
@@ -70,13 +71,17 @@ export default { | @@ -70,13 +71,17 @@ export default { | ||
70 | text-overflow: ellipsis; | 71 | text-overflow: ellipsis; |
71 | } | 72 | } |
72 | 73 | ||
73 | - .price .discount { | 74 | + .price .sale { |
74 | margin-top: 10px; | 75 | margin-top: 10px; |
75 | - color: #f00; | 76 | + color: #b0b0b0; |
76 | font-size: 22px; | 77 | font-size: 22px; |
77 | display: inline-block; | 78 | display: inline-block; |
78 | margin-left: 7px; | 79 | margin-left: 7px; |
79 | vertical-align: bottom; | 80 | vertical-align: bottom; |
81 | + | ||
82 | + &.discount { | ||
83 | + color: #000; | ||
84 | + } | ||
80 | } | 85 | } |
81 | 86 | ||
82 | .price .market { | 87 | .price .market { |
-
Please register or login to post a comment