From e10b7075881497c33e10acd0c770d2576ac1893c Mon Sep 17 00:00:00 2001 From: sfmind Date: Sun, 10 Apr 2022 20:31:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E6=AD=A5=E5=AE=8C=E5=96=84=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E7=99=BB=E5=BD=95=E5=92=8C=E9=AA=8C=E8=AF=81=E7=A0=81?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E7=9A=84=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/common/api.js | 12 ++- yudao-ui-app/pages/login/login.vue | 164 +++++++++++++++++++++-------- yudao-ui-app/pages/user/user.vue | 1 + 3 files changed, 131 insertions(+), 46 deletions(-) diff --git a/yudao-ui-app/common/api.js b/yudao-ui-app/common/api.js index 9c2e41e5e..d090e2bb5 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 bbee7a876..ddb54e1fa 100644 --- a/yudao-ui-app/pages/login/login.vue +++ b/yudao-ui-app/pages/login/login.vue @@ -8,15 +8,22 @@ + + + + + + + - - + + - - + +