邃芒慧影、口播(PC) https://neuver.metavatar.cc/
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.
 
 
 
 

40 lines
807 B

  1. import request from "@/utils/request.js";
  2. /**
  3. * @description:购买金币下单
  4. * @param productId
  5. * @return: data
  6. */
  7. export function createOrderApi(data) {
  8. return request({
  9. url: `api/productOrder/createOrder`,
  10. method: 'post',
  11. data
  12. })
  13. }
  14. /**
  15. * @description:获取订单数据
  16. * @param data
  17. * @return: data
  18. */
  19. export function createPayApi(data) {
  20. return request({
  21. url: `api/productOrder/createPay`,
  22. method: 'post',
  23. data
  24. })
  25. }
  26. /**
  27. * @description:获取订单支付状态
  28. * @param orderNumber
  29. * @return: data payStatus 查询支付状态 0:待支付,2:支付中,3:已支付
  30. */
  31. export function getOrderStatusApi(orderNumber, payVendor) {
  32. return request({
  33. url: `api/productOrder/findStatus?orderNumber=${orderNumber}&payVendor=${payVendor}`,
  34. method: 'get'
  35. })
  36. }