...
|
...
|
@@ -4,7 +4,7 @@ |
|
|
:key="index" :class="(index) % 2 === 0 && 'magrin-right'">
|
|
|
<div class="item-top">
|
|
|
<div class="item-price">
|
|
|
<span class="price-flag">{{product.available_now_price && '¥'}}</span><span>{{product.available_now_price || ' '}}</span>
|
|
|
<span class="price-flag">{{product[priceKey] && '¥'}}</span><span>{{product[priceKey] || ' '}}</span>
|
|
|
</div>
|
|
|
<div class="item-sales">{{product.sales && product.sales + '人付款'}}</div>
|
|
|
</div>
|
...
|
...
|
@@ -22,6 +22,10 @@ export default { |
|
|
props: {
|
|
|
list: Array,
|
|
|
yasParams: Object,
|
|
|
priceKey: {
|
|
|
type: String,
|
|
|
default: 'available_now_price',
|
|
|
},
|
|
|
},
|
|
|
data: function() {
|
|
|
return {
|
...
|
...
|
|