|
|
@@ -51,12 +51,12 @@ |
|
|
|
<view style="display: flex;justify-content: space-between;align-items: center;"> |
|
|
|
<view class="price-box" v-if="flash == false"> |
|
|
|
<text class="price-tip">¥</text> |
|
|
|
<text class="price">{{specProduct.sales_price}}</text> |
|
|
|
<text class="m-price" v-if="specProduct.market_price">¥{{specProduct.market_price}}</text> |
|
|
|
<text class="price">{{specProduct.sales_price|million}}</text> |
|
|
|
<text class="m-price" v-if="specProduct.market_price">¥{{specProduct.market_price|million}}</text> |
|
|
|
<text class="coupon-tip" v-if="specProduct.market_price > 0 && specProduct.market_price > specProduct.sales_price">{{(specProduct.sales_price/specProduct.market_price*10).toFixed(1)}}折</text> |
|
|
|
</view> |
|
|
|
<view class="bot-row"> |
|
|
|
<text>已售: {{product.sales}}</text> |
|
|
|
<text>已售: {{product.sales}}+</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view style="display: flex;justify-content: space-between;align-items: center;"> |
|
|
@@ -240,6 +240,12 @@ |
|
|
|
ProgressBar, |
|
|
|
uniCountdown |
|
|
|
}, |
|
|
|
filters: { |
|
|
|
million: function (value) { |
|
|
|
if (!value) return 0; |
|
|
|
return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ","); // 将整数部分逢三一断 |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
...mapGetters(['userInfo', 'hasLogin']), |
|
|
|
|
|
|
|