From ba220e9d55075d57d3334f7009c6d67ae35872c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E6=B7=B3?= Date: Thu, 30 Mar 2023 13:42:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:long=E7=B1=BB=E5=9E=8B=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.BBS.Vue3/src/apis/accountApi.js | 13 ++++++- Yi.BBS.Vue3/src/views/Register.vue | 34 ++++++++++++++++--- .../Json/LongToStringConverter .cs | 6 ++++ .../Identity/AccountService.cs | 4 +-- .../Yi.RBAC.ApplicationSwaggerDoc.xml | 2 +- 5 files changed, 50 insertions(+), 9 deletions(-) diff --git a/Yi.BBS.Vue3/src/apis/accountApi.js b/Yi.BBS.Vue3/src/apis/accountApi.js index 227aacc6..fadf8d24 100644 --- a/Yi.BBS.Vue3/src/apis/accountApi.js +++ b/Yi.BBS.Vue3/src/apis/accountApi.js @@ -65,4 +65,15 @@ export function logout() { timeout: 20000 }) } - \ No newline at end of file + // 获取短信验证码 + export function getCodePhone(phone) { + return request({ + url: '/account/captcha-phone', + headers: { + isToken: false + }, + method: 'post', + timeout: 20000, + data:{phone} + }) + } \ No newline at end of file diff --git a/Yi.BBS.Vue3/src/views/Register.vue b/Yi.BBS.Vue3/src/views/Register.vue index 43143c7a..c6c7130a 100644 --- a/Yi.BBS.Vue3/src/views/Register.vue +++ b/Yi.BBS.Vue3/src/views/Register.vue @@ -16,9 +16,15 @@ 手机短信验证码 + +
密码 +
+
+ 确认密码 +
已有账号,前往登录 @@ -41,30 +47,48 @@