From bbe511b1038db0c4a288d38fed76bdf4d3ba3922 Mon Sep 17 00:00:00 2001 From: wangyi <3432649580@qq.com> Date: Sat, 1 Nov 2025 11:47:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=86=E7=A0=81=E5=A2=9E=E5=8A=A0=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C=E5=A4=A7=E4=BA=8E8=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/start/login/login.vue | 9 +++++++++ pages/start/recoverPassword/recoverPassword.vue | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/pages/start/login/login.vue b/pages/start/login/login.vue index d205242..5556e35 100644 --- a/pages/start/login/login.vue +++ b/pages/start/login/login.vue @@ -431,6 +431,15 @@ function basicVerification() { }); return false; } + + if (password.value.length < 8) { + uni.showToast({ + title: "密码长度不能少于8位", + icon: "none", + }); + return false; + } + } if (switchType.value === "Phone") { diff --git a/pages/start/recoverPassword/recoverPassword.vue b/pages/start/recoverPassword/recoverPassword.vue index ec97d90..4fff637 100644 --- a/pages/start/recoverPassword/recoverPassword.vue +++ b/pages/start/recoverPassword/recoverPassword.vue @@ -335,6 +335,14 @@ async function register() { return; } + if (newPasswordFirst.value.length < 8) { + uni.showToast({ + title: "密码长度不能少于8位", + icon: "none", + }); + return false; + } + const account = changeAccount(); const res = await forgetApi({