From a1aa4e037b630d7b48a6c0dea775251d2091232d Mon Sep 17 00:00:00 2001 From: wangzhitong Date: Mon, 2 Dec 2024 16:39:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E4=B8=80=E9=94=AE=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../univerify-custom-page.uvue | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/pages/API/get-univerify-manager/univerify-custom-page.uvue b/pages/API/get-univerify-manager/univerify-custom-page.uvue index d0efd6be..5ef10ef7 100644 --- a/pages/API/get-univerify-manager/univerify-custom-page.uvue +++ b/pages/API/get-univerify-manager/univerify-custom-page.uvue @@ -82,12 +82,26 @@ this.takePhoneNumber(res.accessToken, res.openId); }, fail: (error : LoginFail) => { - console.error("login fail => " + error); - uni.showModal({ - title: '登录失败', - content: JSON.parseObject(error.cause?.cause?.message ?? "")?.getString("errorDesc") ?? error.errMsg, - showCancel: false - }); + console.error("login fail => " + error); + if (error.errCode == 40001){ + uni.showToast({ + title:"请同意服务条款", + icon:'none', + duration:2000 + }) + }else{ + const errorMsg = JSON.parseObject(error.cause?.cause?.message ?? "")?.getString("errorDesc") ?? error.errMsg; + uni.showToast({ + title:errorMsg, + icon:'none', + duration:2000 + }) + // uni.showModal({ + // title: '登录失败', + // content: errorMsg, + // showCancel: false + // }); + } } }) }, -- GitLab