diff --git a/api/member/auth.js b/api/member/auth.js index 4a33d850..807b26d7 100644 --- a/api/member/auth.js +++ b/api/member/auth.js @@ -23,3 +23,10 @@ export function validateSmsCode(mobile, scene, code) { export function logout() { return request.post('app-api/member/auth/logout'); } + +// 使用手机 + 密码登录 +export function login(data) { + return request.post('app-api/member/auth/login', data, { + noAuth: true // TODO 芋艿:后续要做调整 + }); +} diff --git a/pages/users/login/index.vue b/pages/users/login/index.vue index 036c2194..0293fa7c 100644 --- a/pages/users/login/index.vue +++ b/pages/users/login/index.vue @@ -43,8 +43,10 @@ +