From b971a34f7fb9c259316e09f634e2ff2edc691166 Mon Sep 17 00:00:00 2001 From: gouki Date: Sun, 9 Aug 2026 21:46:03 +0000 Subject: [PATCH] =?UTF-8?q?fix(home):=20=E5=AE=9C=E5=BF=8C=E6=81=A2?= =?UTF-8?q?=E5=A4=8D=E7=82=B9=E5=87=BB=E6=94=BE=E5=A4=A7+=E7=94=9F?= =?UTF-8?q?=E8=82=96=E7=A7=BB=E5=88=B0=E6=97=A5=E5=8E=86/=E6=9C=88?= =?UTF-8?q?=E5=8E=86=E5=88=87=E6=8D=A2=E6=8C=89=E9=92=AE=E6=97=81=E8=BE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1. 大框内的宜忌区域加回 bindtap=openZoom(data-type=yiji),点击可全屏查看放大宜忌 2. 生肖(马年)从导航栏右侧移到左侧切换按钮旁边 3. 标题改为绝对定位居中,保持导航栏对称 --- mini/pages/home/home.wxml | 15 ++++++++------- mini/pages/home/home.wxss | 17 ++++++++++++++++- 2 files changed, 24 insertions(+), 8 deletions(-) diff --git a/mini/pages/home/home.wxml b/mini/pages/home/home.wxml index 8c95c1d..b2d9692 100644 --- a/mini/pages/home/home.wxml +++ b/mini/pages/home/home.wxml @@ -1,13 +1,14 @@ - - {{viewMode === 'day' ? '月历' : '日历'}} - - 老黄历 - + + + {{viewMode === 'day' ? '月历' : '日历'}} + {{dayInfo.zodiac}}年 + 老黄历 + @@ -64,8 +65,8 @@ 星期{{dayItem.dayInfo.weekDay}} · {{dayItem.legalHoliday ? dayItem.legalHoliday + ' · 放假' : (dayItem.workday ? '工作日 · 上班' : '周末 · 休息')}} - - + + diff --git a/mini/pages/home/home.wxss b/mini/pages/home/home.wxss index 30003b3..da52c99 100644 --- a/mini/pages/home/home.wxss +++ b/mini/pages/home/home.wxss @@ -13,6 +13,13 @@ align-items: center; justify-content: space-between; padding: 0 24rpx; + position: relative; +} + +.nav-left { + display: flex; + align-items: center; + gap: 16rpx; } .nav-toggle { @@ -36,6 +43,13 @@ font-size: 34rpx; font-weight: 600; letter-spacing: 4rpx; + position: absolute; + left: 50%; + transform: translateX(-50%); +} + +.nav-placeholder { + min-width: 96rpx; } .nav-right { @@ -46,8 +60,9 @@ .nav-zodiac { color: #FFFFFF; - font-size: 24rpx; + font-size: 26rpx; opacity: 0.9; + font-weight: 500; } .page-body {