no message
This commit is contained in:
parent
ae109a13e3
commit
30288bfa9f
@ -6,14 +6,11 @@ $text-color-sub: #999;
|
|||||||
$primary-color: #0877F1;
|
$primary-color: #0877F1;
|
||||||
|
|
||||||
.chat-page {
|
.chat-page {
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
height: 100vh;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 患者信息栏样式 */
|
/* 患者信息栏样式 */
|
||||||
@ -90,6 +87,7 @@ $primary-color: #0877F1;
|
|||||||
flex: 1;
|
flex: 1;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
|
min-height: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.chat-content-compressed {
|
.chat-content-compressed {
|
||||||
@ -359,6 +357,7 @@ $primary-color: #0877F1;
|
|||||||
position: relative;
|
position: relative;
|
||||||
z-index: 200;
|
z-index: 200;
|
||||||
padding-bottom: env(safe-area-inset-bottom);
|
padding-bottom: env(safe-area-inset-bottom);
|
||||||
|
flex-shrink: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.input-toolbar {
|
.input-toolbar {
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
<view class="input-area">
|
<view class="input-area">
|
||||||
<textarea v-if="!showVoiceInput" class="text-input" v-model="inputText" placeholder="我来说两句..."
|
<textarea v-if="!showVoiceInput" class="text-input" v-model="inputText" placeholder="我来说两句..."
|
||||||
@confirm="sendTextMessage" @focus="handleInputFocus" @input="handleInput"
|
@confirm="sendTextMessage" @focus="handleInputFocus" @input="handleInput"
|
||||||
:auto-height="true" :show-confirm-bar="false" :adjust-position="true" :cursor-spacing="40"
|
:auto-height="true" :show-confirm-bar="false" :adjust-position="true" :cursor-spacing="60"
|
||||||
/>
|
/>
|
||||||
<input v-else class="voice-input-btn" :class="{ recording: isRecording }" @touchstart="startRecord"
|
<input v-else class="voice-input-btn" :class="{ recording: isRecording }" @touchstart="startRecord"
|
||||||
@touchmove="onRecordTouchMove" @touchend="stopRecord" @touchcancel="cancelRecord" :placeholder="isRecording ? '松开发送' : '按住说话'" disabled>
|
@touchmove="onRecordTouchMove" @touchend="stopRecord" @touchcancel="cancelRecord" :placeholder="isRecording ? '松开发送' : '按住说话'" disabled>
|
||||||
|
|||||||
@ -2728,20 +2728,9 @@ class TimChatManager {
|
|||||||
if (!conversationID.startsWith('GROUP')) {
|
if (!conversationID.startsWith('GROUP')) {
|
||||||
formattedConversationID = `GROUP${conversationID}`
|
formattedConversationID = `GROUP${conversationID}`
|
||||||
}
|
}
|
||||||
|
this.triggerCallback('onConversationListUpdated', {
|
||||||
console.log('📖 标记会话为已读:', formattedConversationID);
|
conversationID: formattedConversationID,
|
||||||
|
unreadCount: 0
|
||||||
this.tim.setMessageRead({
|
|
||||||
conversationID: formattedConversationID
|
|
||||||
}).then(() => {
|
|
||||||
console.log('✓ 会话已标记为已读:', formattedConversationID);
|
|
||||||
// 触发会话列表更新回调,通知消息列表页面清空未读数
|
|
||||||
this.triggerCallback('onConversationListUpdated', {
|
|
||||||
conversationID: formattedConversationID,
|
|
||||||
unreadCount: 0
|
|
||||||
})
|
|
||||||
}).catch(error => {
|
|
||||||
console.error('✗ 标记会话已读失败:', error)
|
|
||||||
})
|
})
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error('✗ 标记会话已读异常:', error)
|
console.error('✗ 标记会话已读异常:', error)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user