接口请求

This commit is contained in:
2020-10-10 08:59:54 +08:00
parent 0f29972dee
commit 8bf7b662d5
4 changed files with 29 additions and 3 deletions

View File

@@ -10,6 +10,19 @@ export function sendsms(phone: string, type?: number){
return post('SendSms',{phone, type})
}
/**
* 用户名密码登录
* @param phone 手机号
* @param password 密码
*/
export function loginpass(phone: string, password: string){
return post("login",{type: 2,username: phone, password: password})
}
/**
* 用户信息详情
*/
export function userinfo(){
return get('personalInfo')
}