From 3bba2d6e94083a31445f239f3212c3060c181672 Mon Sep 17 00:00:00 2001 From: linda Date: Wed, 28 Oct 2026 17:14:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(mine):=20=E6=88=91=E7=9A=84=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E5=B7=A6=E4=B8=8A=E8=A7=92=E6=96=B0=E5=A2=9E=E3=80=8C?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E9=A6=96=E9=A1=B5=E3=80=8D=E5=85=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 头部新增 .h-top 胶囊按钮(半透明白底 + ‹ 字形,与 login 返回键、品牌橙底一致) - 点击 uni.reLaunch 回启动页 /YJYF/YJYF,与 order/detail、coupon 等页面回首页写法一致 - 不改动既有头部布局尺寸,仅整体下移头像行 --- pages/mine/mine.vue | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue index a8a78c6..c2f1dc6 100644 --- a/pages/mine/mine.vue +++ b/pages/mine/mine.vue @@ -2,6 +2,12 @@ + + + ‹ + 返回首页 + + @@ -119,6 +125,7 @@ function toast(t) { uni.showToast({ title: t, icon: 'none' }); } function go(url) { uni.navigateTo({ url: url }); } + function backHome() { uni.reLaunch({ url: '/YJYF/YJYF' }); } function callService() { uni.makePhoneCall({ phoneNumber: '4000000000' }); } async function load() { @@ -170,6 +177,11 @@ .page { min-height: 100vh; background: #F5F6F8; padding-bottom: 60rpx; } .header { position: relative; padding: 40rpx 32rpx 30rpx; overflow: hidden; background: linear-gradient(160deg, #FFB85C 0%, #F98D25 55%, #ED6F0E 100%); } .deco { position: absolute; width: 320rpx; height: 320rpx; right: -110rpx; top: -130rpx; border-radius: 50%; background: rgba(255,255,255,.14); } + .h-top { position: relative; display: flex; align-items: center; margin-bottom: 16rpx; } + .home-btn { display: flex; align-items: center; height: 54rpx; padding: 0 22rpx 0 16rpx; border-radius: 27rpx; background: rgba(255,255,255,.24); } + .home-btn:active { background: rgba(255,255,255,.38); } + .home-ic { font-size: 34rpx; line-height: 34rpx; color: #fff; margin-top: -4rpx; margin-right: 8rpx; } + .home-tx { font-size: 24rpx; font-weight: 600; color: #fff; } .h-row { position: relative; display: flex; align-items: center; } .avatar { width: 120rpx; height: 120rpx; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; overflow: hidden; } .avatar-img { width: 120rpx; height: 120rpx; }