set.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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 getPoint(data) {
  28. return request({
  29. url: '/api/point_plan',
  30. method: 'GET',
  31. data
  32. });
  33. }
  34. //购买节点
  35. export function buyPoint(data,id) {
  36. return request({
  37. url: '/api/point_plan/' + id,
  38. method: 'POST',
  39. data
  40. });
  41. }
  42. //实名认证
  43. export function realName(data) {
  44. return request({
  45. url: '/api/real_name',
  46. method: 'POST',
  47. data
  48. });
  49. }
  50. //设置下级服务费比例
  51. export function setServiceRatio(uid,data) {
  52. return request({
  53. url: '/api/spread/service/'+uid,
  54. method: 'post',
  55. data
  56. })
  57. }
  58. //设置下级佣金比例
  59. export function setRatio(uid,data) {
  60. return request({
  61. url: '/api/spread/ratio/'+uid,
  62. method: 'post',
  63. data
  64. })
  65. }
  66. //绑定手机
  67. export function binding(data) {
  68. return request({
  69. url: '/api/binding',
  70. method: 'post',
  71. data
  72. });
  73. }
  74. // #ifdef APP-PLUS
  75. //苹果生成账户
  76. export function applelogin(data) {
  77. return request({
  78. url: '/api/applelogin',
  79. method: 'post',
  80. data
  81. });
  82. }
  83. // #endif