received.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import request from '@/utils/request'
  2. // 获取商户收款码
  3. export function receivedCollectionCode(data,id) {
  4. return request({
  5. url: '/api/received/collection_code',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 获取付款码
  11. export function receivedPaymentCode(data,id) {
  12. return request({
  13. url: '/api/received/payment_code',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 检测是否有效
  19. export function receivedCodeState(data,id) {
  20. return request({
  21. url: '/api/received/code_state',
  22. method: 'post',
  23. data
  24. });
  25. }
  26. // 创建订单
  27. export function receivedPaymentCreate(data,id) {
  28. return request({
  29. url: '/api/received/payment_create',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 我的订单
  35. export function receivedLst(data,id) {
  36. return request({
  37. url: '/api/received/lst',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. // 收款记录
  43. export function collectionLst(data,id) {
  44. return request({
  45. url: '/api/received/collection_lst',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. // 已提醒
  51. export function collectionSetTip(data,id) {
  52. return request({
  53. url: '/api/received/collection_set_tip',
  54. method: 'post',
  55. data
  56. });
  57. }