money.js 838 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import request from '@/utils/request'
  2. // 统计金额
  3. export function computedOrderkey(data) {
  4. return request({
  5. url: '/api/order/computed/'+data.orderkey,
  6. method: 'post',
  7. data
  8. });
  9. }
  10. // 创建订单
  11. export function createOrderkey(data,key) {
  12. return request({
  13. url: '/api/order/create/'+key,
  14. method: 'post',
  15. data
  16. });
  17. }
  18. // 账户余额
  19. export function balance(data) {
  20. return request({
  21. url: '/api/user/balance',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 订单支付
  27. export function orderPay(data) {
  28. return request({
  29. url: '/api/order/pay',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 计算订单
  35. export function compOrder(data) {
  36. return request({
  37. url: '/api/order/computed',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 生成订单
  43. export function order(data) {
  44. return request({
  45. url: '/api/order/create',
  46. method: 'post',
  47. data
  48. });
  49. }