后端 + 前端:提交购物车订单
This commit is contained in:
@@ -21,7 +21,7 @@ export function confirmReceiving(orderId) {
|
||||
});
|
||||
}
|
||||
|
||||
export function getConfirmCreateOrder(skuId, quantity) {
|
||||
export function getOrderConfirmCreateOrder(skuId, quantity) {
|
||||
return request({
|
||||
url: '/order-api/users/order/confirm_create_order',
|
||||
method: 'get',
|
||||
@@ -45,6 +45,18 @@ export function createOrder(params) {
|
||||
});
|
||||
}
|
||||
|
||||
export function createOrderFromCart(userAddressId,
|
||||
remark) {
|
||||
return request({
|
||||
url: '/order-api/users/order/create_order_from_cart',
|
||||
method: 'post',
|
||||
params: {
|
||||
userAddressId,
|
||||
remark,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// Cart
|
||||
|
||||
export function addCart(skuId, quantity) {
|
||||
@@ -87,6 +99,17 @@ export function updateCartSelected(skuIds, selected) {
|
||||
});
|
||||
}
|
||||
|
||||
export function getCartConfirmCreateOrder(skuId, quantity) {
|
||||
return request({
|
||||
url: '/order-api/users/cart/confirm_create_order',
|
||||
method: 'get',
|
||||
params: {
|
||||
skuId,
|
||||
quantity,
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// 物流信息
|
||||
|
||||
export function getLogisticsInfo(params) {
|
||||
|
||||
Reference in New Issue
Block a user