新增退货流程
This commit is contained in:
@@ -33,6 +33,9 @@ import idcard from "./interfaces/idcard"
|
||||
// 身份认证
|
||||
import withdraw from "./interfaces/withdraw"
|
||||
|
||||
// 售后服务
|
||||
import refund from "./interfaces/refund"
|
||||
|
||||
export default {
|
||||
auth,
|
||||
bank,
|
||||
@@ -43,5 +46,6 @@ export default {
|
||||
user,
|
||||
pay,
|
||||
idcard,
|
||||
withdraw
|
||||
withdraw,
|
||||
refund
|
||||
}
|
||||
50
api/interfaces/refund.js
Normal file
50
api/interfaces/refund.js
Normal file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 手太欠
|
||||
* 愿这世界都如故事里一样 美好而动人~
|
||||
*/
|
||||
|
||||
import { req } from "../request"
|
||||
|
||||
// 售后服务
|
||||
const list = data => req({
|
||||
url : "mall/refunds",
|
||||
data
|
||||
})
|
||||
|
||||
// 用户退货
|
||||
const deliver = (refund, data) => req({
|
||||
url: "mall/refunds/" + refund + "/deliver",
|
||||
method: "POST",
|
||||
data
|
||||
})
|
||||
|
||||
// 退货详情
|
||||
const info = refund => req({
|
||||
url: "mall/refunds/" + refund
|
||||
})
|
||||
|
||||
// 退货日志
|
||||
const log = refund => req({
|
||||
url: "mall/refunds/" + refund + "/logs"
|
||||
})
|
||||
|
||||
// 申请售后前置
|
||||
const refundPreposition = id => req({
|
||||
url: "mall/orders/" + id + "/refund"
|
||||
})
|
||||
|
||||
// 提交退货
|
||||
const submitRefund = (id, data) => req({
|
||||
url : "mall/orders/" + id + "/refund",
|
||||
method : "POST",
|
||||
data
|
||||
})
|
||||
|
||||
export default ({
|
||||
list,
|
||||
deliver,
|
||||
info,
|
||||
log,
|
||||
refundPreposition,
|
||||
submitRefund
|
||||
})
|
||||
Reference in New Issue
Block a user