set.js 1.1 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. //获取省市区
  45. export function getAddressArea(data) {
  46. return request({
  47. url: '/api/area',
  48. method: 'get',
  49. data
  50. });
  51. }
  52. //获取村镇
  53. export function getAddressCity(data,id) {
  54. return request({
  55. url: '/api/village/'+id,
  56. method: 'get',
  57. data
  58. });
  59. }
  60. export function getAddressDetail(data,id) {
  61. return request({
  62. url: '/api/address/detail/'+id,
  63. method: 'get',
  64. data
  65. });
  66. }