mall-uniapp/sheep/api/member/auth.js

26 lines
443 B
JavaScript
Raw Normal View History

2023-12-17 09:06:11 +00:00
import request from '@/sheep/request2';
2023-12-16 13:40:34 +00:00
const AuthUtil = {
2023-12-17 09:06:11 +00:00
// 发送手机验证码
sendSmsCode: (mobile, scene) => {
return request({
url: '/app-api/member/auth/send-sms-code',
method: 'POST',
data: {
mobile,
scene
}
});
},
2023-12-16 13:40:34 +00:00
// 登出系统
logout: () => {
2023-12-17 09:06:11 +00:00
return request({
2023-12-16 13:40:34 +00:00
url: '/app-api/member/auth/logout',
method: 'POST'
});
},
};
export default AuthUtil;