46 lines
1005 B
JavaScript
46 lines
1005 B
JavaScript
import { get, post, put, dele } from '@/utils/request';
|
|
|
|
/**
|
|
* @desc 发送邮箱验证码
|
|
*/
|
|
export const sendCodeToEmail = (params) => {
|
|
return get('/app-api/member/auth/code', params);
|
|
};
|
|
/**
|
|
* @desc 发送验证码初始化
|
|
*/
|
|
export const loginLRInit = (params) => {
|
|
return get('/sale/login/send-mb-verify-code-init', params);
|
|
};
|
|
/**
|
|
* @desc 邮箱注册
|
|
*/
|
|
export const registerByEmail = (params) => {
|
|
return post('/app-api/member/auth/email-register', params);
|
|
};
|
|
/**
|
|
* @desc 邮箱登录
|
|
*/
|
|
export const loginByEmail = (params) => {
|
|
return post('/app-api/member/auth/email-login', params);
|
|
};
|
|
|
|
/**
|
|
* @desc 登录
|
|
*/
|
|
export const login = (params) => {
|
|
return post('/app-api/member/auth/weixin-mini-app-login', params);
|
|
};
|
|
/**
|
|
* @desc 注册
|
|
*/
|
|
export const register = (params) => {
|
|
return get('/front/user/login/register', params);
|
|
};
|
|
|
|
/**
|
|
* @desc 忘记密码
|
|
*/
|
|
export const forgetPassword = (params) => {
|
|
return post('/app-api/member/auth/password-reset', params);
|
|
}; |