verify.js 1.3 KB

123456789101112131415161718192021222324
  1. import request from '@/common/util/request'
  2. export const _API_Reg = data => request.get('/login/register', data) // 注册
  3. export const _API_Login = data => request.get('/login/login', data) // 登录
  4. export const _API_LoginWX = data => request.get('/login/wechat_login', data) // 微信登录
  5. export const _API_GetVerifyCode = data => request.get('/login/judge_login', data) // 发送验证码
  6. export const _API_LoginByPsw = data => request.post('/user/login', data) // 密码登陆
  7. export const _API_UpdataPsw = data => request.post('/user/update_pass', data) // 修改密码
  8. export const _API_Logout = data => request.get('/logout', data) // 退出登录
  9. // http://api.woaidakele.cn/api/makeQrCode
  10. export const _API_GzhWebInit = data => request.get('/wechat/wechat')
  11. export const _API_GetImage = data => request.get('/AddQrCode',data)
  12. // export const _API_GzhWebInit = data => request.post('/wechat/wechat', {
  13. // username: 'daweiboshi',
  14. // password: 'DWBS@8888'
  15. // })
  16. export const _API_ChangeBindCode = data => request.get('/user/send_code', data) // 手机换绑--获取验证码
  17. export const _API_ChangeBindPhone = data => request.get('/user/change_num', data) // 手机换绑--立即换绑
  18. export const _API_checkCode = data => request.get('/login/get_user_openid', data) // 微信登录