my.js 1.5 KB

1234567891011121314151617181920212223242526272829
  1. import { request } from '@/service/ajax'
  2. // 商品模块路由
  3. const goodsUrl = '/admin/'
  4. // 猜你喜欢
  5. export const getMemberInfo = (data) => request(goodsUrl + 'myself', 'get', { })
  6. export const getMyMoments = (data) => request(goodsUrl + 'myself/myMoments', 'post', data)
  7. export const getMyLikeMoments = (data) => request(goodsUrl + 'myself/moments', 'post', data)
  8. //获取充值金额
  9. export const getRechargePage = (data) => request(goodsUrl + 'myself/getRechargePage', 'get', data)
  10. //获取我的道具
  11. export const getPayChannel = (data) => request(goodsUrl + 'myself/payChannel', 'get', data)
  12. //J币流水
  13. export const getCashFlowHistoryPage = (data) => request(goodsUrl + 'myself/getCashFlowHistoryPage', 'post', data)
  14. //每日收益
  15. export const getDailyEarnings = (data) => request(goodsUrl + 'myself/getDailyEarnings', 'post', data)
  16. //黑名单列表
  17. export const getBlackList = (data) => request(goodsUrl + 'myself/blacklist', 'post', data)
  18. export const delBlackItem = (data) => request(goodsUrl + 'myself/blacklist/'+data, 'delete', {})
  19. //兑换码
  20. export const exchangeCode = (data) => request(goodsUrl + 'myself/exchangeCode', 'post', data)
  21. // 喜欢我的人的列表
  22. export const likeMeList = (data) => request(goodsUrl + 'utility/likeMe', 'post', data)
  23. // 获取当前客户VIP信息
  24. export const getUserVip = (data) => request(goodsUrl + 'myself/getUserVip', 'get', data)
  25. // 购买VIP
  26. export const buyVip = (data) => request(goodsUrl + 'myself/buyVip', 'post', data)