diff --git a/pages/API/get-univerify-manager/get-univerify-manager.uvue b/pages/API/get-univerify-manager/get-univerify-manager.uvue index 2d62053af216a3544768f518cb04d510ded0f736..8a16293250207cd4097468c58225f0248ac5195f 100644 --- a/pages/API/get-univerify-manager/get-univerify-manager.uvue +++ b/pages/API/get-univerify-manager/get-univerify-manager.uvue @@ -29,11 +29,15 @@ }, fail: (err : PreLoginFail) => { 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: '预登录失败', - content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, - showCancel: false - }); + position: 'bottom' + }) } } as PreLoginOptions); }, @@ -53,11 +57,15 @@ }, fail: (err : PreLoginFail) => { 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: '预登录失败', - content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, - showCancel: false - }); + position: 'bottom' + }) } } as PreLoginOptions); } @@ -105,11 +113,15 @@ }, fail: (err : LoginFail) => { 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: '登录失败', - content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, - showCancel: false - }); + position: 'bottom' + }) } } as LoginOptions); }