订单详情增加打折优惠展示
This commit is contained in:
parent
0366e6d595
commit
33e872afab
|
|
@ -176,22 +176,28 @@
|
||||||
<text>{{vipDiscountPrice}}</text>
|
<text>{{vipDiscountPrice}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view> -->
|
||||||
|
<view class="u-flex u-row-between u-m-b-18" v-if="orderInfo.discountAmount*1>0">
|
||||||
<view class="u-flex u-row-between ">
|
<view>打折</view>
|
||||||
|
<view class="color-red">
|
||||||
|
<text>¥</text>
|
||||||
|
<text>{{orderInfo.discountAmount}}</text>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="u-flex u-row-between " v-if="orderInfo.fullCouponDiscountAmount*1>0">
|
||||||
<view>满减券抵扣</view>
|
<view>满减券抵扣</view>
|
||||||
<view class="color-red">
|
<view class="color-red">
|
||||||
<text>¥</text>
|
<text>¥</text>
|
||||||
<text>{{orderInfo.fullCouponDiscountAmount}}</text>
|
<text>{{orderInfo.fullCouponDiscountAmount}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="u-flex u-row-between u-m-t-18">
|
<view class="u-flex u-row-between u-m-t-18" v-if="orderInfo.productCouponDiscountAmount||productCoupPrice">
|
||||||
<view>商品券抵扣</view>
|
<view>商品券抵扣</view>
|
||||||
<view class="color-red">
|
<view class="color-red">
|
||||||
<text>¥</text>
|
<text>¥</text>
|
||||||
<text>{{orderInfo.productCouponDiscountAmount||productCoupPrice}}</text>
|
<text>{{orderInfo.productCouponDiscountAmount||productCoupPrice}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="u-flex u-row-between u-m-t-18">
|
<view class="u-flex u-row-between u-m-t-18" v-if="orderInfo.pointsDiscountAmount">
|
||||||
<view>积分抵扣</view>
|
<view>积分抵扣</view>
|
||||||
<view class="color-red">
|
<view class="color-red">
|
||||||
<text>¥</text>
|
<text>¥</text>
|
||||||
|
|
@ -349,7 +355,7 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
const youhuiAllPrice=computed(()=>{
|
const youhuiAllPrice=computed(()=>{
|
||||||
return (freePrice.value*1+vipDiscountPrice.value*1+props.orderInfo.fullCouponDiscountAmount+props.orderInfo.pointsDiscountAmount+productCoupPrice.value*1).toFixed(2)
|
return (freePrice.value*1+vipDiscountPrice.value*1+props.orderInfo.fullCouponDiscountAmount+props.orderInfo.pointsDiscountAmount+productCoupPrice.value*1+(props.orderInfo.discountAmount||0)).toFixed(2)
|
||||||
})
|
})
|
||||||
const packFee = computed(() => {
|
const packFee = computed(() => {
|
||||||
const goodsPrice = props.data.reduce((prve, cur) => {
|
const goodsPrice = props.data.reduce((prve, cur) => {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue