login.js 642 B

12345678910
  1. import {request} from '@/service/ajax'
  2. const newsUrl = '/utility/'
  3. // 登陆
  4. // export const login = (data) => request(newsUrl + 'one_click_login', 'post', { ...data },false)
  5. export const login = (data) => request('/auth/oauth2/token', 'post', { ...data },false)
  6. export const forgetPassword = (data) => request(newsUrl + 'forget_password', 'post', { ...data },false)
  7. export const register = (data) => request(newsUrl + 'register', 'post', { ...data },true)
  8. export const filUserInfo = (data) => request(newsUrl + 'fill_user_info', 'post', { ...data },true)
  9. export const setCard = (data) => request(newsUrl + 'card', 'post', { ...data },true)