From d706953cdb7e14dea1167c1382392af362c4df46 Mon Sep 17 00:00:00 2001 From: MiAn Date: Sat, 28 Nov 2026 16:10:18 +0800 Subject: [PATCH] =?UTF-8?q?feat(front):=20=E6=96=B0=E5=A2=9E=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E5=8F=B7=E5=BF=AB=E6=8D=B7=E7=99=BB=E5=BD=95=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E6=9B=BF=E6=8D=A2=E5=BE=AE=E4=BF=A1=E7=99=BB?= =?UTF-8?q?=E5=BD=95=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增手机号登录图标资源 - 替换登录按钮样式和文案 - 更新登录错误提示信息 --- yjyf-app/pages/login/login.vue | 47 ++++++++------------- yjyf-app/static/icons/login-phone-white.svg | 5 +++ 2 files changed, 23 insertions(+), 29 deletions(-) create mode 100644 yjyf-app/static/icons/login-phone-white.svg diff --git a/yjyf-app/pages/login/login.vue b/yjyf-app/pages/login/login.vue index 15c69e8..161dc38 100644 --- a/yjyf-app/pages/login/login.vue +++ b/yjyf-app/pages/login/login.vue @@ -30,18 +30,16 @@ - + @@ -304,12 +302,12 @@ return '隐私保护指引尚未生效,请稍后重试或联系客服'; } if (msg.includes('no permission') || msg.includes('unauthorized')) { - return '当前暂不支持微信手机号快捷登录,请联系客服'; + return '当前暂不支持手机号快捷登录,请联系客服'; } if (msg.includes('quota') || msg.includes('limit')) { return '手机号验证次数已达上限,请稍后再试'; } - return '获取微信手机号失败,请重试'; + return '获取手机号失败,请重试'; } function formatLoginError(err, fallback) { @@ -592,7 +590,7 @@ }, 600); } catch (err) { loading.value = false; - toast(formatLoginError(err, '微信手机号登录失败,请重试')); + toast(formatLoginError(err, '手机号登录失败,请重试')); } } @@ -871,13 +869,13 @@ opacity: 0.65; } - /* 微信手机号授权大胶囊按钮 */ - .btn-wx-primary { + /* 手机号快捷登录大胶囊按钮 */ + .btn-phone-primary { width: 100%; height: 100rpx; border-radius: 50rpx; - background: linear-gradient(135deg, #07C160 0%, #05A351 100%); - box-shadow: 0 12rpx 28rpx rgba(7, 193, 96, 0.28); + background: linear-gradient(135deg, #FFA93F 0%, #F0710D 100%); + box-shadow: 0 12rpx 28rpx rgba(240, 113, 13, 0.28); display: flex; align-items: center; justify-content: center; @@ -888,27 +886,18 @@ line-height: normal; transition: opacity 0.2s ease, transform 0.15s ease; } - .btn-wx-primary::after { + .btn-phone-primary::after { border: none; } - .btn-wx-primary.disabled { + .btn-phone-primary.disabled { opacity: 0.65; } - .wx-icon-wrap { - width: 50rpx; - height: 50rpx; - border-radius: 50%; - background: #FFFFFF; - display: flex; - align-items: center; - justify-content: center; - margin-right: 18rpx; - box-shadow: 0 4rpx 10rpx rgba(0, 0, 0, 0.08); - } - .wx-svg-icon { - width: 34rpx; - height: 34rpx; + .phone-svg-icon { + width: 38rpx; + height: 38rpx; + margin-right: 14rpx; + flex-shrink: 0; } .btn-text { font-size: 32rpx; diff --git a/yjyf-app/static/icons/login-phone-white.svg b/yjyf-app/static/icons/login-phone-white.svg new file mode 100644 index 0000000..16cecb1 --- /dev/null +++ b/yjyf-app/static/icons/login-phone-white.svg @@ -0,0 +1,5 @@ + + + + +