Merge branch 'xie'
This commit is contained in:
@@ -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') {
|
||||
|
||||
@@ -318,8 +318,8 @@
|
||||
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) {
|
||||
|
||||
@@ -717,8 +717,8 @@
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user