diff --git a/pages/API/uni-verify/uni-verify.uvue b/pages/API/uni-verify/uni-verify.uvue index 65fcd20293c39ac6051c0f76f996b22f3b58fb45..dac76c4e2a1cc7deac2f1012ebea8e5976dfa287 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"