xinelu-applet-ui/api/pagesB/ProductList/ProductList.js

23 lines
728 B
JavaScript
Raw Normal View History

2024-06-25 18:25:50 +08:00
import request from "@/api/request.js"
2023-09-22 11:08:14 +08:00
export function goodsList(pageSize, pageNum, goodsCategoryId, goodsName) {
return request({
url: `/nurseApplet/nursingStationGoods/goodsList?pageSize=${pageSize}&pageNum=${pageNum}&goodsCategoryId=${goodsCategoryId}&goodsName=${goodsName}`,
2023-10-12 13:39:34 +08:00
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}
//查询商品分类二级分类上边列表 小程序
export function getGoodsCategoryNameList(goodsCategoryId) {
return request({
url: `/nurseApplet/nursingStationGoods/getGoodsCategoryNameList?goodsCategoryId=${goodsCategoryId}`,
2023-10-12 13:39:34 +08:00
method: 'GET',
header: {
Authorization: 'Bearer' + ' ' + uni.getStorageSync('token')
},
2023-09-22 11:08:14 +08:00
})
}