Browse Source

fix: 调整提现金额上限为200元并优化分类计算逻辑

修改提现页面的单笔提现上限从5万元降至200元,以符合新的业务要求
优化管理页面的分类计算逻辑,直接对所有项目排序而不再过滤父分类
master
前端-胡立永 4 hours ago
parent
commit
a79fd77e8e
2 changed files with 4 additions and 5 deletions
  1. +2
    -3
      pages/manager/inspect.vue
  2. +2
    -2
      pages/subcomponent/withdraw.vue

+ 2
- 3
pages/manager/inspect.vue View File

@ -103,9 +103,8 @@ export default {
console.log('categories计算 - pricePreviewList:', list.length)
//
const allCategories = list.filter(item => item.pid === '0').sort((a, b) => a.sort - b.sort)
console.log('categories计算 - allCategories:', allCategories.length)
const allCategories = list.sort((a, b) => a.sort - b.sort)
// const allCategories = list.filter(item => item.pid === '0').sort((a, b) => a.sort - b.sort)
//
const categoriesWithCount = allCategories.map(category => {
const count = this.getCategoryItemCountDirect(category.id)


+ 2
- 2
pages/subcomponent/withdraw.vue View File

@ -157,8 +157,8 @@ export default {
}
//
if (amountNum > 50000) {
uni.showToast({ title: '单笔提现不能超过5万元', icon: 'none' })
if (amountNum > 200) {
uni.showToast({ title: '单笔提现不能超过200元,请分多次提现', icon: 'none' })
return
}


Loading…
Cancel
Save