41 lines
813 B
JavaScript
41 lines
813 B
JavaScript
import http from './http.js'
|
|
const request=http.request
|
|
|
|
// Pad商品版式布局列表
|
|
export function $layout(params) {
|
|
return request({
|
|
url: '/api/pad/layout/list',
|
|
method: "get",
|
|
params:{
|
|
userId: uni.getStorageSync("shopUserId"),
|
|
shopId: uni.getStorageSync("shopId"),
|
|
...params
|
|
}
|
|
});
|
|
}
|
|
|
|
// Pad点餐列表
|
|
export function $layoutpage(params) {
|
|
return request({
|
|
url: '/api/pad/productCategory/page',
|
|
method: "get",
|
|
params:{
|
|
userId: uni.getStorageSync("shopUserId"),
|
|
shopId: uni.getStorageSync("shopId"),
|
|
...params
|
|
}
|
|
});
|
|
}
|
|
//获取详情
|
|
|
|
export function $productCategory(id) {
|
|
return request({
|
|
url: '/api/pad/productCategory/'+id,
|
|
method: "get",
|
|
params:{
|
|
userId: uni.getStorageSync("shopUserId"),
|
|
shopId: uni.getStorageSync("shopId"),
|
|
}
|
|
});
|
|
}
|