Authored by yyq

shop api cache

... ... @@ -507,7 +507,7 @@ const getShopInfo = (shopId, uid) => {
uid: uid || 0
};
return api.get('', finalParams);
return api.get('', finalParams, config.apiCache);
};
... ... @@ -515,14 +515,14 @@ const getShopInfo = (shopId, uid) => {
* 查询店铺下面的所有品牌
*/
const getShopBrands = (shopId) => {
return api.get('', {method: 'app.shops.getShopsBrands', shop_id: shopId || 0});
return api.get('', {method: 'app.shops.getShopsBrands', shop_id: shopId || 0}, config.apiCache);
};
/**
* 查询店铺装修
*/
const getShopDecorator = (shopId) => {
return api.get('', {method: 'app.shopsdecorator.getList', shop_id: shopId || 0});
return api.get('', {method: 'app.shopsdecorator.getList', shop_id: shopId || 0}, config.apiCache);
};
/**
... ...