From dd6f7035bfc0bca0a1c188ae782fa786174e5ded Mon Sep 17 00:00:00 2001 From: lzx_win <2602107437@qq.com> Date: Sun, 28 Sep 2025 17:05:31 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=9B=9E=E6=94=B6=E7=BB=84=E4=BB=B6):=20?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9C=80=E9=AB=98=E5=9B=9E=E6=94=B6=E9=87=91?= =?UTF-8?q?=E9=A2=9D=E9=85=8D=E7=BD=AE=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在回收预约流程中添加对最高回收金额的配置检查,当用户输入的最高金额低于配置值时提示用户 --- pages/component/recycle.vue | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pages/component/recycle.vue b/pages/component/recycle.vue index c6d8eae..d8afc42 100644 --- a/pages/component/recycle.vue +++ b/pages/component/recycle.vue @@ -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