2023-06-06 11:12:07 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
2023-06-10 09:51:02 +00:00
|
|
|
// 获得商品 SPU 列表
|
|
|
|
export function getSpuList(recommendType) {
|
|
|
|
return request.get('app-api/product/spu/list', {
|
|
|
|
recommendType
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2023-06-06 11:12:07 +00:00
|
|
|
// 获得商品 SPU 分页
|
|
|
|
export function getSpuPage(data) {
|
2023-07-06 11:10:53 +00:00
|
|
|
return request.get('app-api/product/spu/page', data, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
2023-06-06 11:12:07 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// 查询商品
|
|
|
|
export function getSpuDetail(id) {
|
|
|
|
return request.get('app-api/product/spu/get-detail', {
|
|
|
|
id
|
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
|
|
|
});
|
|
|
|
}
|