no message

This commit is contained in:
wangdongbo 2026-02-12 11:44:28 +08:00
parent 19fbae743e
commit 5d22b06b4b
2 changed files with 1 additions and 11 deletions

View File

@ -95,7 +95,7 @@ $primary-color: #0877F1;
top: 100rpx; /* 患者信息栏高度,根据实际调整 */ top: 100rpx; /* 患者信息栏高度,根据实际调整 */
left: 0; left: 0;
right: 0; right: 0;
bottom: 160rpx; /* 输入框高度,根据实际调整 */ bottom: 200rpx; /* 输入框高度,根据实际调整 */
box-sizing: border-box; box-sizing: border-box;
overflow-x: hidden; overflow-x: hidden;
overflow-y: auto; overflow-y: auto;

View File

@ -18,7 +18,6 @@
<!-- 聊天消息区域 --> <!-- 聊天消息区域 -->
<scroll-view <scroll-view
class="chat-content" class="chat-content"
:style="{ bottom: keyboardHeight + 'px' }"
scroll-y="true" scroll-y="true"
enhanced="true" enhanced="true"
bounces="false" bounces="false"
@ -152,7 +151,6 @@
:patientInfo="patientInfo" :patientInfo="patientInfo"
:orderStatus="orderStatus" :orderStatus="orderStatus"
:isGenerating="isGenerating" :isGenerating="isGenerating"
:keyboardHeight="keyboardHeight"
@scrollToBottom="() => scrollToBottom(true)" @scrollToBottom="() => scrollToBottom(true)"
@messageSent="() => scrollToBottom(true)" @messageSent="() => scrollToBottom(true)"
@endConsult="handleEndConsult" @endConsult="handleEndConsult"
@ -304,9 +302,6 @@ const chatInfo = ref({
avatar: "/static/home/avatar.svg", avatar: "/static/home/avatar.svg",
}); });
//
const keyboardHeight = ref(0);
// //
const isEvaluationPopupOpen = ref(false); const isEvaluationPopupOpen = ref(false);
@ -463,11 +458,6 @@ onLoad((options) => {
chatInfo.value.userID = decodeQueryValue(options.userID); chatInfo.value.userID = decodeQueryValue(options.userID);
} }
//
uni.onKeyboardHeightChange((res) => {
keyboardHeight.value = res.height;
});
checkLoginAndInitTIM(); checkLoginAndInitTIM();
updateNavigationTitle(); updateNavigationTitle();
}); });