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

update get-univerify-manager.uvue

上级 c92eaaad
......@@ -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: '登录失败',
......
......@@ -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:"请同意服务条款",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册