增加缓存代客下单商品以及布局信息

This commit is contained in:
2024-10-24 11:26:42 +08:00
parent a1770d596a
commit c19eb54d6d
4 changed files with 40 additions and 15 deletions

View File

@@ -38,14 +38,15 @@ export function getCart(params) {
* 已上架商品列表
* @returns
*/
export function getGoodsLists(params) {
export function getGoodsLists(params,showLoading=true) {
return request({
url: `/api/place/activate`,
method: "get",
params:{
shopId: uni.getStorageSync("shopId"),
...params
}
},
showLoading
});
}

View File

@@ -183,7 +183,7 @@ function request(args) {
} = args
let headerObject = {}
// headerObject[appConfig.tokenKey] = storageManage.token()
console.log(showLoading);
return commonsProcess(showLoading, () => {
return uni.request(
Object.assign({