木邻有你前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
917 B

  1. // import request from "@/api/request";
  2. import http from "@/api/http";
  3. export default {
  4. // 兑换记录- 确认取货
  5. async finishOrder(data) {
  6. return http ({
  7. url: '/order/finishOrder',
  8. method: 'POST',
  9. data
  10. })
  11. },
  12. // 兑换记录- 查看订单详情
  13. async queryOrderById(data) {
  14. return http({
  15. url: '/order/queryOrderById',
  16. method: 'GET',
  17. data
  18. })
  19. },
  20. // 兑换记录- 查看订单列表
  21. async queryOrderList(data) {
  22. return http({
  23. url: '/order/queryOrderList',
  24. method: 'GET',
  25. data,
  26. showLoading: true
  27. })
  28. },
  29. // 我的资料- 获取个人信息
  30. async queryUser() {
  31. return http({
  32. url: '/userInfo/queryUser',
  33. method: 'GET'
  34. })
  35. },
  36. // 我的资料- 修改个人信息
  37. async updateUser(data) {
  38. return http({
  39. url: '/userInfo/updateUser',
  40. method: 'POST',
  41. data
  42. })
  43. },
  44. }