sweepstakes.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. import { request } from '@/api/request'
  2. // 获取新的预约信息
  3. function getNewBoxInfo(loading) {
  4. return request({ url: '/getNewBoxInfo' }, loading)
  5. }
  6. // 预约福袋
  7. function beforeBuyBox(data, loading) {
  8. return request({ url: '/beforeBuyBox', data }, loading)
  9. }
  10. // 我的预约
  11. function boxBuyRecord(data, loading) {
  12. return request({ url: '/boxBuyRecord', data }, loading)
  13. }
  14. // 跑马灯
  15. function boxDownMessageList(loading) {
  16. return request({ url: '/boxDownMessageList' }, loading)
  17. }
  18. // 泡泡列表
  19. function boxRandGoodsList(loading) {
  20. return request({ url: '/boxRandGoodsList' }, loading)
  21. }
  22. // 拆袋
  23. function openBoxOnline(loading) {
  24. return request({ url: '/openBoxOnline' }, loading)
  25. }
  26. // 福袋商品 banner
  27. function boxOutBanner(loading) {
  28. return request({ url: '/boxOutBanner' }, loading)
  29. }
  30. // 福袋商品列表
  31. function boxOutGoodsList(data, loading) {
  32. return request({ url: '/boxOutGoodsList', data }, loading)
  33. }
  34. // 回收卡
  35. function recycleCardInfo(loading) {
  36. return request({ url: '/recycleCardInfo' }, loading)
  37. }
  38. // 领取回收卡
  39. function getRecycleCard(type, loading) {
  40. return request({ url: '/getRecycleCard', data: { type } }, loading)
  41. }
  42. // 领取奖金
  43. function getUserTeamMoney(loading) {
  44. return request({ url: '/getUserTeamMoney' }, loading)
  45. }
  46. // 已处理
  47. function boxHandleList(data, loading) {
  48. return request({ url: '/boxHandleList', data }, loading)
  49. }
  50. // 已处理 未读
  51. function boxHandleUnread(loading) {
  52. return request({ url: '/boxHandleUnread' }, loading)
  53. }
  54. // 发货
  55. function boxGoodsSurePost(data, loading) {
  56. return request({ url: '/boxGoodsSurePost', data }, loading)
  57. }
  58. // 回收
  59. function boxGoodsReBuy(data, loading) {
  60. return request({ url: '/boxGoodsReBuy', data }, loading)
  61. }
  62. export default {
  63. getNewBoxInfo,
  64. beforeBuyBox,
  65. boxBuyRecord,
  66. boxDownMessageList,
  67. boxRandGoodsList,
  68. openBoxOnline,
  69. boxOutBanner,
  70. boxOutGoodsList,
  71. recycleCardInfo,
  72. getRecycleCard,
  73. getUserTeamMoney,
  74. boxHandleList,
  75. boxHandleUnread,
  76. boxGoodsSurePost,
  77. boxGoodsReBuy
  78. }