diff --git a/pages/API/get-univerify-manager/univerify-custom-page.uvue b/pages/API/get-univerify-manager/univerify-custom-page.uvue index d0efd6be85bb2e573d3364aea479777fc27964c7..5ef10ef7a98f79aff642aa9df875d1a253cfb21f 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 + // }); + } } }) },