|
|
|
@ -439,6 +439,11 @@ export default { |
|
|
|
const item = config.find(i => i.keyName === 'min_money'); |
|
|
|
return item ? parseFloat(item.keyContent) : 0; |
|
|
|
}, |
|
|
|
maxPrice() { |
|
|
|
const config = getApp().globalData.configData || []; |
|
|
|
const item = config.find(i => i.keyName === 'max_price'); |
|
|
|
return item ? parseFloat(item.keyContent) : 0; |
|
|
|
}, |
|
|
|
minMumber() { |
|
|
|
const config = getApp().globalData.configData || []; |
|
|
|
const item = config.find(i => i.keyName === 'min_number'); |
|
|
|
@ -971,6 +976,16 @@ export default { |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// 检查最高回收金额是否达到配置的maxPrice要求 |
|
|
|
if (this.maxPrice > 0 && Number(this.priceRange.max) < this.maxPrice) { |
|
|
|
uni.showToast({ |
|
|
|
title: `最高回收金额需要达到${this.maxPrice}元才能预约回收`, |
|
|
|
icon: 'none', |
|
|
|
duration: 3000 |
|
|
|
}) |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
// 关闭商品明细弹窗 |
|
|
|
this.showDetailPanel = false |
|
|
|
|