lottery.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // +----------------------------------------------------------------------
  2. // | CRMEB [ CRMEB赋能开发者,助力企业发展 ]
  3. // +----------------------------------------------------------------------
  4. // | Copyright (c) 2016~2021 https://www.crmeb.com All rights reserved.
  5. // +----------------------------------------------------------------------
  6. // | Licensed CRMEB并不是自由软件,未经许可不能去掉CRMEB相关版权
  7. // +----------------------------------------------------------------------
  8. // | Author: CRMEB Team <admin@crmeb.com>
  9. // +----------------------------------------------------------------------
  10. import request from "@/utils/request.js";
  11. /**
  12. * 获取抽奖详情信息
  13. *
  14. */
  15. export function getLotteryData(type) {
  16. return request.get(`v2/lottery/info/${type}`);
  17. }
  18. /**
  19. * 参与抽奖
  20. *
  21. */
  22. export function startLottery(data) {
  23. return request.post(`v2/lottery`, data);
  24. }
  25. /**
  26. * 领奖
  27. *
  28. */
  29. export function receiveLottery(data) {
  30. return request.post(`v2/lottery/receive`, data);
  31. }
  32. /**
  33. * 获取中奖记录
  34. *
  35. */
  36. export function getLotteryList(data) {
  37. return request.get(`v2/lottery/record`, data);
  38. }