From 620efbebb8885df1a923319410d0a3520cf4b6f4 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Wed, 3 Jul 2024 19:26:29 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E8=B0=83=E6=95=B4=20get-univerify-ma?= =?UTF-8?q?nager=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 This reverts commit 41d1dbfeea608a0e6e8978f40212a2f6c7abc695. --- .../get-univerify-manager.uvue | 36 +++++++------------ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/pages/API/get-univerify-manager/get-univerify-manager.uvue b/pages/API/get-univerify-manager/get-univerify-manager.uvue index 8a162932..2d62053a 100644 --- a/pages/API/get-univerify-manager/get-univerify-manager.uvue +++ b/pages/API/get-univerify-manager/get-univerify-manager.uvue @@ -29,15 +29,11 @@ }, fail: (err : PreLoginFail) => { console.error("pre login fail => " + JSON.stringify(err)); - // uni.showModal({ - // title: '预登录失败', - // content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, - // showCancel: false - // }); - uni.showToast({ + uni.showModal({ title: '预登录失败', - position: 'bottom' - }) + content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, + showCancel: false + }); } } as PreLoginOptions); }, @@ -57,15 +53,11 @@ }, fail: (err : PreLoginFail) => { console.error("pre login fail => " + JSON.stringify(err)); - // uni.showModal({ - // title: '预登录失败', - // content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, - // showCancel: false - // }); - uni.showToast({ + uni.showModal({ title: '预登录失败', - position: 'bottom' - }) + content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, + showCancel: false + }); } } as PreLoginOptions); } @@ -113,15 +105,11 @@ }, fail: (err : LoginFail) => { console.error("login fail => " + err); - // uni.showModal({ - // title: '登录失败', - // content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, - // showCancel: false - // }); - uni.showToast({ + uni.showModal({ title: '登录失败', - position: 'bottom' - }) + content: JSON.parseObject(err.cause?.cause?.message ?? "")?.getString("errorDesc") ?? err.errMsg, + showCancel: false + }); } } as LoginOptions); } -- GitLab