123456789101112131415161718192021222324252627282930 |
- import request from '@/utils/request'
- // api地址
- const api = {
- list: 'clientApi/refund/list',
- goods: 'clientApi/refund/goods',
- apply: 'clientApi/refund/submit',
- detail: 'clientApi/refund/detail',
- delivery: 'clientApi/refund/delivery'
- }
- // 售后单列表
- export const list = (param, option) => {
- return request.get(api.list, param, option)
- }
- // 申请售后
- export const apply = (orderId, data) => {
- return request.post(api.apply, { orderId, type: data.type, remark: data.content, images: data.images })
- }
- // 售后单详情
- export const detail = (refundId, param) => {
- return request.get(api.detail, { refundId, ...param })
- }
- // 用户发货
- export const delivery = (refundId, expressName, expressNo) => {
- return request.post(api.delivery, { refundId, expressName, expressNo })
- }
|