第一次提交

This commit is contained in:
gxwebsoft
2023-08-04 13:14:48 +08:00
commit 1b923e5cff
1030 changed files with 128016 additions and 0 deletions

23
api/cart.js Normal file
View File

@@ -0,0 +1,23 @@
import http from './index.js';
// 查询购物车商品
export const showCart = (data) => http.post('/apps/bc-cart/showCart',data)
// 添加购物车
export const addCart = (data) => http.post('/apps/bc-cart/addCart', data)
export const addCartPro = (data) => http.post('/apps/bc-cart/addCart',data)
// 清空购物车
export const clearCart = () => http.get('/apps/bc-cart/clearCart')
// 生成订单
export const createOrder = (data) => http.post('/apps/bc-cart/createOrder', data)
// 清空购物车
export const removeCart = () => http.get('/apps/bc-cart/removeCart')
export default {
showCart,
addCart,
addCartPro,
createOrder,
removeCart
}