🦄 refactor:订单列表对接100%

This commit is contained in:
Haiyi
2022-09-14 11:57:35 +08:00
parent afaad76fe3
commit a208802231
16 changed files with 878 additions and 69 deletions
+62 -1
View File
@@ -1,4 +1,6 @@
import { useRequest } from "@/use/useHttp"
import { CAP_HTML_TO_IMAGE_BASE_URL } from '@/common/constant'
export const mpenumsaleorderstatus = () => {
return useRequest({
url: `/v1/mp/enum/sale/order/status`,
@@ -12,7 +14,7 @@ export const mpenumsaleorderstatus = () => {
*/
export const OrderListApi = () => {
return useRequest({
url: `/v1/mp/saleOrder/list`,
url: `/v2/mp/saleOrder/list`,
method: "get",
})
}
@@ -48,3 +50,62 @@ export const mpenumsaleUserlist = () => {
method: "get"
})
}
//订单详情
export const mpsaleOrder = () => {
return useRequest({
url: `/v2/mp/saleOrder`,
method: "get"
})
}
//取消订单
export const mpsaleOrdercancel = () => {
return useRequest({
url: `/v1/mp/saleOrder/cancel`,
method: "put",
})
}
//再次购买
export const mpshoppingCartproductColorlist = () => {
return useRequest({
url: `/v1/mp/shoppingCart/productColor/list`,
method: "post",
})
}
//获取账期付款
export const orderPaymentorderPaymentMethodInfo = () => {
return useRequest({
url: `/v1/mp/orderPayment/orderPaymentMethodInfo`,
method: "get",
})
}
//预收单获取接口信息
export const orderPaymentpreCollectOrderorderPaymentMethodInfo = () => {
return useRequest({
url: `/v1/mp/orderPayment/preCollectOrder/orderPaymentMethodInfo`,
method: "get",
})
}
//确认交易
export const orderPaymentorderPaymentSubmission = () => {
return useRequest({
url: `/v1/mp/orderPayment/orderPaymentSubmission`,
method: "put",
})
}
//订单预支付提交
export const orderPaymentpreCollectOrderorderPaymentSubmission = () => {
return useRequest({
url: `/v1/mp/orderPayment/preCollectOrder/orderPaymentSubmission`,
method: "put",
})
}
/**
* 获取在线支付二维码
*/
export const GetPayCode = () => {
return useRequest({
url: `/xima-caphtml/caphtml`,
base_url: CAP_HTML_TO_IMAGE_BASE_URL,
method: 'post',
})
}