第一次提交
This commit is contained in:
23
api/cart.js
Normal file
23
api/cart.js
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user