2020-09-24 07:33:12 +00:00
|
|
|
import { get, post } from './base'
|
|
|
|
|
2020-10-09 01:45:13 +00:00
|
|
|
/**
|
|
|
|
* 请求验证码
|
|
|
|
* @param phone 手机号
|
|
|
|
* @param type 类型 0国内 1国外
|
|
|
|
*/
|
|
|
|
|
2020-10-09 08:04:20 +00:00
|
|
|
export function sendsms(phone: string, type?: number){
|
2020-10-09 01:45:13 +00:00
|
|
|
return post('SendSms',{phone, type})
|
|
|
|
}
|
|
|
|
|
2020-10-10 00:59:54 +00:00
|
|
|
/**
|
|
|
|
* 用户名密码登录
|
|
|
|
* @param phone 手机号
|
|
|
|
* @param password 密码
|
|
|
|
*/
|
|
|
|
|
2020-10-09 08:04:20 +00:00
|
|
|
export function loginpass(phone: string, password: string){
|
2020-10-09 06:31:10 +00:00
|
|
|
return post("login",{type: 2,username: phone, password: password})
|
|
|
|
}
|
2020-10-10 00:59:54 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 用户信息详情
|
|
|
|
*/
|
|
|
|
export function userinfo(){
|
|
|
|
return get('personalInfo')
|
|
|
|
}
|