feat(web): order

This commit is contained in:
zhaoying
2025-12-24 18:09:02 +08:00
parent 34dde34e61
commit a1def533af
25 changed files with 1437 additions and 4 deletions

17
web/src/api/order.ts Normal file
View File

@@ -0,0 +1,17 @@
import { request } from '@/utils/request'
import type { VoucherForm } from '@/views/OrderPayment/types'
export const getOrderListUrl = '/v1/orders/customer'
// 提交支付凭证API
export const submitPaymentVoucherAPI = (voucherData: VoucherForm) => {
return request.post('/v1/orders/', voucherData)
}
// 订单详情
export const getOrderDetail = (order_no: string) => {
return request.get(`/v1/orders/customer/${order_no}`)
}
export const orderStatusUrl = '/v1/order-status/'
export const getOrderStatus = () => {
return request.get(orderStatusUrl)
}