红绿项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

81 lines
5.7 KiB

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),
article: (params) => Vue.prototype.$axios.post('/api/index/article',params),
appVersion: (params) => Vue.prototype.$axios.post('/api/index/appVersion',params),
info: () => Vue.prototype.$axios.post('/api/index/info'),
//--------------------------------- 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),
bonusSummary: (params) => Vue.prototype.$axios.post('/api/summary/bonusSummary',params),
//--------------------------------- bankCard ---------------------------------
bankcardList: (params) => Vue.prototype.$axios.post('/api/user/bankcardList',params),
bindBank: (params) => Vue.prototype.$axios.post('/api/user/bindBank',params),
delBankCard: (params) => Vue.prototype.$axios.post('/api/user/delBankCard',params),
//--------------------------------- address ---------------------------------
addressList: (params) => Vue.prototype.$axios.post('/api/user/addressList',params),
addressSave: (params) => Vue.prototype.$axios.post('/api/user/addressSave',params),
delAddress: (params) => Vue.prototype.$axios.post('/api/user/delAddress',params),
//--------------------------------- goods ---------------------------------
banner: () => Vue.prototype.$axios.get('/api/home/banner'),
goodsList: (params) => Vue.prototype.$axios.post('/api/index/goodsList',params),
goodsDetail: (params) => Vue.prototype.$axios.post('/api/index/goods',params),
//--------------------------------- moni ---------------------------------
// lotteryClassListM: (params) => Vue.prototype.$axios.post('/api/demo/lotteryClassListDemo',params),
nextLotteryPeriodM: (params) => Vue.prototype.$axios.post('/api/demo/nextLotteryPeriodDemo',params),
bettingConfigM: (params) => Vue.prototype.$axios.post('/api/demo/bettingConfigDemo',params),
bettingM: (params) => Vue.prototype.$axios.post('/api/demo/bettingDemo',params),
lotteryRecordsM: (params) => Vue.prototype.$axios.post('/api/demo/lotteryRecordsDemo',params),
myLotteryRecordsM: (params) => Vue.prototype.$axios.post('/api/demo/myLotteryRecordsDemo',params),
//--------------------------------- hongbao ---------------------------------
launchRedEnvelop: (params) => Vue.prototype.$axios.post('/api/user/launchRedEnvelop',params),
redEnvelopList: (params) => Vue.prototype.$axios.post('/api/user/redEnvelopList',params),
cancelRedEnvelop: (params) => Vue.prototype.$axios.post('/api/user/cancelRedEnvelop',params),
redEnvelop: (params) => Vue.prototype.$axios.post('/api/user/redEnvelop',params),
receiveRedEnvelop: (params) => Vue.prototype.$axios.post('/api/user/receiveRedEnvelop',params),
}
export default api