|
|
@@ -46,7 +46,7 @@ |
|
|
|
<view class="right"> |
|
|
|
<text class="title clamp" style="margin-bottom: 25px">{{item.title}}</text> |
|
|
|
<view class="price-box"> |
|
|
|
<view class="price">¥{{item.sales_price|million}} |
|
|
|
<view class="price">{{item.sales_price|million}}₫ |
|
|
|
</view> |
|
|
|
<!-- <text class="number">x 1</text> --> |
|
|
|
<uni-number-box v-if="progress.number" class="step" :min="1" |
|
|
@@ -100,7 +100,7 @@ |
|
|
|
<view class="yt-list"> |
|
|
|
<view class="yt-list-cell b-b"> |
|
|
|
<view class="cell-tit clamp">Tổng</view> |
|
|
|
<view class="cell-tip">¥{{price|million}}</view> |
|
|
|
<view class="cell-tip">{{price|million}}₫</view> |
|
|
|
</view> |
|
|
|
<view class="yt-list-cell b-b" v-if="couponList && couponList.length"> |
|
|
|
<view class="cell-tit clamp">优惠金额</view> |
|
|
@@ -129,8 +129,7 @@ |
|
|
|
<view class="footer"> |
|
|
|
<view class="price-content"> |
|
|
|
<text>Số tiền cần thanh toán</text> |
|
|
|
<text class="price-tip">¥</text> |
|
|
|
<text class="price">{{total|million}}</text> |
|
|
|
<text class="price">{{total|million}}₫</text> |
|
|
|
</view> |
|
|
|
<text class="submit" @click="submit">Đặt hàng</text> |
|
|
|
</view> |
|
|
@@ -318,7 +317,7 @@ |
|
|
|
filters: { |
|
|
|
million: function (value) { |
|
|
|
if (!value) return 0; |
|
|
|
return value.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."); // 将整数部分逢三一断 |
|
|
|
return parseInt(value.replace(/\,/g, "")).toFixed(0).toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."); // 将整数部分逢三一断 |
|
|
|
} |
|
|
|
}, |
|
|
|
methods: { |
|
|
|