|
|
|
@ -350,8 +350,7 @@ |
|
|
|
|
let datas = { |
|
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
|
"price": this.paytheprice, |
|
|
|
|
"productId": 1, |
|
|
|
|
"type": 1, |
|
|
|
|
"type": 5, |
|
|
|
|
} |
|
|
|
|
getRebateIntegral(datas).then(res => { |
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
@ -398,34 +397,34 @@ |
|
|
|
|
} else { // 否则进行选中赋值 |
|
|
|
|
this.isDiscont = true; |
|
|
|
|
this.memDiscountId = item.id; |
|
|
|
|
if (item.highDiscount.discountType == 1) { |
|
|
|
|
if (item.discountType == 1) { |
|
|
|
|
//满减价格 |
|
|
|
|
if (this.orderPrice > item.highDiscount.discountCondition) { |
|
|
|
|
if (this.orderPrice > item.discountCondition) { |
|
|
|
|
this.memDiscountId = item.id; |
|
|
|
|
//满减价格 |
|
|
|
|
this.deductionPrice = item.highDiscount.discountPrice; |
|
|
|
|
this.deductionPrice = item.discountPrice; |
|
|
|
|
let oldprice = this.orderPrice - this.deductionPrice; |
|
|
|
|
this.priceCaluc(oldprice); |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
|
title: '请满' + item.highDiscount.discountCondition + '使用此券', |
|
|
|
|
title: '请满' + item.discountCondition + '使用此券', |
|
|
|
|
icon: 'none', |
|
|
|
|
duration: 2000 |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (item.highDiscount.discountType == 2) { |
|
|
|
|
if (item.discountType == 2) { |
|
|
|
|
//抵扣价格 |
|
|
|
|
this.deductionPrice = item.highDiscount.discountPrice; |
|
|
|
|
this.deductionPrice = item.discountPrice; |
|
|
|
|
let oldprice = this.orderPrice - this.deductionPrice; |
|
|
|
|
this.priceCaluc(oldprice); |
|
|
|
|
} |
|
|
|
|
if (item.highDiscount.discountType == 3) { |
|
|
|
|
if (item.discountType == 3) { |
|
|
|
|
// 打折 |
|
|
|
|
this.deductionPrice = parseFloat(this.orderPrice - (this.orderPrice * item.highDiscount |
|
|
|
|
this.deductionPrice = parseFloat(this.orderPrice - (this.orderPrice * item |
|
|
|
|
.discountPrice)) |
|
|
|
|
.toFixed(2); |
|
|
|
|
let oldprice = parseFloat(this.orderPrice * item.highDiscount.discountPrice).toFixed(2); |
|
|
|
|
let oldprice = parseFloat(this.orderPrice * item.discountPrice).toFixed(2); |
|
|
|
|
this.priceCaluc(oldprice); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
@ -780,7 +779,9 @@ |
|
|
|
|
|
|
|
|
|
<style lang="scss"> |
|
|
|
|
page { |
|
|
|
|
background-color: #f7f7f7; |
|
|
|
|
background-color: #f7f7f7; |
|
|
|
|
overflow: hidden; |
|
|
|
|
overflow-y: auto; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.comorder { |
|
|
|
|