wx/api/commodity/index.js

18 lines
518 B
JavaScript
Raw Permalink Normal View History

2024-06-15 21:13:11 +08:00
import { http } from '@/utils/request.js';
// 查询所有商品参数
export function APIGetcommoditylist() {
return http.get('/api/wGoods/getGoods');
}
//查询分类商品
export function APIGetclassifylist(wCateid) {
return http.get(`/api/wGoods/getGoodsByWCateid?wCateid=${wCateid}`);
}
//查询所有分类
export function APIAllcategorieslist() {
return http.get('/api/wcate/getCate');
}
// 查询商品详情
export function APIparticulars(id) {
return http.get(`/api/wGoods/getGoodsById?id=${id}`);
}