添加轮播图

This commit is contained in:
Dev
2026-10-15 16:25:51 +08:00
parent 3bc5ea70fe
commit 373ac94411
9 changed files with 154 additions and 41 deletions
+5
View File
@@ -57,6 +57,11 @@ export function fetchConfig() {
return wx.$util.request(wx.$api.CommonGetMiniConfig, {}, 'GET');
}
/** 获取首页轮播(分类类型 banner) */
export function fetchHomeBanners() {
return wx.$util.request(wx.$api.CatalogList, { type: 'banner' }, 'GET');
}
// 与后端 site.platform_commission_ratio 默认值一致,接口失败时兜底
const DEFAULT_COMMISSION_RATIO = 0.1;
let commissionRatioCache = null;