login.js 1.6 KB

123456789101112131415161718192021222324252627282930313233343536
  1. const http = uni.$u.http
  2. // post请求,保存用户信息
  3. export const saveWechatUser = (params, config = {}) => http.post('/auth/wechat/saveWeChatUserInfo', params, config)
  4. // post请求,获取微信电话号码
  5. export const getWechatUserPhoneNumber = (params, config = {}) => http.post('/auth/wechat/getWechatUserPhoneNumber', params, config)
  6. // post请求,验证手机号码是否被注册
  7. export const phoneIsExist = (params, config = {}) => http.post('/member/wechat/phoneIsExist', params, config)
  8. // post请求,新微新手机绑定
  9. export const wechatRegister = (params, config = {}) => http.post('/auth/xcxRegister', params, config)
  10. // get请求,获取手机验证码
  11. export const getSmsCode = (params, config = {}) => http.get('/resource/sms/code', params, config)
  12. // post请求,验证手机验证码
  13. export const validateSmsCode = (params, config = {}) => http.post('/member/wechat/validateSmsCode', params, config)
  14. // post请求,找回账号密码登录
  15. export const wechatRetrieveAccountPwdLogin = (params, config = {}) => http.post('/auth/xcxRetrieveMemberByPwd', params, config)
  16. // post请求,实名认证登录(新微信老手机)
  17. export const realNameAuthLogin = (params, config = {}) => http.post('/auth/xcxRetrieveMember', params, config)
  18. // post请求,验证身份证是滞存在
  19. export const idCardIsExist = (params, config = {}) => http.post('/member/wechat/idCardIsExist', params, config)
  20. // post请求验证手机找回密码
  21. export const passwordByPhone = (params, config = {}) => http.post('/member/wechat/passwordByPhone', params, config)