user.js 841 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. import request from './request';
  2. // 校验手机号是否注册
  3. export const validateUser = params => {
  4. return request({
  5. url: `org/apply/validateUser/${params.phone}`,
  6. method: 'get'
  7. }, true)
  8. }
  9. // 获取图片验证码
  10. export const getCaptcha = randomCode => {
  11. return request({
  12. url: `org/apply/getCaptcha/${randomCode}`,
  13. method: 'get',
  14. responseType: 'blob',
  15. }, true)
  16. }
  17. // 发送短信验证码
  18. export const sendVerifyCode = params => {
  19. return request({
  20. url: 'org/apply/sendVerifyCode',
  21. method: 'post',
  22. data: params
  23. }, true)
  24. }
  25. // 申请试用
  26. export const apply = params => {
  27. return request({
  28. url: 'org/apply/apply',
  29. method: 'post',
  30. data: params
  31. }, true)
  32. }
  33. // 获取门店名称
  34. export const getStore = (token) => {
  35. return request({
  36. url: 'getStore',
  37. method: 'get'
  38. })
  39. }