memberVrBuy.js 905 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. import { requestApi } from '../util/network'
  2. // 获取订单信息
  3. export const buyStep1 =
  4. (goods_id, quantity, extra = {}) =>
  5. requestApi(
  6. '/membervrbuy/buy_step1',
  7. 'POST',
  8. Object.assign(
  9. {
  10. 'goods_id': goods_id,
  11. 'quantity': quantity
  12. },
  13. extra),
  14. 'member'
  15. )
  16. // 下单入库
  17. export const buyStep2 =
  18. (goods_id, quantity, buyer_phone, buyer_msg, extra = {}) =>
  19. requestApi(
  20. '/membervrbuy/buy_step2',
  21. 'POST',
  22. Object.assign(
  23. {
  24. 'goods_id': goods_id,
  25. 'quantity': quantity,
  26. 'buyer_phone': buyer_phone,
  27. 'buyer_msg': buyer_msg,
  28. },
  29. extra),
  30. 'member'
  31. )
  32. // 获取订单支付信息
  33. export const getVrOrderpayInfo =
  34. (paySn) =>
  35. requestApi(
  36. '/membervrbuy/pay',
  37. 'POST',
  38. {
  39. 'pay_sn': paySn
  40. },
  41. 'member'
  42. )