增加缓存代客下单商品以及布局信息
This commit is contained in:
@@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user