zero.js 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. import request from "@/utils/request.js";
  2. export function getCardList() {
  3. return request({
  4. url: '/api/pass/card',
  5. method: 'get'
  6. });
  7. }
  8. //pass/create
  9. export function createPass(data) {
  10. return request({
  11. url: '/api/pass/create',
  12. method: 'post',
  13. data
  14. });
  15. }
  16. //获取广告信息
  17. export function getGG() {
  18. // browse/data
  19. return request({
  20. url: '/api/browse/data',
  21. method: 'get'
  22. });
  23. }
  24. //browse/create
  25. export function createGG(data) {
  26. // browse/data
  27. return request({
  28. url: '/api/browse/create',
  29. method: 'get',
  30. data
  31. });
  32. }
  33. //广告生效
  34. export function ggGive(data) {
  35. return request({
  36. url: '/api/browse/valid',
  37. method: 'post',
  38. data
  39. });
  40. }
  41. //挂售
  42. export function createGs(data) {
  43. return request({
  44. url: '/api/transaction/create',
  45. method: 'post',
  46. data
  47. });
  48. }
  49. //挂售列表
  50. export function getGsList(data) {
  51. return request({
  52. url: '/api/pass/transaction',
  53. method: 'get',
  54. data
  55. });
  56. }
  57. //
  58. export function passUser(data) {
  59. return request({
  60. url: '/api/pass/user',
  61. method: 'get',
  62. data
  63. });
  64. }
  65. export function tradeMoney(data) {
  66. return request({
  67. url: '/api/pass/trade_money',
  68. method: 'post',
  69. data
  70. });
  71. }
  72. export function passLst(data) {
  73. return request({
  74. url: '/api/pass/lst',
  75. method: 'get',
  76. data
  77. });
  78. }
  79. //买单
  80. export function buyGs(data) {
  81. return request({
  82. url: '/api/pass/buy_order',
  83. method: 'post',
  84. data
  85. });
  86. }
  87. //取消挂售
  88. export function qxGs(data) {
  89. return request({
  90. url: '/api/pass/cancel',
  91. method: 'post',
  92. data
  93. });
  94. }
  95. //上传凭证
  96. export function upEvaluation(data) {
  97. return request({
  98. url: '/api/pass/up_evaluation',
  99. method: 'post',
  100. data
  101. });
  102. }
  103. //审核
  104. export function auth(data) {
  105. return request({
  106. url: '/api/pass/auth',
  107. method: 'post',
  108. data
  109. });
  110. }
  111. //getCardInfo
  112. export function getCardInfo(data) {
  113. return request({
  114. url: '/api/transaction/info',
  115. method: 'get',
  116. data
  117. });
  118. }
  119. export function createBuy(data) {
  120. return request({
  121. url: '/api/pass/buy_create',
  122. method: 'post',
  123. data
  124. });
  125. }
  126. export function goBuy(data) {
  127. return request({
  128. url: '/api/pass/buy_save',
  129. method: 'post',
  130. data
  131. });
  132. }
  133. export function cancelBuy(data) {
  134. return request({
  135. url: '/api/pass/buy_cancel',
  136. method: 'post',
  137. data
  138. });
  139. }