From 781c8803a8aecbf34c3b623610961add4bae1c77 Mon Sep 17 00:00:00 2001 From: wangdongbo <949818794@qq.com> Date: Wed, 11 Feb 2026 14:38:28 +0800 Subject: [PATCH] no message --- pages/message/chat.scss | 23 ++++++++++++++++++----- pages/message/components/chat-input.vue | 2 +- pages/message/index.vue | 15 ++++++++++++++- 3 files changed, 33 insertions(+), 7 deletions(-) diff --git a/pages/message/chat.scss b/pages/message/chat.scss index fbe22c3..2a9772e 100644 --- a/pages/message/chat.scss +++ b/pages/message/chat.scss @@ -6,17 +6,23 @@ $text-color-sub: #999; $primary-color: #0877F1; .chat-page { + position: fixed; + top: 0; + left: 0; + right: 0; + bottom: 0; display: flex; flex-direction: column; - height: 100vh; background-color: #f5f5f5; overflow: hidden; } /* 患者信息栏样式 */ .patient-info-bar { - position: sticky; + position: fixed; top: 0; + left: 0; + right: 0; background: #fff; border-bottom: 1rpx solid #f0f0f0; padding: 20rpx 32rpx; @@ -110,11 +116,14 @@ $primary-color: #0877F1; } .chat-content { - flex: 1; + position: fixed; + top: 100rpx; /* 患者信息栏高度,根据实际调整 */ + left: 0; + right: 0; + bottom: 120rpx; /* 输入框高度,根据实际调整 */ box-sizing: border-box; overflow-x: hidden; overflow-y: auto; - min-height: 0; } .chat-content-compressed { @@ -379,12 +388,16 @@ $primary-color: #0877F1; } .input-section { + position: fixed; + bottom: 0; + left: 0; + right: 0; background: #fff; border-top: 1rpx solid #e0e0e0; - position: relative; z-index: 200; padding-bottom: env(safe-area-inset-bottom); flex-shrink: 0; + transform: translateZ(0); /* 开启硬件加速,提升性能 */ } .input-toolbar { diff --git a/pages/message/components/chat-input.vue b/pages/message/components/chat-input.vue index 6e04776..a9d28bd 100644 --- a/pages/message/components/chat-input.vue +++ b/pages/message/components/chat-input.vue @@ -8,7 +8,7 @@