set.js 957 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. import request from '@/utils/request'
  2. import {upFilse} from '@/utils/request'
  3. // 修改用户信息
  4. export function userEdit(data) {
  5. return request({
  6. url: '/api/user/edit',
  7. method: 'post',
  8. data
  9. });
  10. }
  11. //退出登录
  12. export function logout(data) {
  13. return request({
  14. url: '/api/logout',
  15. method: 'get',
  16. data
  17. });
  18. }
  19. //修改登录密码
  20. export function updatalogin(data) {
  21. return request({
  22. url: '/api/register/reset',
  23. method: 'post',
  24. data
  25. });
  26. }
  27. //修改交易密码
  28. export function updatatran(data) {
  29. return request({
  30. url: '/api/register/tradereset',
  31. method: 'post',
  32. data
  33. });
  34. }
  35. export function addmsg(data) {
  36. return request({
  37. url: '/api/mine/addmsg',
  38. method: 'post',
  39. data
  40. });
  41. }
  42. //上传图片
  43. export function upload(data) {
  44. return upFilse({
  45. url: '/api/upload/image',
  46. method: 'post',
  47. data
  48. });
  49. }
  50. //上传图片
  51. export function mymsg(data) {
  52. return request({
  53. url: '/api/mine/mymsg',
  54. method: 'post',
  55. data
  56. });
  57. }