login.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. import { myRequest } from "./request.js";
  2. //登录短信
  3. export function loginSms(data) {
  4. return myRequest({
  5. url: "/app/common/seller/sms/login",
  6. method: "post",
  7. data: data,
  8. noToken: true,
  9. });
  10. }
  11. //短信登录用户
  12. export function smsLogin(data) {
  13. return myRequest({
  14. url: "/app/common/seller/sms_login",
  15. method: "post",
  16. data: data,
  17. noToken: true,
  18. });
  19. }
  20. //账号登录用户
  21. export function accountLogin(data) {
  22. return myRequest({
  23. url: "/app/common/seller/account_login",
  24. method: "post",
  25. data: data,
  26. noToken: true,
  27. });
  28. }
  29. //账号登录用户
  30. export function openidLogin(data) {
  31. return myRequest({
  32. url: "/app/common/seller/openid_login",
  33. method: "post",
  34. data: data,
  35. noToken: true,
  36. });
  37. }
  38. // 获取openid
  39. export function getOpenId(data) {
  40. return myRequest({
  41. url: "/app/common/distribution/gzh_openid",
  42. method: "get",
  43. data: data,
  44. noToken: true,
  45. });
  46. }
  47. //登录用户信息
  48. export function getInfo(data) {
  49. return myRequest({
  50. url: "/distribution/seller/getInfo",
  51. method: "get",
  52. data: data,
  53. });
  54. }
  55. //注册短信
  56. export function registerSms(data) {
  57. return myRequest({
  58. url: "/app/common/seller/sms/register",
  59. method: "post",
  60. data: data,
  61. noToken: true,
  62. });
  63. }
  64. //注册用户
  65. export function registerUser(data) {
  66. return myRequest({
  67. url: "/app/common/seller/register",
  68. method: "post",
  69. data: data,
  70. noToken: true,
  71. });
  72. }
  73. //忘记短信
  74. export function forgetSms(data) {
  75. return myRequest({
  76. url: "/app/common/seller/sms/forget",
  77. method: "post",
  78. data: data,
  79. noToken: true,
  80. });
  81. }
  82. //忘记用户
  83. export function forgetUser(data) {
  84. return myRequest({
  85. url: "/app/common/seller/register_forget",
  86. method: "post",
  87. data: data,
  88. noToken: true,
  89. });
  90. }
  91. //policy获得
  92. export function aliyunpolicy(data) {
  93. return myRequest({
  94. url: "/aliyun/oss/policy",
  95. method: "get",
  96. data: data,
  97. // noToken: true
  98. });
  99. }