From 421fac611627be66c07b0b123753d567363d3aa4 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Sat, 2 Dec 2023 16:04:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=B8=80=E9=94=AE=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E7=A4=BA=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/uni-verify/uni-verify.uvue | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pages/API/uni-verify/uni-verify.uvue b/pages/API/uni-verify/uni-verify.uvue index 65fcd202..dac76c4e 100644 --- a/pages/API/uni-verify/uni-verify.uvue +++ b/pages/API/uni-verify/uni-verify.uvue @@ -3,7 +3,10 @@ - + + + + @@ -30,18 +33,18 @@ } as PreLoginOptions); }, methods: { - verify() { + verify(fullScreen : boolean) { // 校验预登录是否有效 const isPreLoginValid = this.univerifyManager?.isPreLoginValid() ?? false; if (isPreLoginValid) { // 预登录有效,执行登录 - this.login(); + this.login(fullScreen); } else { // 预登录无效,执行预登录 this.univerifyManager?.preLogin({ success() { console.log("pre login success"); - this.login(); + this.login(fullScreen); }, fail(err : PreLoginFail) { console.error("pre login fail => " + JSON.stringify(err)); @@ -49,11 +52,11 @@ } as PreLoginOptions); } }, - login() { + login(fullScreen : boolean) { this.univerifyManager?.login({ // 登录页样式 univerifyStyle: { - fullScreen: false, + fullScreen: fullScreen, backgroundColor: "#FFFFFF", loginBtnText: "一键登录", logoPath: "/static/logo.png" -- GitLab