优化列表刷新加载

This commit is contained in:
Dev
2026-10-19 13:01:58 +08:00
parent 0c6f4177f1
commit 44405743bb
10 changed files with 438 additions and 274 deletions
+2 -2
View File
@@ -54,12 +54,12 @@ export function fetchHome() {
/** 获取配置数据 */
export function fetchConfig() {
return wx.$util.request(wx.$api.CommonGetMiniConfig, {}, 'GET');
return wx.$util.request(wx.$api.CommonGetMiniConfig, {}, 'GET', { auth: false });
}
/** 获取首页轮播(分类类型 banner) */
export function fetchHomeBanners() {
return wx.$util.request(wx.$api.CatalogList, { type: 'banner' }, 'GET');
return wx.$util.request(wx.$api.CatalogList, { type: 'banner' }, 'GET', { auth: false });
}
// 与后端 site.platform_commission_ratio 默认值一致,接口失败时兜底