lottery.js 411 B

123456789101112131415161718192021222324252627282930
  1. const request = uni.$u.http
  2. // 抽奖
  3. export function luckyDraw(data){
  4. return request.post(
  5. `v1/draw/luckyDraw`,
  6. data
  7. )
  8. }
  9. // 抽奖详情
  10. export function getDrawInfo(data){
  11. return request.post(
  12. `v1/draw/drawInfo`,
  13. data
  14. )
  15. }
  16. // 中奖记录
  17. export function getDrawRecord(data){
  18. return request.post(
  19. `v1/draw/drawRecord`,
  20. data
  21. )
  22. }
  23. export default {
  24. luckyDraw,
  25. getDrawInfo,
  26. getDrawRecord
  27. }