|
@@ -238,9 +238,10 @@ export default {
|
|
|
this.checkedList = [];
|
|
|
const { memberGrade = [{}], consume = [], memberLevelDiscount, points = [{}] } = this.orderDetail.discountInfo;
|
|
|
const { maxConsumeTime, remainConsumeTime, hourPrice } = this.orderDetail.parkingRule;
|
|
|
+ this.remainPrice = this.usingTotalDiscount
|
|
|
// 如果积分存在的话,则移除积分的优惠
|
|
|
- if (points.length && JSON.stringify(points[0]) !== "{}") {
|
|
|
- this.remainPrice = this.parkMallCode !== 1 ? this.usingTotalDiscount - (points[0]?.discountFee || 0) : this.usingTotalDiscount;
|
|
|
+ if (points.length > 0 && JSON.stringify(points[0]) !== "{}" && points[0]?.discountFee && this.parkMallCode !== 1) {
|
|
|
+ this.remainPrice -= points[0]?.discountFee
|
|
|
}
|
|
|
// 如果有纸质优惠券的话,paperDiscountFee
|
|
|
if (this.paperDiscountFee) {
|