first
This commit is contained in:
40
http/yskApi/pad.js
Normal file
40
http/yskApi/pad.js
Normal file
@@ -0,0 +1,40 @@
|
||||
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"),
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user