个人中心:手机 + 密码登录

This commit is contained in:
YunaiV
2023-12-28 23:14:22 +08:00
parent f0e8ff1f87
commit cbaf3a2512
4 changed files with 27 additions and 95 deletions
+13
View File
@@ -1,6 +1,19 @@
import request from '@/sheep/request';
const AuthUtil = {
// 使用手机 + 密码登录
login: (data) => {
return request({
url: '/app-api/member/auth/login',
method: 'POST',
data,
custom: {
showSuccess: true,
loadingMsg: '登录中',
successMsg: '登录成功',
},
});
},
// 使用手机 + 验证码登录
smsLogin: (data) => {
return request({