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 @@ }); -