Browse Source

feat(回收组件): 添加最高回收金额配置检查

在回收预约流程中添加对最高回收金额的配置检查,当用户输入的最高金额低于配置值时提示用户
master
主管理员 4 weeks ago
parent
commit
dd6f7035bf
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      pages/component/recycle.vue

+ 15
- 0
pages/component/recycle.vue View File

@ -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


Loading…
Cancel
Save