set.js 722 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. import request from '@/utils/request'
  2. import {upFilse} from '@/utils/request'
  3. //上传图片
  4. export function upload(data) {
  5. return upFilse({
  6. url: '/api/user/qiniuUpload',
  7. method: 'post',
  8. data
  9. });
  10. }
  11. // 修改用户信息
  12. export function userEdit(data) {
  13. return request({
  14. url: '/api/user/setUserInfo',
  15. method: 'post',
  16. data
  17. });
  18. }
  19. //退出登录
  20. export function logout(data) {
  21. return request({
  22. url: '/api/logout',
  23. method: 'get',
  24. data
  25. });
  26. }
  27. //修改密码
  28. export function registerReset(data) {
  29. return request({
  30. url: '/api/register/reset',
  31. method: 'post',
  32. data
  33. });
  34. }
  35. //绑定手机
  36. export function binding(data) {
  37. return request({
  38. url: '/api/user/bindMobile',
  39. method: 'post',
  40. data
  41. });
  42. }