|
|
@@ -186,7 +186,7 @@ |
|
|
|
<view v-for="(item, index) in goodsList" :key="index" class="guess-item" @click="navToDetailPage(item)"> |
|
|
|
<view class="image-wrapper"><image :src="item.image" mode="aspectFill"></image></view> |
|
|
|
<text class="title clamp">{{ item.title }}</text> |
|
|
|
<text class="price"><text class="symbol">¥</text> {{ item.sales_price }} <text class="sales"> {{' '+item.sales}}人付款</text></text> |
|
|
|
<text class="price">{{ item.sales_price | million}} ₫<text class="sales"> {{' '+item.sales}}人付款</text></text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view style="text-align: center;margin: 10px 0; padding-bottom: 170upx;">--> |
|
|
@@ -235,6 +235,12 @@ export default { |
|
|
|
computed:{ |
|
|
|
|
|
|
|
}, |
|
|
|
filters: { |
|
|
|
million: function (value) { |
|
|
|
if (!value) return 0; |
|
|
|
return parseInt(value.replace(/\,/g, "")).toFixed(0).toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."); // 将整数部分逢三一断 |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.loadData(); |
|
|
|
}, |
|
|
|