初始化登录功能,注册功能
This commit is contained in:
1 parent
63726d8200
commit
76ba02d29b
16 files changed
+2090
-1025
No files matched your search
+20
-2
@@ -18,7 +18,13 @@ export const editMobileInit = (params) => {
|
||||
* @desc 发送验证码
|
||||
*/
|
||||
export const sendCode = (params) => {
|
||||
return get('/sale/login/send-mb-verify-code', params);
|
||||
return post('/app-api/member/auth/send-sms-code', params);
|
||||
};
|
||||
/**
|
||||
* @desc 发送邮箱验证码
|
||||
*/
|
||||
export const sendCodeToEmail = (params) => {
|
||||
return get('/app-api/member/auth/code', params);
|
||||
};
|
||||
/**
|
||||
* @desc 发送验证码初始化
|
||||
@@ -26,11 +32,23 @@ export const sendCode = (params) => {
|
||||
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 get('/sale/login/login', params);
|
||||
return post('/app-api/member/auth/weixin-mini-app-login', params);
|
||||
};
|
||||
/**
|
||||
* @desc 注册
|
||||
|
||||
Reference in new issue
Block a user