Merge branch 'feat-scene' into test

This commit is contained in:
2026-08-20 17:14:11 +08:00
2 changed files with 12 additions and 2 deletions
+11 -2
View File
@@ -716,11 +716,20 @@ export const getGoldLogAPI = ({page = 1, pageSize = 20, type, storeId} = {}) =>
};
// 前台礼品接口位于站点根路径,并使用 code=200 表示成功。
export const getGiftListAPI = ({page = 1, pageSize = 20, sort = "coin_desc"} = {}) => {
export const getGiftListAPI = ({
page = 1,
pageSize = 20,
sort = "coin_desc",
storeId,
} = {}) => {
const data = {page, page_size: pageSize, sort};
if (storeId !== undefined && storeId !== null && storeId !== "") {
data.store_id = storeId;
}
return request(
"GET",
"/gin/api/v1/gift/list",
{page, page_size: pageSize, sort},
data,
API_ROOT_URL,
[0, 200]
);
+1
View File
@@ -46,6 +46,7 @@ const loadProducts = async ({ reset = false } = {}) => {
const result = await getGiftListAPI({
page: nextPage,
pageSize: PAGE_SIZE,
storeId: selectedStoreId.value,
});
const list = Array.isArray(result?.list) ? result.list : [];
const mappedList = list.map((item) => ({