From 41d1dbfeea608a0e6e8978f40212a2f6c7abc695 Mon Sep 17 00:00:00 2001 From: wangzhitong Date: Wed, 3 Jul 2024 15:51:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=20get-univerify-manager?= =?UTF-8?q?=E7=A4=BA=E4=BE=8B=20=E8=A7=84=E9=81=BFshowModal=E5=BC=B9?= =?UTF-8?q?=E5=87=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (cherry picked from commit 84e1143044c0f07a89aa3c3f05d65b74bd2a5d43) --- .../get-univerify-manager.uvue | 36 ++++++++++++------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/pages/API/get-univerify-manager/get-univerify-manager.uvue b/pages/API/get-univerify-manager/get-univerify-manager.uvue index 2d62053a..8a162932 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); } -- GitLab