draw.js 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. import Service from '../lib/service'
  2. import axios from "axios";
  3. import Config from '../config'
  4. class DrawService extends Service {
  5. constructor () {
  6. super()
  7. axios.defaults.baseURL = Config.Host80
  8. }
  9. //中奖轮播图
  10. async winningRotationList (params = {}) {
  11. let res = await this.postAll("Host80","/web/activity/custom/deposit/raffle/popup/custom/list", params);
  12. return res
  13. }
  14. //余额
  15. async walletbalance (params = {}) {
  16. let res = await this.postAll("Host80","/custom/get/balance", params);
  17. return res
  18. }
  19. //处理中出金金额
  20. async pendingWithdrawAmount (params = {}) {
  21. let res = await this.postAll("Host04","/withdraw/amount/pending", params);
  22. return res
  23. }
  24. //抽奖
  25. async customActivityRaffleRaffle (params = {}) {
  26. let res = await this.postAll("Host80","/custom/activity/deposit/raffle/custom/raffle", params);
  27. return res
  28. }
  29. //抽奖
  30. async customActivityRaffleRaffleNumber (params = {}) {
  31. let res = await this.postAll("Host80","/custom/activity/deposit/raffle/custom/number/record/search/not/expire", params);
  32. return res
  33. }
  34. //首页中奖轮播图
  35. async winningRotationNewsletterList (params = {}) {
  36. let res = await this.postAll("Host80","/web/activity/custom/deposit/raffle/popup/custom/newsletter/list", params);
  37. return res
  38. }
  39. }
  40. export default new DrawService