From 1416b9d057fea6cf7af775efb9bdc9a79108cb94 Mon Sep 17 00:00:00 2001 From: wangzhitong Date: Tue, 3 Dec 2024 18:08:08 +0800 Subject: [PATCH] update get-univerify-manager.uvue --- .../API/get-univerify-manager/get-univerify-manager.uvue | 8 ++++---- .../API/get-univerify-manager/univerify-custom-page.uvue | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pages/API/get-univerify-manager/get-univerify-manager.uvue b/pages/API/get-univerify-manager/get-univerify-manager.uvue index e6e00285..d37dc301 100644 --- a/pages/API/get-univerify-manager/get-univerify-manager.uvue +++ b/pages/API/get-univerify-manager/get-univerify-manager.uvue @@ -79,7 +79,7 @@ console.log("pre login success"); callback(); }, - fail: (err : PreLoginFail) => { + fail: (err) => { console.error("pre login fail => " + JSON.stringify(err)); uni.showModal({ title: '预登录失败', @@ -87,7 +87,7 @@ showCancel: false }); } - } as PreLoginOptions); + }); }, login(fullScreen : boolean) { this.univerifyManager?.login({ @@ -97,11 +97,11 @@ loginBtnText: "一键登录", logoPath: "/static/logo.png" }, - success: (res : LoginSuccess) => { + success: (res) => { console.log("login success => " + JSON.stringify(res)); this.takePhoneNumber(res.accessToken,res.openId); }, - fail: (err : LoginFail) => { + fail: (err) => { console.error("login fail => " + err); uni.showModal({ title: '登录失败', diff --git a/pages/API/get-univerify-manager/univerify-custom-page.uvue b/pages/API/get-univerify-manager/univerify-custom-page.uvue index b2d73077..12680842 100644 --- a/pages/API/get-univerify-manager/univerify-custom-page.uvue +++ b/pages/API/get-univerify-manager/univerify-custom-page.uvue @@ -77,11 +77,11 @@ loginButtonElement: loginButtonElement!, privacyCheckBoxElement: privacyCheckBoxElement!, privacyTextElement: privacyTextElement!, - success: (res : LoginSuccess) => { + success: (res) => { console.log(res); this.takePhoneNumber(res.accessToken, res.openId); }, - fail: (error : LoginFail) => { + fail: (error) => { if (error.errCode == 40001){ uni.showToast({ title:"请同意服务条款", -- GitLab