From 60fa6051b7733c3265eaa885b1213f930bed0dc6 Mon Sep 17 00:00:00 2001 From: sivdead <923396178@qq.com> Date: Fri, 10 Oct 2025 15:20:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E7=94=B3=E8=AF=B7?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E9=A1=B5=E9=9D=A2UI=20(#857)=20-=20=E5=B0=86?= =?UTF-8?q?=E5=AD=97=E7=AC=A6=E8=AE=A1=E6=95=B0=E7=A7=BB=E8=87=B3=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=A1=86=E5=86=85=E9=83=A8=E5=8F=B3=E4=B8=8B=E8=A7=92?= =?UTF-8?q?=20-=20=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA=E8=B7=9D=E7=A6=BB?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E6=A1=868px=20-=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E5=B8=83=E5=B1=80=E7=BB=93=E6=9E=84=EF=BC=8C=E4=BD=BF=E7=94=A8?= =?UTF-8?q?input-wrapper=E5=8C=85=E8=A3=B9=E8=BE=93=E5=85=A5=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend_nuxt/pages/signup-reason.vue | 37 +++++++++++++++++++++------ 1 file changed, 29 insertions(+), 8 deletions(-) diff --git a/frontend_nuxt/pages/signup-reason.vue b/frontend_nuxt/pages/signup-reason.vue index f6c0d1c15..1d2048cfa 100644 --- a/frontend_nuxt/pages/signup-reason.vue +++ b/frontend_nuxt/pages/signup-reason.vue @@ -5,11 +5,18 @@
为了我们社区的良性发展,请填写注册理由,我们将根据你的理由审核你的注册, 谢谢!
-
- -
{{ reason.length }}/20
+
+
+ +
{{ reason.length }}/20
+
+
{{ error }}
-
{{ error }}
提交
@@ -38,8 +45,9 @@ onMounted(async () => { }) const submit = async () => { - if (!reason.value || reason.value.trim().length < 20) { - error.value = '请至少输入20个字' + const trimmedReason = reason.value.trim() + if (!trimmedReason || trimmedReason.length < 20) { + error.value = '请至少输入20个字符' return } @@ -98,16 +106,29 @@ const submit = async () => { width: 400px; } +.input-wrapper { + display: flex; + flex-direction: column; +} + +.reason-input-container { + position: relative; +} + .char-count { + position: absolute; + bottom: 8px; + right: 12px; font-size: 12px; color: #888; - width: 100%; - text-align: right; + background-color: transparent; + pointer-events: none; } .error-message { color: red; font-size: 14px; + margin-top: 8px; } .signup-page-button-primary {