diff --git a/uni_modules/uni-id-pages-x/init.uts b/uni_modules/uni-id-pages-x/init.uts index 01bcfac08011196e3bf39f7d5f1f680a7af1e5ae..0bcbd92e8777fba39c6a7170db9a1e853fdbd5fa 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 dd1d7e48284da725d9f31183a62d7b3ee4b4d518..8fa4788eb466087726ac0dce97f29c3da75aae0a 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