api.js 567 B

1234567891011121314151617181920212223242526272829
  1. import qs from 'qs'
  2. import request from './index'
  3. // 获取图形验证码
  4. export function getPhoneCaptcha() {
  5. return request({
  6. url: `/jypay/user/phone/imgCaptcha?t=${Date.now()}`,
  7. method: 'GET'
  8. })
  9. }
  10. // 发送短信验证码/手机号绑定
  11. export function setPhoneBind(data, type) {
  12. data = qs.stringify(data)
  13. return request({
  14. url: `/jypay/user/phone/${type}`,
  15. method: 'POST',
  16. data
  17. })
  18. }
  19. // 广告获取
  20. export function ajaxGetAD(data) {
  21. return request({
  22. url: '/publicapply/free/getJyAdList',
  23. method: 'post',
  24. data
  25. })
  26. }