my.js 1.1 KB

123456789101112131415161718192021
  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', 'get', 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)