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

82 lines
1.9 KiB

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
});
9 months ago
}
export function getApplyInvoicingList(params) {
return http.get("/invoice/records", params);
}
export function getInvoiceHeaderList(params) {
return http.get("/invoice/list", params);
}
export function addInvoiceHeader(params) {
return http.post("/invoice/add", params);
}
export function editInvoiceHeader(params) {
return http.post("/invoice/edit", params);
}
export function applyInvoice(params) {
return http.post("/invoice/make", params);
9 months ago
}
export function deleteInvoice(params) {
return http.post("/invoice/delete", params);
}
export function getCartList(params) {
return http.get("/Auth_Api/get_cart_list", params);
}
export function joinCart(params) {
return http.get("/Auth_Api/set_cart", params);
}
9 months ago
export function deleteCart(params) {
return http.get("/auth_api/remove_cart", params);
}
export function changeCartNum(params) {
return http.get("/auth_api/change_cart_num", params);
9 months ago
}