index.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. //我的相关:
  2. const {
  3. http
  4. } = uni.$u
  5. //发送验证码
  6. export const sendCode = (params, config = {}) => http.post('/sms/send', params, config)
  7. //注册
  8. export const register = (params, config = {}) => http.post('/auth/register', params, config)
  9. //登录
  10. export const login = (params, config = {}) => http.post('/auth/login', params, config)
  11. //忘记密码
  12. export const forgetPwd = (params, config = {}) => http.post('/user/updatePassword', params, config)
  13. //我的课程订单
  14. export const myScoreOrder = (params, config = {}) => http.post('/order/course/list', params, config)
  15. // 课程订单详情
  16. export const myScoreOrderDetail = (params, config = {}) => http.post('/order/course/show', params, config)
  17. // 我的任务订单
  18. export const myTaskOrder = (params, config = {}) => http.post('/order/task/list', params, config)
  19. // 任务订单详情
  20. export const myTaskOrderDetail = (params, config = {}) => http.post('/order/task/show', params, config)
  21. //系统参数
  22. export const sysParms = (params, config = {}) => http.post('/setting/list', params, config)
  23. //申请提现
  24. export const applyWithdraw = (params, config = {}) => http.post('/user/withdraw/add', params, config)
  25. //修改手机号
  26. export const changePhone = (params, config = {}) => http.post('/user/updateMobile', params, config)
  27. //退出登录
  28. export const loginOut = (params, config = {}) => http.post('/user/logout', params, config)
  29. //修改用户信息
  30. export const updateInfo = (params, config = {}) => http.post('/user/update', params, config)
  31. //提现记录
  32. export const withdrawLog = (params, config = {}) => http.post('/user/withdraw/list', params, config)
  33. //我的团队
  34. export const myTeam = (params, config = {}) => http.post('/user/recommend', params, config)
  35. //个人信息
  36. export const userInfo = (params, config = {}) => http.post('/user/info', params, config)
  37. //任务佣金汇总
  38. export const taskCount = (params, config = {}) => http.post('/user/bill/taskCount', params, config)
  39. //推广佣金汇总
  40. export const recommendCount = (params, config = {}) => http.post('/user/bill/recommendCount', params, config)
  41. //任务佣金明细
  42. export const taskList = (params, config = {}) => http.post('/user/bill/taskList', params, config)
  43. //推广佣金明细
  44. export const recommendList = (params, config = {}) => http.post('/user/bill/recommendList', params, config)
  45. //问答记录
  46. export const quesRecord = (params, config = {}) => http.post('/chat/list', params, config)
  47. //提交问答
  48. export const sendGpt = (params, config = {}) => http.post('/chat/send', params, config)
  49. //保存提现信息
  50. export const withDrawInfo = (params, config = {}) => http.post('/chat/send', params, config)
  51. //回显提现信息
  52. export const saveWithDrawInfo = (params, config = {}) => http.post('/chat/send', params, config)