地址修改 购物车修改

This commit is contained in:
@fawn-nine
2024-07-02 14:44:24 +08:00
parent 327e96d7cd
commit 5b3f61e90a
7 changed files with 17 additions and 15 deletions

View File

@@ -206,12 +206,13 @@
},
// 加入到购物车
isAddLink(item) {
console.log('传入购物车',item);
// 统计商品信息
let data = {
"userId": this.userInfo.id,
"productId": item.productId,
"productAmount": this.productAmount,
"price": item.price
"productAmount": 1,
"price": item.activityPrice && item.activityPrice != 0 ? item.activityPrice : item.price
}
// 判断列表是否为空
if (this.cartList.length > 0) {
@@ -284,6 +285,7 @@
},
oprate(data) {
console.log(data, '得到的内容')
if (data.name == 'buy') {
this.buy(data.item)
} else if (data.name == 'gouwuche') {