diff --git a/yudao-vue-ui/api/system/auth.js b/yudao-vue-ui/api/system/auth.js index 81089a03f..428655591 100644 --- a/yudao-vue-ui/api/system/auth.js +++ b/yudao-vue-ui/api/system/auth.js @@ -2,26 +2,33 @@ import { request } from '@/common/js/request.js' // 手机号 + 密码登陆 export function login(mobile, password) { - const data = { - mobile, - password - } return request({ url: 'login', method: 'post', - data: data + data: { + mobile, password + } }) } // 手机号 + 验证码登陆 export function smsLogin(mobile, code) { - const data = { - mobile, - code - } return request({ url: 'sms-login', method: 'post', - data: data + data: { + mobile, code + } }) +} + +// 发送手机验证码 +export function sendSmsCode(mobile, scene) { + return request({ + url: 'send-sms-code', + method: 'post', + data: { + mobile, scene + } + }) } \ No newline at end of file diff --git a/yudao-vue-ui/pages/auth/login.vue b/yudao-vue-ui/pages/auth/login.vue index 56ca14c6f..449bb548e 100644 --- a/yudao-vue-ui/pages/auth/login.vue +++ b/yudao-vue-ui/pages/auth/login.vue @@ -1,11 +1,8 @@