|
@@ -61,10 +61,10 @@
|
|
|
¥<text>{{Number(totalAmount).toFixed(2).toString().split('.')[0]}}</text>.{{Number(totalAmount).toFixed(2).toString().split('.')[1]}}
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="flex align_center">
|
|
|
+ <view class="flex align_center" v-if="totalDiscount||totalCoupon">
|
|
|
<view class="cart-footer-left-price-text1">
|
|
|
- <text>优惠:¥{{totalDiscount}}</text>
|
|
|
- <text>代金券:¥{{totalCoupon}}</text>
|
|
|
+ <text v-if="totalDiscount">优惠:¥{{Number(totalDiscount).toFixed(2)}}</text>
|
|
|
+ <text v-if="totalCoupon">代金券:¥{{Number(totalCoupon).toFixed(2)}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -601,7 +601,7 @@
|
|
|
}
|
|
|
// 折扣
|
|
|
if(item.discountType == 'DISCOUNT'){
|
|
|
- this.totalDiscount += Number(item.price * (1-item.resultValue)) * item.qty
|
|
|
+ this.totalDiscount += Number(item.orginPrice*(1-item.resultValue)) * item.qty
|
|
|
}
|
|
|
}
|
|
|
// 满赠
|