diff --git a/root/NEUIKit/pages/Chat/message/message-input.vue b/root/NEUIKit/pages/Chat/message/message-input.vue index ba2a42a..c01c756 100644 --- a/root/NEUIKit/pages/Chat/message/message-input.vue +++ b/root/NEUIKit/pages/Chat/message/message-input.vue @@ -407,7 +407,7 @@ const pushUp = ref(false); const keyHeight = ref(350); const msgKeyHeight = ref("100%"); -const ssff = ref(uni.getWindowInfo().safeArea.top); +const ssff = ref("30"); const handleInputFocus = (e) => { emojiVisible.value = false; @@ -800,6 +800,7 @@ const screenHeight = ref(0); screenHeight.value = uni.getSystemInfoSync().windowHeight; const chooseData = ref({}); onMounted(() => { + ssff.value = uni.getWindowInfo().safeArea.top + 14; if (uni.getStorageSync("im_sendParams")) { chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail; } @@ -926,6 +927,7 @@ onMounted(() => { emojiVisible.value = false; extVisible.value = false; uni.$emit(events.KeyboardEvent, 0); + uni.$emit("msgKeyHeight", '100%'); // 传递实际可用高度 } }); }