import Service from '../lib/service' import axios from "axios"; import Config from '../config' class DrawService extends Service { constructor () { super() axios.defaults.baseURL = Config.Host80 } //中奖轮播图 async winningRotationList (params = {}) { let res = await this.postAll("Host80","/web/activity/custom/deposit/raffle/popup/custom/list", params); return res } //余额 async walletbalance (params = {}) { let res = await this.postAll("Host80","/custom/get/balance", params); return res } //处理中出金金额 async pendingWithdrawAmount (params = {}) { let res = await this.postAll("Host04","/withdraw/amount/pending", params); return res } //抽奖 async customActivityRaffleRaffle (params = {}) { let res = await this.postAll("Host80","/custom/activity/deposit/raffle/custom/raffle", params); return res } //抽奖 async customActivityRaffleRaffleNumber (params = {}) { let res = await this.postAll("Host80","/custom/activity/deposit/raffle/custom/number/record/search/not/expire", params); return res } //首页中奖轮播图 async winningRotationNewsletterList (params = {}) { let res = await this.postAll("Host80","/web/activity/custom/deposit/raffle/popup/custom/newsletter/list", params); return res } } export default new DrawService