订单管理

This commit is contained in:
唐明明
2022-01-13 11:00:08 +08:00
parent 3138894268
commit 1968ae15bb
5 changed files with 150 additions and 164 deletions

View File

@@ -2,11 +2,63 @@
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 订单
* moduleName: 订单管理
*/
import { request } from '../index'
export {
// 订单列表
const orders = data => {
return request({
url: 'mall/orders',
data
})
}
// 订单详情
const info = id => {
return request({
url: 'mall/orders/' + id
})
}
// 删除订单
const del = id => {
return request({
url: 'mall/orders/' + id,
method: 'DELETE'
})
}
// 取消订单
const cancel = id => {
return request({
url: 'mall/orders/' + id + '/cancel',
method: 'PUT'
})
}
// 签收订单
const sign = id => {
return request({
url: 'mall/orders/' + id + '/sign',
method: 'PUT'
})
}
// 物流查询
const logistic = id => {
return request({
url: 'mall/orders/' + id + '/logistic',
method: 'PUT'
})
}
export {
orders,
info,
del,
cancel,
sign,
logistic
}