From df04d0f4baeace8b7541ceeeaf6188188d718b2b Mon Sep 17 00:00:00 2001 From: zhaichao Date: Thu, 24 Sep 2026 15:56:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/password/password.vue | 64 ++++++++++++++++++++++++++++++------- 1 file changed, 53 insertions(+), 11 deletions(-) diff --git a/pages/password/password.vue b/pages/password/password.vue index f038cf1..d3ae8ee 100644 --- a/pages/password/password.vue +++ b/pages/password/password.vue @@ -2,15 +2,28 @@ - 首次登录或管理员要求改密,请设置新密码后继续。 + + + + + 设置新密码 + 首次登录或管理员要求改密时,请设置新密码后继续使用。 + 新密码 - + + + {{ showNext ? '隐藏' : '显示' }} + 确认新密码 - + + + {{ showConfirm ? '隐藏' : '显示' }} + + 两次输入不一致 确认修改 @@ -26,8 +39,13 @@ import { toast } from '../../utils/format.js' export default { components: { FyHeader }, + computed: { + mismatch() { + return this.confirm.length > 0 && this.next !== this.confirm + } + }, data() { - return { next: '', confirm: '', error: '', off: null, left: false } + return { next: '', confirm: '', error: '', off: null, left: false, showNext: false, showConfirm: false } }, onShow() { if (this.off) this.off() @@ -53,12 +71,36 @@ export default {