18 lines
518 B
JavaScript
18 lines
518 B
JavaScript
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}`);
|
|
}
|