whole.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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,time) {
  12. return request({
  13. url: '/api/whole/list/' + time,
  14. method: 'get',
  15. data
  16. });
  17. }
  18. // 获取批发商品详情
  19. export function getWholeDetai(data,) {
  20. return request({
  21. url: '/api/whole/detail/:id/[:time]/[:status]' + time,
  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() {
  36. return request({
  37. url: '/api/package/mylist',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. // 上传评证
  43. export function upEvaluation() {
  44. return request({
  45. url: '/api/package/evaluation',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. // 获取新人礼包
  51. export function getNewList(data) {
  52. return request({
  53. url: '/api/whole/news',
  54. method: 'get',
  55. data
  56. });
  57. }