提交 1416b9d0 编写于 作者: DCloud_iOS_WZT's avatar DCloud_iOS_WZT

update get-univerify-manager.uvue

上级 c92eaaad
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
console.log("pre login success"); console.log("pre login success");
callback(); callback();
}, },
fail: (err : PreLoginFail) => { fail: (err) => {
console.error("pre login fail => " + JSON.stringify(err)); console.error("pre login fail => " + JSON.stringify(err));
uni.showModal({ uni.showModal({
title: '预登录失败', title: '预登录失败',
...@@ -87,7 +87,7 @@ ...@@ -87,7 +87,7 @@
showCancel: false showCancel: false
}); });
} }
} as PreLoginOptions); });
}, },
login(fullScreen : boolean) { login(fullScreen : boolean) {
this.univerifyManager?.login({ this.univerifyManager?.login({
...@@ -97,11 +97,11 @@ ...@@ -97,11 +97,11 @@
loginBtnText: "一键登录", loginBtnText: "一键登录",
logoPath: "/static/logo.png" logoPath: "/static/logo.png"
}, },
success: (res : LoginSuccess) => { success: (res) => {
console.log("login success => " + JSON.stringify(res)); console.log("login success => " + JSON.stringify(res));
this.takePhoneNumber(res.accessToken,res.openId); this.takePhoneNumber(res.accessToken,res.openId);
}, },
fail: (err : LoginFail) => { fail: (err) => {
console.error("login fail => " + err); console.error("login fail => " + err);
uni.showModal({ uni.showModal({
title: '登录失败', title: '登录失败',
......
...@@ -77,11 +77,11 @@ ...@@ -77,11 +77,11 @@
loginButtonElement: loginButtonElement!, loginButtonElement: loginButtonElement!,
privacyCheckBoxElement: privacyCheckBoxElement!, privacyCheckBoxElement: privacyCheckBoxElement!,
privacyTextElement: privacyTextElement!, privacyTextElement: privacyTextElement!,
success: (res : LoginSuccess) => { success: (res) => {
console.log(res); console.log(res);
this.takePhoneNumber(res.accessToken, res.openId); this.takePhoneNumber(res.accessToken, res.openId);
}, },
fail: (error : LoginFail) => { fail: (error) => {
if (error.errCode == 40001){ if (error.errCode == 40001){
uni.showToast({ uni.showToast({
title:"请同意服务条款", title:"请同意服务条款",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册