|
@@ -214,7 +214,14 @@ export default {
|
|
|
return this.riseRate * 100
|
|
return this.riseRate * 100
|
|
|
},
|
|
},
|
|
|
platformCommission() {
|
|
platformCommission() {
|
|
|
- return this.saleBatches.find(item => item.id == this.orderInfo.batchId)?.serviceCharge || 0
|
|
|
|
|
|
|
+ let info = this.saleBatches.find(item => item.id == this.orderInfo.batchId)
|
|
|
|
|
+ let _back = null
|
|
|
|
|
+ if (info) {
|
|
|
|
|
+ _back = info.extensions.find(item => {
|
|
|
|
|
+ return item.minPrice <= this.orderInfo.totalPrice && this.orderInfo.totalPrice <= item.maxPrice
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ return _back?.serviceCharge || 0
|
|
|
},
|
|
},
|
|
|
pic() {
|
|
pic() {
|
|
|
if (this.productInfo.pic && this.productInfo.pic.length > 0) {
|
|
if (this.productInfo.pic && this.productInfo.pic.length > 0) {
|