提交 84e11430 编写于 作者: DCloud_iOS_WZT's avatar DCloud_iOS_WZT

调整 get-univerify-manager示例 规避showModal弹出问题

上级 ad75be20
...@@ -29,11 +29,15 @@ ...@@ -29,11 +29,15 @@
}, },
fail: (err : PreLoginFail) => { fail: (err : PreLoginFail) => {
console.error("pre login fail => " + JSON.stringify(err)); console.error("pre login fail => " + JSON.stringify(err));
uni.showModal({ // uni.showModal({
// title: '预登录失败',
// content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg,
// showCancel: false
// });
uni.showToast({
title: '预登录失败', title: '预登录失败',
content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, position: 'bottom'
showCancel: false })
});
} }
} as PreLoginOptions); } as PreLoginOptions);
}, },
...@@ -53,11 +57,15 @@ ...@@ -53,11 +57,15 @@
}, },
fail: (err : PreLoginFail) => { fail: (err : PreLoginFail) => {
console.error("pre login fail => " + JSON.stringify(err)); console.error("pre login fail => " + JSON.stringify(err));
uni.showModal({ // uni.showModal({
// title: '预登录失败',
// content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg,
// showCancel: false
// });
uni.showToast({
title: '预登录失败', title: '预登录失败',
content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, position: 'bottom'
showCancel: false })
});
} }
} as PreLoginOptions); } as PreLoginOptions);
} }
...@@ -105,11 +113,15 @@ ...@@ -105,11 +113,15 @@
}, },
fail: (err : LoginFail) => { fail: (err : LoginFail) => {
console.error("login fail => " + err); console.error("login fail => " + err);
uni.showModal({ // uni.showModal({
// title: '登录失败',
// content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg,
// showCancel: false
// });
uni.showToast({
title: '登录失败', title: '登录失败',
content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, position: 'bottom'
showCancel: false })
});
} }
} as LoginOptions); } as LoginOptions);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册