common.js 638 B

12345678910111213141516171819202122232425262728293031
  1. import { requestApi } from '../util/network'
  2. // 获取手机验证码
  3. export const getSmsCaptcha =
  4. (type, phone) =>
  5. requestApi(
  6. '/Connect/get_sms_captcha',
  7. 'GET',
  8. {
  9. 'type': type,
  10. 'phone': phone
  11. }
  12. )
  13. // 验证码检测
  14. export const checkPictureCaptcha =
  15. (captcha) =>
  16. requestApi(
  17. '/Seccode/check',
  18. 'POST',
  19. {
  20. 'captcha': captcha
  21. }
  22. )
  23. export const getWechatShare =
  24. (url) =>
  25. requestApi(
  26. '/index/getWechatShare',
  27. 'POST',
  28. {
  29. 'url': url
  30. }
  31. )