1.前端页面接入商品收藏接口,

2.暂时使用alert弹出框提示收藏和取消收藏,回头改成颜色显示效果
This commit is contained in:
xiaofeng
2019-07-09 23:54:36 +08:00
parent 1fa68d070b
commit 83d8bc4fab
6 changed files with 85 additions and 5 deletions

View File

@@ -31,3 +31,10 @@ export function getProductSpuInfo(id) {
}
});
}
export function collectionSpu(spuId,hasCollectionType) {
return request({
url: '/product-api/users/spu/collection/'+spuId+'/' + hasCollectionType,
method: 'post'
});
}