order.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. const http = uni.$u.http
  2. // get请求,获取订单列表
  3. export const getOrderList = (params, config = {}) => http.get('/business/wechat/order/list', params, config)
  4. // get请求,获取订单详情
  5. export const getOrderDetailByOrderId = (params, config = {}) => http.get('/business/wechat/order/detail', params, config)
  6. // get请求,保存订单评价
  7. export const saveOrderComment = (params, config = {}) => http.post('/business/wechat/order/comment', params, config)
  8. // post请求,再来一单
  9. export const comeOrder = (params, config = {}) => http.post('/business/wechat/order/copy/'+params.data.orderId, params, config)
  10. // post请求 删除订单
  11. export const deleteOrder = (params, config = {}) => http.delete('/business/wechat/order/'+params.data.orderId, params, config)
  12. // put请求 取消订单
  13. export const cancelOrder = (params, config = {}) => http.put('/business/wechat/order/cancel/'+params.data.orderId, params, config)
  14. // post请求,通用下单接口
  15. export const commonGeneralOrder = (params, config = {}) => http.post('/business/wechat/order/common', params, config)
  16. // post请求,查询充值订单列表
  17. export const orderRechargeList = (params, config = {}) => http.get('/business/wechat/orderRecharge/list', params, config)
  18. // post请求,充值订单退款
  19. export const orderRechargeRefund = (params, config = {}) => http.post('/business/wechat/orderRecharge/refund', params, config)
  20. // post请求,获取用户余额
  21. export const getUserBalance = (params, config = {}) => http.post('/business/wechat/orderRecharge/getBalance', params, config)
  22. // get请求,订单签到
  23. export const orderSign = (params, config = {}) => http.get('/business/wechat/scheduling/orderSign', params, config)
  24. // get请求,查看订单排号情况
  25. export const getOrderSign = (params, config = {}) => http.get('/business/wechat/scheduling/getOrderSign', params, config)
  26. // post请求,微信支付(根据订单ID)
  27. export const wechatPay = (params, config,requestConfig = {}) => http.post('/business/wxPay/jsapiPay', params, config,requestConfig)
  28. // post请求,余额支付(根据订单ID)
  29. export const balancePay = (params, config = {}) => http.post('/business/balancePay/pay', params, config)
  30. // get请求,查询交易记录列表
  31. export const transactionRecordsList = (params, config = {}) => http.get('/business/wechat/transactionFlow/list', params, config)
  32. // get请求,查询充值优惠列表
  33. export const getRechargeList = (params, config = {}) => http.get('/business/wechat/getRechargeList', params, config)
  34. // get请求,查询交易流水统计
  35. export const transactionFlowstatistic = (params, config = {}) => http.get('/business/wechat/transactionFlow/statistic', params, config)
  36. // get请求 获取预约价格
  37. export const getAppointmentPrice = (params, config = {}) => http.get('/business/wechat/sp/subPrice', params, config)