提交 f505d6d0 编写于 作者: 雪洛's avatar 雪洛 提交者: DCloud-yinjiacheng

fix: 修正this指向问题

上级 145262d5
......@@ -42,11 +42,11 @@
} else {
// 预登录无效,执行预登录
this.univerifyManager?.preLogin({
success() {
success: () => {
console.log("pre login success");
this.login(fullScreen);
},
fail(err : PreLoginFail) {
fail: (err : PreLoginFail) => {
console.error("pre login fail => " + JSON.stringify(err));
}
} as PreLoginOptions);
......@@ -61,7 +61,7 @@
loginBtnText: "一键登录",
logoPath: "/static/logo.png"
} as UniverifyStyle,
success(res : LoginSuccess) {
success: (res : LoginSuccess) => {
console.log("login success => " + JSON.stringify(res));
// 云函数取号
uniCloud.callFunction({
......@@ -75,7 +75,7 @@
title: '取号成功',
content: res.result.getJSON("res")?.getString("phoneNumber"),
showCancel: false,
success(_) {
success: (_) => {
// 关闭登录页
this.univerifyManager?.close();
}
......@@ -86,7 +86,7 @@
this.univerifyManager?.close();
});
},
fail(err : LoginFail) {
fail: (err : LoginFail) => {
console.error("login fail => " + err);
uni.showToast({
title: "登录失败",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册