From 7423e1ff563f2832e31945294e8128045c06d807 Mon Sep 17 00:00:00 2001 From: Sun_sun <469361609@qq.com> Date: Wed, 17 Sep 2025 15:58:29 +0800 Subject: [PATCH] =?UTF-8?q?2025-09-17=20=E4=BF=AE=E6=94=B9=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E5=AF=86=E7=A0=81=E9=94=99=E8=AF=AF=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9=E6=B3=A8=E5=86=8C=E6=9F=A5=E7=9C=8B?= =?UTF-8?q?=E5=8D=8F=E8=AE=AE=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/register/register.vue | 12 +++++++----- util/api.js | 13 ++++++------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/pages/register/register.vue b/pages/register/register.vue index 8c90e48..2791762 100644 --- a/pages/register/register.vue +++ b/pages/register/register.vue @@ -50,8 +50,9 @@ 刷新验证码 - - 我已阅读并同意《用户协议》《隐私政策》 + + 我已阅读并同意 + 《用户协议》《隐私政策》 立即注册 @@ -445,18 +446,19 @@ font-family: Work Sans; font-weight: 400; leading-trim: NONE; - line-height: 100%; + // line-height: 30rpx; letter-spacing: -2%; text-align: center; color: #000000; text-align: left; + white-space: nowrap; span { font-family: Work Sans; font-weight: 400; - font-size: 26rpxpx; + font-size: 26rpx; leading-trim: NONE; - line-height: 100%; + // line-height: 30rpx; letter-spacing: -2%; text-align: center; color: #3781EF; diff --git a/util/api.js b/util/api.js index 6ba6e23..4b3db0b 100644 --- a/util/api.js +++ b/util/api.js @@ -151,6 +151,8 @@ const handleError = (errorInfo) => { const currentPage = pages[pages.length - 1] const currentRoute = currentPage ? currentPage.route : '' + console.log(data); + // 判断当前是否在代理相关页面 if (currentRoute && currentRoute.includes('agent')) { uni.redirectTo({ @@ -162,14 +164,11 @@ const handleError = (errorInfo) => { icon: "error" }) } else { - uni.redirectTo({ - url: '/pages/user/mylogin' - }) - // uToast.error('登录已过期,请重新登录') uni.showToast({ - title: '登录已过期,请重新登录', + title: data.message, icon: "error" }) + // uToast.error('登录已过期,请重新登录') } break @@ -243,7 +242,7 @@ const handleError = (errorInfo) => { }) break - // case 400: + // case 400: // 处理业务逻辑错误(如坏账等) // uToast.error(data.error?.message || data.message || '请求失败') // uni.showToast({ @@ -278,7 +277,7 @@ const handleError = (errorInfo) => { // 封装常用的请求方法 export const http = { - get: (url,params={}, config = {}) => request({ + get: (url, params = {}, config = {}) => request({ url, method: 'GET', ...config