diff --git a/yudao-ui-app/common/api.js b/yudao-ui-app/common/api.js index 9c2e41e5e8..d090e2bb5a 100644 --- a/yudao-ui-app/common/api.js +++ b/yudao-ui-app/common/api.js @@ -1,7 +1,15 @@ const { http } = uni.$u +/* login */ +//使用手机 + 密码登录 +export const passwordLogin = params => http.post('/app-api/member/user/login', params) +//发送手机验证码 +export const sendSmsCode = params => http.post('/app-api/member/send-sms-code', params) +//使用手机 + 验证码登录 +export const smsLogin = params => http.post('/app-api/member/sms-login', params) + /* index */ // 获取滚动图数据 -export const getBannerData = params => http.get('/api/index', params) +export const getBannerData = params => http.get('/app-api/index', params) // 获取滚动通知数据 -export const getNoticeData = params => http.get('/api/notice', params) +export const getNoticeData = params => http.get('/app-api/notice', params) diff --git a/yudao-ui-app/pages/login/login.vue b/yudao-ui-app/pages/login/login.vue index bbee7a876f..ddb54e1faa 100644 --- a/yudao-ui-app/pages/login/login.vue +++ b/yudao-ui-app/pages/login/login.vue @@ -8,15 +8,22 @@ + + + + + + + - - + + - - + +