update
This commit is contained in:
@@ -13,15 +13,28 @@ export function $layout(params) {
|
||||
}
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 清空历史订单
|
||||
* @returns
|
||||
*/
|
||||
export function cancelOrder(data, urlType = 'order') {
|
||||
return request({
|
||||
url: `/${urlType}/admin/order/cancelOrder`,
|
||||
method: "POST",
|
||||
data: {
|
||||
...data
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// Pad点餐列表
|
||||
export function $layoutpage(params) {
|
||||
return request({
|
||||
url: '/api/pad/productCategory/page',
|
||||
url: '/account/admin/padProd',
|
||||
method: "get",
|
||||
params:{
|
||||
userId: uni.getStorageSync("shopUserId"),
|
||||
shopId: uni.getStorageSync("shopId"),
|
||||
// userId: uni.getStorageSync("shopUserId"),
|
||||
// shopId: uni.getStorageSync("shopId"),
|
||||
...params
|
||||
}
|
||||
});
|
||||
@@ -30,11 +43,11 @@ export function $layoutpage(params) {
|
||||
|
||||
export function $productCategory(id) {
|
||||
return request({
|
||||
url: '/api/pad/productCategory/'+id,
|
||||
url: '/account/admin/padProd/detail?id='+id,
|
||||
method: "get",
|
||||
params:{
|
||||
userId: uni.getStorageSync("shopUserId"),
|
||||
shopId: uni.getStorageSync("shopId"),
|
||||
// userId: uni.getStorageSync("shopUserId"),
|
||||
// shopId: uni.getStorageSync("shopId"),
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user