2023-06-10 06:47:22 +00:00
|
|
|
import request from "@/utils/request.js";
|
|
|
|
|
|
|
|
// 获得单个商品,近期参与的每个活动
|
|
|
|
export function getActivityListBySpuId(spuId) {
|
|
|
|
return request.get("app-api/promotion/activity/list-by-spu-id", {
|
|
|
|
spuId
|
2023-06-11 14:59:10 +00:00
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
2023-06-10 06:47:22 +00:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
// 获得多个商品,近期参与的每个活动
|
|
|
|
export function getActivityListBySpuIds(spuIds) {
|
2023-06-10 09:51:02 +00:00
|
|
|
return request.get("app-api/promotion/activity/list-by-spu-ids", {
|
2023-11-20 15:45:31 +00:00
|
|
|
spuIds: spuIds && spuIds.length > 0 ? spuIds.join(',') : undefined
|
2023-06-11 14:59:10 +00:00
|
|
|
}, {
|
|
|
|
noAuth: true // TODO 芋艿:后续要做调整
|
2023-06-10 06:47:22 +00:00
|
|
|
});
|
|
|
|
}
|