...
|
...
|
@@ -10,7 +10,8 @@ |
|
|
</a>
|
|
|
</a>
|
|
|
<div class="price">
|
|
|
<span class="discount" v-if="item.sales_price">¥{{item.sales_price}}</span>
|
|
|
<span class="sale" :class="{'discount': item.sales_price !== item.market_price}" v-if="item.sales_price">¥{{item
|
|
|
.sales_price}}</span>
|
|
|
<span class="market" :class="{'line-through': item.sales_price}" v-if="item.sales_price !== item.market_price">¥{{item.market_price}}</span>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
@@ -70,13 +71,17 @@ export default { |
|
|
text-overflow: ellipsis;
|
|
|
}
|
|
|
|
|
|
.price .discount {
|
|
|
.price .sale {
|
|
|
margin-top: 10px;
|
|
|
color: #f00;
|
|
|
color: #b0b0b0;
|
|
|
font-size: 22px;
|
|
|
display: inline-block;
|
|
|
margin-left: 7px;
|
|
|
vertical-align: bottom;
|
|
|
|
|
|
&.discount {
|
|
|
color: #000;
|
|
|
}
|
|
|
}
|
|
|
|
|
|
.price .market {
|
...
|
...
|
|