diff --git a/pages/API/get-univerify-manager/get-univerify-manager.uvue b/pages/API/get-univerify-manager/get-univerify-manager.uvue index e6e00285bc4dbf2656cc9b6c59ad1d37a2afc94b..d37dc301909b9cff335d47d3d03f054f7c87eafa 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 b2d7307799395c407e5843488f418294a7d3baad..12680842e461618a7472dd1c64ebfe7847c32c59 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:"请同意服务条款",