From 9f1cd4c3a776cb0cfa3c58d45f6ed0ffecd28f49 Mon Sep 17 00:00:00 2001 From: puhui999 Date: Thu, 8 May 2025 17:31:14 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=8A=9F=E8=83=BD=E5=AE=8C=E5=96=84?= =?UTF-8?q?=E3=80=91=E5=AE=A2=E6=9C=8D=E5=BA=95=E9=83=A8=E5=AE=89=E5=85=A8?= =?UTF-8?q?=E5=8C=BA=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/chat/components/messageList.vue | 9 ++++-- pages/chat/components/messageListItem.vue | 38 +++++++++++------------ 2 files changed, 25 insertions(+), 22 deletions(-) diff --git a/pages/chat/components/messageList.vue b/pages/chat/components/messageList.vue index 84a7e69..45356de 100644 --- a/pages/chat/components/messageList.vue +++ b/pages/chat/components/messageList.vue @@ -21,7 +21,7 @@ - + {{ showNewMessageTip ? '有新消息' : '回到底部' }} @@ -34,7 +34,10 @@ import KeFuApi from '@/sheep/api/promotion/kefu'; import { isEmpty } from '@/sheep/helper/utils'; import { formatDate } from '@/sheep/util'; + import sheep from '@/sheep'; + const { safeAreaInsets } = sheep.$platform.device; + const safeAreaInsetsBottom = safeAreaInsets.bottom + 'px' // 底部安全区域 const messageList = ref([]); // 消息列表 const showTip = ref(false); // 显示提示 const showNewMessageTip = ref(false); // 显示有新消息提示 @@ -164,10 +167,10 @@ }); -