You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zhishifufei_uniapp/api/store.js

41 lines
1023 B

9 months ago
import http from "@/utils/request";
export function getCateList() {
return http.get("/store/getcategory");
}
export function getGoodsCateList() {
return http.get("/store/getentitycategory");
}
9 months ago
export function getGoodsList(params) {
return http.get("/store/getproductlist", params);
}
9 months ago
export function getRecommendGoodsList(params) {
return http.get("/store/getRecommendProductList", params);
}
9 months ago
export function getIndexData() {
return http.get("/store/index_api");
}
export function getStoreDetail(id) {
return http.get("/store/detail_api", { id });
}
export function getReplyData(productId) {
return http.get("/auth_api/product_reply_data", { productId });
}
export function getReplyList(params) {
return http.get("/auth_api/product_reply_list", params);
}
export function getAssociatedTopics(params) {
return http.get("/store/getAssociatedTopics", params);
}
export function createOrder(data) {
return http.get("/auth_api/now_buy", data, {
requireAuth: true
});
}