|
@@ -547,9 +547,6 @@
|
|
let user = that.user;
|
|
let user = that.user;
|
|
let info = that.info;
|
|
let info = that.info;
|
|
let specsInfo = that.specsInfo;
|
|
let specsInfo = that.specsInfo;
|
|
- let act = that.info.act.map(item => {
|
|
|
|
- return item._id
|
|
|
|
- })
|
|
|
|
if (user && user._id) {
|
|
if (user && user._id) {
|
|
let obj = {
|
|
let obj = {
|
|
customer: user._id,
|
|
customer: user._id,
|
|
@@ -557,8 +554,7 @@
|
|
goods: info.goods._id,
|
|
goods: info.goods._id,
|
|
goodsSpec: specsInfo._id,
|
|
goodsSpec: specsInfo._id,
|
|
num: that.buy_num,
|
|
num: that.buy_num,
|
|
- inviter: that.inviter,
|
|
|
|
- act
|
|
|
|
|
|
+ inviter: that.inviter
|
|
}
|
|
}
|
|
let res = await that.$api(`/cart`, 'POST', obj)
|
|
let res = await that.$api(`/cart`, 'POST', obj)
|
|
if (res.errcode == '0') {
|
|
if (res.errcode == '0') {
|