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.
45 lines
652 B
45 lines
652 B
import {
|
|
http
|
|
} from '../../utils/http'
|
|
|
|
/**
|
|
* 验证码发送
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const sendEmail = (data) => {
|
|
return http({
|
|
method: 'POST',
|
|
url: '/UserLogin/sendEmail',
|
|
data: data,
|
|
})
|
|
}
|
|
|
|
/**
|
|
* 验证码验证
|
|
* @param data
|
|
* @returns {*}
|
|
*/
|
|
export const validateCode = (data) => {
|
|
return http({
|
|
method: 'POST',
|
|
url: '/api/my/validateCode',
|
|
data: data,
|
|
})
|
|
}
|
|
|
|
export const sendPhone = (data) => {
|
|
return http({
|
|
method: 'POST',
|
|
url: '/UserLogin/sendPhone',
|
|
data: data,
|
|
})
|
|
}
|
|
|
|
export const changeBind = (data) => {
|
|
return http({
|
|
method: 'POST',
|
|
url: '/api/my/bindEmailOrPhone',
|
|
data: data,
|
|
})
|
|
}
|