Fix:3711 【商城小程序】商详页选择的商品数量与订单页面的数据没有同步

This commit is contained in:
linxi
2025-05-06 14:44:48 +08:00
parent 6f139778a7
commit e76d1a2b81
2 changed files with 3 additions and 5 deletions
+2 -2
View File
@@ -1252,8 +1252,8 @@ export default {
let stock = productSelect.stock || 0
let num = this.attr.productSelect
if (changeValue) {
console.log(changeValue);
if(changeValue > 1) {
console.log(num.cart_num);
if(changeValue >= 1) {
num.cart_num = changeValue
} else {
num.cart_num++