set.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. import request from '@/utils/request'
  2. // 修改用户信息
  3. export function userEdit(data) {
  4. return request({
  5. url: '/api/user/edit',
  6. method: 'post',
  7. data
  8. });
  9. }
  10. //退出登录
  11. export function logout(data) {
  12. return request({
  13. url: '/api/logout',
  14. method: 'get',
  15. data
  16. });
  17. }
  18. //修改密码
  19. export function registerReset(data) {
  20. return request({
  21. url: '/api/register/reset',
  22. method: 'post',
  23. data
  24. });
  25. }
  26. //绑定手机
  27. export function binding(data) {
  28. return request({
  29. url: '/api/binding',
  30. method: 'post',
  31. data
  32. });
  33. }
  34. // #ifdef APP-PLUS
  35. //苹果生成账户
  36. export function applelogin(data) {
  37. return request({
  38. url: '/api/applelogin',
  39. method: 'post',
  40. data
  41. });
  42. }
  43. // #endif
  44. export function realName(data) {
  45. return request({
  46. url: '/api/rname',
  47. method: 'post',
  48. data
  49. });
  50. }
  51. //是否设置过交易密码
  52. export function is_pas(data) {
  53. return request({
  54. url: '/api/is_pas',
  55. method: 'get',
  56. data
  57. });
  58. }
  59. //修改交易密码
  60. export function transaction(data) {
  61. return request({
  62. url: '/api/set_payment',
  63. method: 'post',
  64. data
  65. });
  66. }