From 528a1eba92868bc96f48272736facc5184f88b29 Mon Sep 17 00:00:00 2001 From: anne-xml Date: Thu, 5 Dec 2024 20:11:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89UniverifyManager=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=EF=BC=8C=E4=BC=9A=E8=87=AA=E5=8A=A8=E6=8E=A8=E5=AF=BC?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-id-pages-x/init.uts | 4 ++-- uni_modules/uni-id-pages-x/lib/Univerify.uts | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/uni_modules/uni-id-pages-x/init.uts b/uni_modules/uni-id-pages-x/init.uts index 01bcfac..0bcbd92 100644 --- a/uni_modules/uni-id-pages-x/init.uts +++ b/uni_modules/uni-id-pages-x/init.uts @@ -87,10 +87,10 @@ export default async function () { success() { console.log("pre login success"); }, - fail(err : PreLoginFail) { + fail(err) { console.error("pre login fail => " + JSON.stringify(err)); } - } as PreLoginOptions); + }); const handleInterceptor = (geturl:string)=>{ diff --git a/uni_modules/uni-id-pages-x/lib/Univerify.uts b/uni_modules/uni-id-pages-x/lib/Univerify.uts index dd1d7e4..8fa4788 100644 --- a/uni_modules/uni-id-pages-x/lib/Univerify.uts +++ b/uni_modules/uni-id-pages-x/lib/Univerify.uts @@ -34,7 +34,7 @@ export default class Univerify { console.log("pre login success"); this.login(fullScreen); }, - fail(err : PreLoginFail) { + fail(err) { console.error("pre login fail => " + JSON.stringify(err)); // 当前页面不是登录页面时,一键登录不可用,且还存在一键登录以外的登录方式,就跳转至此登录方式 const pages = getCurrentPages() @@ -67,7 +67,7 @@ export default class Univerify { } } } - } as PreLoginOptions); + }); } } login(fullScreen : boolean) { @@ -82,8 +82,8 @@ export default class Univerify { // "iconWidth": "45px", // 图标宽度(高度等比例缩放) 默认值:45px // "list":buttonsList // } - } as UniverifyStyle, - success(res : LoginSuccess) { + }, + success(res) { console.log("login success => " + JSON.stringify(res)); // 云函数取号 const uniIdCo = uniCloud.importObject("uni-id-co") @@ -100,14 +100,14 @@ export default class Univerify { univerifyManager.close(); }); }, - fail(err : LoginFail) { + fail(err) { console.error("login fail => " + err); // uni.showToast({ // title: "登录失败", // icon: "error" // }); } - } as LoginOptions); + }); } } // #endif -- GitLab