This commit is contained in:
唐明明
2022-06-11 11:30:59 +08:00
38 changed files with 7865 additions and 1411 deletions

View File

@@ -53,11 +53,73 @@ const logistic = id => {
})
}
// 退货
const refund = (id,method,params) => {
return request({
url: 'mall/orders/' + id + '/refund',
method:method,
data:params
})
}
// 退货前置
const refundpre = (id) => {
return request({
url: 'mall/orders/' + id + '/refundpre'
})
}
// 货款、售后列表
const refunds = data => {
return request({
url: 'mall/refunds',
data
})
}
// 货款、售后详情
const refundsInfo = id => {
return request({
url: 'mall/refunds/'+id
})
}
// 货款、售后j 进度
const refundsLogs = id => {
return request({
url: 'mall/refunds/'+id+'/logs'
})
}
// 物流列表
const deliverpre = ()=> {
return request({
url: 'mall/refunds/deliverpre'
})
}
// 提交发货接口
const refundsDeliver = (id,data) => {
return request({
url: 'mall/refunds/'+id+'/deliver',
method:'post',
data
})
}
export {
orders,
info,
del,
cancel,
sign,
logistic
logistic,
refund,
refundpre,
refunds,
refundsInfo,
refundsLogs,
deliverpre,
refundsDeliver,
}