@ -588,7 +588,7 @@ const handleSendMoreVisible = () => {
setTimeout(()=>{
if (sendMoreVisible.value) {
uni.$emit(events.KeyboardEvent, 230);
uni.$emit("msgKeyHeight", uni.getSystemInfoSync().windowHeight - 260); // 传递实际可用高度
uni.$emit("msgKeyHeight", uni.getSystemInfoSync().windowHeight - 360); // 传递实际可用高度
} else {
uni.$emit(events.KeyboardEvent, 0);
uni.$emit("msgKeyHeight", '100%'); // 传递实际可用高度
@ -141,7 +141,7 @@
const screenHeight2 = ref('')
const isWeapp = ref(true)
const ssff = ref(uni.getWindowInfo().safeArea.top);
onMounted(() => {
@ -151,7 +151,7 @@
screenHeight1.value = res;
// 无论是否为小程序,都直接应用高度(移除100%的特殊处理)
if (typeof res === 'number') {
msgKeyHeight.value = `${res - 34}px`;
msgKeyHeight.value = `${res - ssff.value}px`;
msgKeyHeight.value = res; // 处理'100%'的情况
}