no message
This commit is contained in:
parent
19fbae743e
commit
5d22b06b4b
@ -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;
|
||||||
|
|||||||
@ -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();
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user