user.js 912 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. import request from '@/utils/request'
  2. import { upFilse} from '@/utils/request';
  3. // 获取用户信息
  4. export function getUserInfo(data) {
  5. return request({
  6. url: '/api/userinfo',
  7. method: 'get',
  8. data
  9. });
  10. }
  11. // 获取用户信息
  12. export function getUser(data) {
  13. return request({
  14. url: '/api/user',
  15. method: 'get',
  16. data
  17. });
  18. }
  19. //推荐人
  20. export function spread_people(data) {
  21. return request({
  22. url: '/api/spread/people',
  23. method: 'post',
  24. data
  25. });
  26. }
  27. //推荐人
  28. export function spread(data) {
  29. return request({
  30. url: '/api/spread/banner',
  31. method: 'GET',
  32. data
  33. });
  34. }
  35. //获取版本
  36. export function version(data) {
  37. return request({
  38. url: '/api/version',
  39. method: 'GET',
  40. data
  41. })
  42. }
  43. export function uploads(data){
  44. return upFilse({
  45. url:'/api/upload/image',
  46. method:'post',
  47. data
  48. });
  49. }
  50. export function edit(data){
  51. return request({
  52. url: '/api/user/edit',
  53. method:'post',
  54. data
  55. });
  56. }