index.js 814 B

123456789101112131415161718192021222324252627282930
  1. /**
  2. * 商城售后申请 API
  3. * 供 pages/order/refund、订单详情「申请售后」使用
  4. */
  5. import https from '@/plugins/luch-request_0.0.7/request'
  6. /** 申请页初始化:订单商品、可退金额、已有申请进度 */
  7. export const getRefundData = data => {
  8. return https.get('/refund/get-refund-data', data)
  9. }
  10. /** 顾客提交售后申请(待审核) */
  11. export const createRefund = data => {
  12. return https.post('/refund/create-order', data)
  13. }
  14. /** 顾客撤销待审核申请 */
  15. export const cancelRefund = data => {
  16. return https.post('/refund/cancel-order', data)
  17. }
  18. /** 顾客售后申请列表 */
  19. export const refundList = data => {
  20. return https.get('/refund/list', data)
  21. }
  22. /** 顾客售后申请详情 */
  23. export const refundDetail = data => {
  24. return https.get('/refund/detail', data)
  25. }