vue-pro/yudao-ui-app/api/product.js
2022-12-15 19:48:21 +08:00

9 lines
289 B
JavaScript

//请求工具参考https://ext.dcloud.net.cn/plugin?id=392
const { http } = uni.$u
// 查询商品spu列表
export const productSpuPage = params => http.get('product/spu/page', { params })
// 查询商品
export const productSpu = id => http.get('product/spu/get-detail?id=' + id, { })