login.js 390 B

123456789101112131415161718192021222324252627
  1. import request from '@/common/request.js'
  2. // 登出
  3. export function login(data) {
  4. return request({
  5. url: '/auth/wxlogin',
  6. method: 'post',
  7. data
  8. })
  9. }
  10. // 登出
  11. export function logout() {
  12. return request({
  13. url: '/auth/logout',
  14. method: 'delete'
  15. })
  16. }
  17. // 解除绑定
  18. export function unbind() {
  19. return request({
  20. url: '/auth/wxUnbind',
  21. method: 'post'
  22. })
  23. }