2022-05-01 22:39:16 +08:00
|
|
|
//请求工具参考https://ext.dcloud.net.cn/plugin?id=392
|
|
|
|
const { http } = uni.$u
|
|
|
|
|
|
|
|
//使用手机 + 密码登录
|
2022-05-29 11:32:30 +08:00
|
|
|
export const passwordLogin = data => http.post('/member/auth/login', data)
|
2022-05-01 22:39:16 +08:00
|
|
|
//发送手机验证码
|
2022-05-29 11:32:30 +08:00
|
|
|
export const sendSmsCode = data => http.post('/member/auth/send-sms-code', data)
|
2022-05-01 22:39:16 +08:00
|
|
|
//使用手机 + 验证码登录
|
2022-05-29 11:32:30 +08:00
|
|
|
export const smsLogin = data => http.post('/member/auth/sms-login', data)
|
2022-06-02 17:59:57 +08:00
|
|
|
//微信小程序的一键登录
|
|
|
|
export const weixinMiniAppLogin = data => http.post('/member/auth/weixin-mini-app-login', data)
|
|
|
|
//刷新令牌
|
2023-01-09 10:59:27 +08:00
|
|
|
export const refreshToken = data => http.post('/member/auth/refresh-token', {data})
|
2022-06-02 17:59:57 +08:00
|
|
|
//退出登录
|
|
|
|
export const logout = data => http.post('/member/auth/logout', data)
|