From f4004da9947545223747539203981c7027e4093b Mon Sep 17 00:00:00 2001 From: zzc <1761997216@qq.com> Date: Sun, 1 Mar 2026 22:58:21 +0800 Subject: [PATCH] fix: daily page --- pages/greeting/daily.vue | 75 +++++++++++++++++++++++++++++++++------- pages/make/index.vue | 7 ++++ 2 files changed, 70 insertions(+), 12 deletions(-) diff --git a/pages/greeting/daily.vue b/pages/greeting/daily.vue index 21ec2fd..0fca434 100644 --- a/pages/greeting/daily.vue +++ b/pages/greeting/daily.vue @@ -1,9 +1,9 @@ @@ -254,7 +270,7 @@ const sendGreeting = () => { display: flex; justify-content: space-between; align-items: center; - margin-bottom: 8rpx; + margin-bottom: 15rpx; } .header-left { @@ -400,6 +416,41 @@ const sendGreeting = () => { } } +.author-edit-box { + flex: 1; + margin-left: 24rpx; + background: #f9f9f9; + border: 2rpx solid #eee; + border-radius: 40rpx; + height: 80rpx; + display: flex; + align-items: center; + padding: 0 24rpx; + transition: all 0.3s ease; + + &:active, + &:focus-within { + background: #fff; + border-color: #ff9800; + box-shadow: 0 4rpx 16rpx rgba(255, 152, 0, 0.15); + } + + .label { + font-size: 24rpx; + color: #999; + margin-right: 12rpx; + font-weight: 500; + white-space: nowrap; + } + + .input { + flex: 1; + height: 100%; + font-size: 28rpx; + color: #333; + } +} + /* Categories */ .category-section { padding: 0 32rpx; diff --git a/pages/make/index.vue b/pages/make/index.vue index 22c222d..e4bcf47 100644 --- a/pages/make/index.vue +++ b/pages/make/index.vue @@ -966,6 +966,13 @@ onLoad((options) => { scenePopup.value.open(); }, 200); } + + if (options.content) { + blessingText.value = { content: decodeURIComponent(options.content) }; + } + if (options.author) { + signatureName.value = decodeURIComponent(options.author); + } }); const loadData = () => {