import Vue from 'vue'; import qs from 'qs' const api = { //---------------------------------account--------------------------------- siteInfo: () => Vue.prototype.$axios.get('/api/home/siteInfo'), register: (params) => Vue.prototype.$axios.post('/api/home/register',params), login: (params) => Vue.prototype.$axios.post('/api/user/login',params), loginOut: (params) => Vue.prototype.$axios.post('/api/user/loginOut',params), forgotPassword: (params) => Vue.prototype.$axios.post('/api/user/forgotPassword',params), updatePassword: (params) => Vue.prototype.$axios.post('/api/user/updatePassword',params), userInfo: (params) => Vue.prototype.$axios.post('/api/user/userInfo',params), updateNickname: (params) => Vue.prototype.$axios.post('/api/user/updateNickname',params), updateGender: (params) => Vue.prototype.$axios.post('/api/user/updateGender',params), //--------------------------------- free --------------------------------- imgCode: () => Vue.prototype.$axios.get('/api/home/imgCode'), sendSmsCode: (params) => Vue.prototype.$axios.post('/api/home/sendSmsCode',params), //--------------------------------- bet --------------------------------- lotteryClassList: (params) => Vue.prototype.$axios.post('/api/lottery/lotteryClassList',params), nextLotteryPeriod: (params) => Vue.prototype.$axios.post('/api/lottery/nextLotteryPeriod',params), bettingConfig: (params) => Vue.prototype.$axios.post('/api/lottery/bettingConfig',params), betting: (params) => Vue.prototype.$axios.post('/api/lottery/betting',params), lotteryRecords: (params) => Vue.prototype.$axios.post('/api/lottery/lotteryRecords',params), myLotteryRecords: (params) => Vue.prototype.$axios.post('/api/lottery/myLotteryRecords',params), //--------------------------------- me --------------------------------- getPayType: (params) => Vue.prototype.$axios.post('/api/recharge/getPayType',params), rechargeConfig: (params) => Vue.prototype.$axios.post('/api/recharge/rechargeConfig',params), recharge: (params) => Vue.prototype.$axios.post('/api/recharge/recharge',params), rechargeList: (params) => Vue.prototype.$axios.post('/api/recharge/rechargeList',params), toPay: (params) => Vue.prototype.$axios.post('/api/recharge/toPay',params), withdrawConfig: (params) => Vue.prototype.$axios.post('/api/withdraw/withdrawConfig',params), withdrawServiceCharge: (params) => Vue.prototype.$axios.post('/api/withdraw/withdrawServiceCharge',params), withdraw: (params) => Vue.prototype.$axios.post('/api/withdraw/withdraw',params), withdrawList: (params) => Vue.prototype.$axios.post('/api/withdraw/withdrawList',params), billList: (params) => Vue.prototype.$axios.post('/api/summary/billList',params), //--------------------------------- invite --------------------------------- inviteCode: (params) => Vue.prototype.$axios.post('/api/user/inviteCode',params), bonusOut: (params) => Vue.prototype.$axios.post('/api/summary/bonusOut',params), bonusOutRecords: (params) => Vue.prototype.$axios.post('/api/summary/bonusOutRecords',params), promotionRecords: (params) => Vue.prototype.$axios.post('/api/summary/promotionRecords',params), bonusRecords: (params) => Vue.prototype.$axios.post('/api/summary/bonusRecords',params), //--------------------------------- bankCard --------------------------------- bankcardList: (params) => Vue.prototype.$axios.post('/api/user/bankcardList',params), bindBank: (params) => Vue.prototype.$axios.post('/api/user/bindBank',params), //--------------------------------- goods --------------------------------- banner: () => Vue.prototype.$axios.get('/api/home/banner'), } export default api