1.前端页面接入商品收藏接口,
2.暂时使用alert弹出框提示收藏和取消收藏,回头改成颜色显示效果
This commit is contained in:
@@ -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'
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user