添加轮播图
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user