123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266 |
- import https from './interface'
- const Timestamp = new Date().getTime();//随机时间戳
-
- /**
- * 将所有接口统一起来便于维护
- * 如果项目很大可以将 url 独立成文件,接口分成不同的模块
- * handle [boolean] 如果需要自己处理 catch 请求 ,传入 true ,交给接口统一处理 ,请传如 false或不传
- */
- //获取用户信息接口
- export const getUserInfo = (data) => {
- return https({
- url: '/api/getUserInfo?time='+Timestamp,
- method: 'GET',
- data,
- })
- }
- //新用户注册接口
- export const regUser = (data) => {
- return https({
- url: '/api/regUser?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //场次列表
- export const paimaiGoodspaicat = (data) => {
- return https({
- url: '/api/paimai/goodspaicat?time='+Timestamp,
- method: 'GET',
- data,
- })
- }
- //预约
- export const yuyue = (data) => {
- return https({
- url: '/api/paimai/yuyue?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //预约列表
- export const yuyuelist = (data) => {
- return https({
- url: '/api/paimai/yuyuelist?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //订单列表
- export const paiorderlist = (data) => {
- return https({
- url: '/api/paimai/paiorderlist?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //资金记录
- export const payjilu = (data) => {
- return https({
- url: '/api/paimai/payjilu?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //兑换预支付订单
- export const dhyuzhifu = (data) => {
- return https({
- url: '/api/paimai/dhyuzhifu?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //兑换付款后调用
- export const dhinfo = (data) => {
- return https({
- url: '/api/paimai/dhinfo?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //付款后
- export const fukuan = (data) => {
- return https({
- url: '/api/paimai/fukuan?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //兑换预支付订单
- export const zzyuzhifu = (data) => {
- return https({
- url: '/api/paimai/zzyuzhifu?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //兑换付款后调用
- export const zzinfo = (data) => {
- return https({
- url: '/api/paimai/zzinfo?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //团队信息
- export const tuanduiinfo = (data) => {
- return https({
- url: '/api/paimai/tuanduiinfo?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //团队信息
- export const tuanduilist = (data) => {
- return https({
- url: '/api/paimai/tuanduilist?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //团队信息
- export const qianbaomingxi = (data) => {
- return https({
- url: '/api/paimai/qianbaomingxi?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //体现 api/paimai/applyWithdraw
- export const applyWithdraw = (data) => {
- return https({
- url: '/api/paimai/applyWithdraw?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //体现记录
- export const withdrawLog = (data) => {
- return https({
- url: '/api/paimai/withdrawLog?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //补票
- export const jiaoshui = (data) => {
- return https({
- url: '/api/paimai/jiaoshui?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- export const jiefeng = (data) => {
- return https({
- url: '/api/paimai/jiefeng?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //捡漏
- export const jianloulist = (data) => {
- return https({
- url: '/api/paimai/jianloulist?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //立即捡漏 api/paimai/paiorder
- export const paiorder = (data) => {
- return https({
- url: '/api/paimai/paiorder?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //收益 api/paimai/paimai/shifanglist
- export const shifanglist = (data) => {
- return https({
- url: '/api/paimai/shifanglist?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //平仓
- export const shifang = (data) => {
- return https({
- url: '/api/paimai/shifang?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //捡漏数据 api/paimai/jianlounum
- export const jianlounum = (data) => {
- return https({
- url: '/api/paimai/jianlounum?time='+Timestamp,
- method: 'POST',
- data,
- })
- }
- //新手教程
- export const jiaocheng = (data) => {
- return https({
- url: '/api/paimai/jiaocheng?time='+Timestamp,
- method: 'GET',
- data,
- })
- }
- //参与规则
- export const guize = (data) => {
- return https({
- url: '/api/paimai/guize?time='+Timestamp,
- method: 'GET',
- data,
- })
- }
- //教程详情api/paimai/jiaochengxq
- export const jiaochengxq = (data) => {
- return https({
- url: '/api/paimai/jiaochengxq?time='+Timestamp,
- method: 'GET',
- data,
- })
- }
- //节点详情
- export const jiedianxq = (data) => {
- return https({
- url: '/api/paimai/jiedianxq?time='+Timestamp,
- method: 'GET',
- data,
- })
- }
- // 默认全部导出
- export default {
- getUserInfo,
- regUser,
- paimaiGoodspaicat,
- yuyue,
- paiorderlist,
- yuyuelist,
- payjilu,
- dhyuzhifu,
- dhinfo,
- zzyuzhifu,
- zzinfo,
- tuanduiinfo,
- tuanduilist,
- qianbaomingxi,
- applyWithdraw,
- withdrawLog,
- jiaoshui,
- fukuan,
- jiefeng,
- jianloulist,
- paiorder,
- shifanglist,
- shifang,
- jianlounum,
- jiaocheng,
- guize,
- jiaochengxq,
- jiedianxq
- }
|