my.js 1.6 KB

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