营销:适配商城装修组件【商品卡片】

This commit is contained in:
owen
2023-11-17 09:56:50 +08:00
parent 7adf5dd257
commit 99529e3b9e
4 changed files with 157 additions and 67 deletions
+36
View File
@@ -0,0 +1,36 @@
import request from '@/sheep/request';
export default {
// 获得商品 SPU 列表
getSpuList: (recommendType) => {
return request({
url: '/app-api/product/spu/list',
method: 'GET',
params: {recommendType},
});
},
// 获得商品 SPU 列表
getSpuListByIds: (ids) => {
return request({
url: '/app-api/product/spu/list-by-ids',
method: 'GET',
params: {ids},
});
},
// 获得商品 SPU 分页
getSpuPage: (data) => {
return request({
url: '/app-api/product/spu/page',
method: 'GET',
data
});
},
// 查询商品
getSpuDetail: (id) => {
return request({
url: '/app-api/product/spu/get-detail',
method: 'GET',
params: { id },
});
}
};