首页初始化

This commit is contained in:
熊丽君
2021-08-02 14:40:12 +08:00
parent fa85ca8a08
commit af3e7ee763
11 changed files with 415 additions and 113 deletions

View File

@ -1,18 +1,38 @@
import request from '@/utils/request';
// 登录方法
export function login(username, password, code) {
export function login(username, password, newPassword) {
const data = {
username,
password,
code
newPassword
};
return request({
url: '/admin/login',
url: '/mobile/login',
method: 'post',
data: data
});
}
// 注册
export function register(username, password, newPassword) {
const data = {
username,
password,
newPassword
};
return request({
url: '/mobile/register',
method: 'post',
data: data
});
}
// 获取验证码
export function getAuthCode(params) {
return request({
url: '/mobile/getAuthCode',
params
});
}
// 获取用户详细信息
export function getInfo() {