diff --git a/packages/advertising/goodsDetail/index.vue b/packages/advertising/goodsDetail/index.vue index c28c0fbd..8964a8a0 100644 --- a/packages/advertising/goodsDetail/index.vue +++ b/packages/advertising/goodsDetail/index.vue @@ -727,14 +727,14 @@ export default { // 购买记录 getBuyRecord() { const params = { - activity_id: 47, - goods_id: this.id + activity_id: this.groupById, + goods_id: this.itemObj.id, } request(apiArr2.groupBuyRecord, 'POST', params).then(res => { const record = res.group_buy_record.map(item => { return { ...item, - avatar: picture + item.avatar + avatar: picUrl + item.avatar } }) this.purchaseRecords = record diff --git a/packages/shop/groupPurchaseDetail/index.vue b/packages/shop/groupPurchaseDetail/index.vue index 047126ca..d7ec5cf2 100644 --- a/packages/shop/groupPurchaseDetail/index.vue +++ b/packages/shop/groupPurchaseDetail/index.vue @@ -770,14 +770,14 @@ export default { // 购买记录 getBuyRecord() { const params = { - activity_id: 47, - goods_id: this.id + activity_id: this.groupById, + goods_id: this.itemObj.id, } request(apiArr2.groupBuyRecord, 'POST', params).then(res => { const record = res.group_buy_record.map(item => { return { ...item, - avatar: picture + item.avatar + avatar: picUrl + item.avatar } }) this.purchaseRecords = record