You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

105 lines
1.5 KiB

import { http } from '../../utils/http'
/**
*
* @param data 模拟手机号码
* {
"loginType":"EMAIL", //登录方式
"account":"q614588746@163.com" , //登陆账号 手机号/邮箱/dccode
"verifyCode":"837012", //验证码
"password":"", //密码
"useCode":"true", //是否使用验证码 true/false
"idToken":"", //第三方登录idToken
}
*/
export const Login = (data) => {
return http({
method: 'POST',
url: '/login/wxMin/simple',
data: {
data
},
})
}
/**
* 发送验证码
* @param {*} phoneNumber
* @returns
*/
export const sendCode = (phoneNumber) => {
return http({
method: 'POST',
url: '/login/wxMin/simple',
data: {
phoneNumber
},
})
}
/**
* 注册
*/
export const register = (data) => {
return http({
method: 'POST',
url: '/login/wxMin/simple',
data: {
data
},
})
}
/**
* 修改密码
*
*/
export const updatePassword = (data) => {
return http({
method: 'POST',
url: '/login/wxMin/simple',
data: {
data
},
})
}
/**
* 通过苹果登录
*/
export const postLoginAppleSimpleAPI = (phoneNumber) => {
return http({
method: 'POST',
url: '/login/wxMin/simple',
data: {
phoneNumber,
},
})
}
/**
* 通过谷歌登录
*/
export const postLoginGoogleSimpleAPI = (phoneNumber) => {
return http({
method: 'POST',
url: '/login/wxMin/simple',
data: {
phoneNumber,
},
})
}