You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
84 lines
1.5 KiB
84 lines
1.5 KiB
7 months ago
|
import request from '@/utils/requestUtil'
|
||
|
|
||
|
export function generateConfirmOrder(data) {
|
||
|
return request({
|
||
|
method: 'POST',
|
||
|
url: '/order/generateConfirmOrder',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function generateOrder(data) {
|
||
|
return request({
|
||
|
method: 'POST',
|
||
|
url: '/order/generateOrder',
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function fetchOrderList(params) {
|
||
|
return request({
|
||
|
method: 'GET',
|
||
|
url: '/order/list',
|
||
|
params: params
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function payOrderSuccess(data) {
|
||
|
return request({
|
||
|
method: 'POST',
|
||
|
url: '/order/paySuccess',
|
||
|
header: {
|
||
|
'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
|
||
|
},
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function fetchOrderDetail(orderId) {
|
||
|
return request({
|
||
|
method: 'GET',
|
||
|
url: `/order/detail/${orderId}`
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function cancelUserOrder(data) {
|
||
|
return request({
|
||
|
method: 'POST',
|
||
|
url: '/order/cancelUserOrder',
|
||
|
header: {
|
||
|
'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
|
||
|
},
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function confirmReceiveOrder(data) {
|
||
|
return request({
|
||
|
method: 'POST',
|
||
|
url: '/order/confirmReceiveOrder',
|
||
|
header: {
|
||
|
'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
|
||
|
},
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function deleteUserOrder(data) {
|
||
|
return request({
|
||
|
method: 'POST',
|
||
|
url: '/order/deleteOrder',
|
||
|
header: {
|
||
|
'content-type': 'application/x-www-form-urlencoded;charset=utf-8'
|
||
|
},
|
||
|
data: data
|
||
|
})
|
||
|
}
|
||
|
|
||
|
export function fetchAliapyStatus(params) {
|
||
|
return request({
|
||
|
method: 'GET',
|
||
|
url: '/alipay/query',
|
||
|
params: params
|
||
|
})
|
||
|
}
|