water.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. import request from '@/utils/request'
  2. // 送水列表
  3. export function waterList(data) {
  4. return request({
  5. url: '/api/certificate/list',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 送水详情
  11. export function waterDetail(data) {
  12. return request({
  13. url: '/api/certificate/detail/'+data.id,
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 获取商品二级分类
  19. export function category_layer(data) {
  20. return request({
  21. url: '/api/category_layer',
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 获取二级分类下商品
  27. export function category_goods(data) {
  28. return request({
  29. url: '/api/category_goods',
  30. method: 'get',
  31. data
  32. });
  33. }
  34. // 获取水票
  35. export function certificate(data) {
  36. return request({
  37. url: '/api/user/certificate',
  38. method: 'get',
  39. data
  40. });
  41. }
  42. // 水票使用记录
  43. export function use_certificate(data) {
  44. return request({
  45. url: '/api/user/use_certificate',
  46. method: 'get',
  47. data
  48. });
  49. }
  50. // 获取门店可用时间段
  51. export function storeday(data) {
  52. return request({
  53. url: '/api/order/storeday',
  54. method: 'get',
  55. data
  56. });
  57. }
  58. // 创建押桶订单
  59. export function createPledge(data) {
  60. return request({
  61. url: '/api/pledge/create',
  62. method: 'post',
  63. data
  64. });
  65. }
  66. //
  67. export function delPledge(data) {
  68. return request({
  69. url: '/api/pledge/refund',
  70. method: 'post',
  71. data
  72. });
  73. }