user.js 928 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. import request from '@/utils/request'
  2. import { upFilse} from '@/utils/request';
  3. // 获取用户信息
  4. export function getUserInfo(data) {
  5. return request({
  6. url: '/api/user',
  7. method: 'get',
  8. data
  9. });
  10. }
  11. // 用户分享图
  12. export function spreadBanner(data) {
  13. return request({
  14. url: '/api/spread/banner',
  15. method: 'get',
  16. data
  17. });
  18. }
  19. //上传图片
  20. export function uploads(data) {
  21. return upFilse({
  22. url:'/api/upload',
  23. method:'post',
  24. data
  25. });
  26. }
  27. //查看公排下级
  28. export function children(data,id) {
  29. return request({
  30. url:'/api/user/children/' + id,
  31. method:'get',
  32. data
  33. });
  34. }
  35. //查看推荐下级
  36. export function spread_children(data,id) {
  37. return request({
  38. url:'/api/user/spread_children/' + id,
  39. method:'get',
  40. data
  41. });
  42. }
  43. //查看推荐下级总数
  44. export function num(data,id) {
  45. return request({
  46. url:'/api/user/children/num',
  47. method:'get',
  48. data
  49. });
  50. }