vue-pro/yudao-ui-app/api/auth.js

13 lines
467 B
JavaScript
Raw Normal View History

2022-05-01 22:39:16 +08:00
//请求工具参考https://ext.dcloud.net.cn/plugin?id=392
const { http } = uni.$u
//使用手机 + 密码登录
export const passwordLogin = data => http.post('/member/login', data)
2022-05-01 22:39:16 +08:00
//退出登录
export const logout = data => http.post('/member/logout', data)
2022-05-01 22:39:16 +08:00
//发送手机验证码
export const sendSmsCode = data => http.post('/member/send-sms-code', data)
2022-05-01 22:39:16 +08:00
//使用手机 + 验证码登录
export const smsLogin = data => http.post('/member/sms-login', data)
2022-05-01 22:39:16 +08:00