whole.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import request from '@/utils/request'
  2. // 获取批发时间段
  3. export function getWholeTimeArea(data) {
  4. return request({
  5. url: '/api/whole/index',
  6. method: 'get',
  7. data
  8. });
  9. }
  10. // 获取批发商品列表
  11. export function getWholeList(data,id) {
  12. return request({
  13. url: '/api/whole/list/' + id,
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 获取批发商品详情
  19. export function getWholeDetai(data,id,time,status,is_new) {
  20. return request({
  21. url: '/api/whole/detail/' + id + '/' + time + '/' + status + '/' + is_new,
  22. method: 'get',
  23. data
  24. });
  25. }
  26. // 预约包
  27. export function reservePackage(data) {
  28. return request({
  29. url: '/api/package/reserve',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // 我的包
  35. export function getMyPackage(data) {
  36. return request({
  37. url: '/api/package/mylist',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 上传评证
  43. export function upEvaluation(data) {
  44. return request({
  45. url: '/api/package/evaluation',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. // 获取审核列表
  51. export function getMySellout(data) {
  52. return request({
  53. url: '/api/package/order',
  54. method: 'post',
  55. data
  56. });
  57. }
  58. // 获取新人礼包
  59. export function getNewList(data) {
  60. return request({
  61. url: '/api/whole/news',
  62. method: 'get',
  63. data
  64. });
  65. }
  66. // 拒绝
  67. export function packageAudit(data) {
  68. return request({
  69. url: '/api/package/audit',
  70. method: 'post',
  71. data
  72. });
  73. }