miniprogram/pages/cart/cart.js
@@ -9,8 +9,6 @@ reqDelCartGoods } from '@/api/cart' // 导入 debounce 防抖方法 import { debounce } from 'miniprogram-licia' // 导入让删除滑块自动弹回的 behavior import { swipeCellBehavior } from '@/behaviors/swipeCell' @@ -80,7 +78,7 @@ }, // 更新购买的数量 changeBuyNum: debounce(async function (event) { changeBuyNum: wx.$_.debounce(async function (event) { // 获取最新的购买数量 // 如果用户输入的购买数量大于 200,需要把购买数量设置为 200 // 最大购买数量是 200,目前购买数量是 1,假设用户输入了 666,666 - 1 = 665,665 + 1 = 666