jfsc.js 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. import http from '@/http/api.js'
  2. export const getjwtdSpgl = (current,size) => {
  3. return http.request({
  4. url: '/api/jwtdSpgl/pageApp',
  5. method: 'get',
  6. params:{
  7. current,size
  8. }
  9. })
  10. }
  11. export const jwtdSpgldetail = (id) => {
  12. return http.request({
  13. url: '/api/jwtdSpgl/detail',
  14. method: 'get',
  15. params:{
  16. id
  17. }
  18. })
  19. }
  20. // jwtdJfjl/getJlList get 积分明细 传type(积分获取,积分兑换)不传为全部记录
  21. export const getJlList = (type) => {
  22. return http.request({
  23. url: '/api/jwtdJfjl/getJlList',
  24. method: 'get',
  25. params:{
  26. type
  27. }
  28. })
  29. }
  30. // jwtdSpglDhjl/gwcjs post 购物车结算 传list
  31. export const jwtdSpglDhjl = (row) => {
  32. return http.request({
  33. url: '/api/jwtdSpglDhjl/gwcjs',
  34. method: 'post',
  35. data:row
  36. })
  37. }
  38. //jwtdSpglDhjl/getDdList我的订单 传type(待领取,历史)
  39. export const getDdList = (type,spmc,current) => {
  40. return http.request({
  41. url: '/api/jwtdSpglDhjl/getDdList',
  42. method: 'get',
  43. params:{
  44. type,spmc,current
  45. }
  46. })
  47. }
  48. // jwtdSzqyJyz/save post 加油站登记
  49. export const jyzdjSave = (row) => {
  50. return http.request({
  51. url: '/api/jwtdSzqyJyz/save',
  52. method: 'post',
  53. data:row
  54. })
  55. }
  56. //jwtdSzqyCsjl/page get 出售记录
  57. export const jyzSellPage = (spmc,current) => {
  58. return http.request({
  59. url: '/api/jwtdSzqyCsjl/page',
  60. method: 'get',
  61. params:{
  62. spmc,current
  63. }
  64. })
  65. }
  66. //jwtdSzqyCsjl/detail get 出售记录详情 传id
  67. export const jyzSellDetail = (id) => {
  68. return http.request({
  69. url: '/api/jwtdSzqyCsjl/detail',
  70. method: 'get',
  71. params:{
  72. id
  73. }
  74. })
  75. }
  76. //加入购物车 传spId商品id,userId用户id
  77. export const jwtdGwc = (row) => {
  78. return http.request({
  79. url: '/api/jwtdGwc/save',
  80. method: 'post',
  81. data:row
  82. })
  83. }
  84. //jwtdGwc/page get 购物车列表 传userId
  85. export const jwtdGwcList = (userId) => {
  86. return http.request({
  87. url: '/api/jwtdGwc/page',
  88. method: 'get',
  89. params:{
  90. userId
  91. }
  92. })
  93. }
  94. export const jwtdGwcRemove = (row) => {
  95. return http.request({
  96. url: '/api/jwtdGwc/remove',
  97. method: 'post',
  98. data:row
  99. })
  100. }
  101. export const jfsclqsp = (ddbh) => {
  102. return http.request({
  103. url: '/api/jwtdSpglDhjl/lqsp',
  104. method: 'post',
  105. params:{
  106. ddbh
  107. }
  108. })
  109. }
  110. //获取当前登陆人积分
  111. export const getJf = () => {
  112. return http.request({
  113. url: '/api/blade-system/user/getJf',
  114. method: 'get',
  115. params:{
  116. }
  117. })
  118. }