cyl/master-0822
zsk 3 months ago
parent 84fa20a4dc
commit d2fbcae464

@ -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`;
} else {
msgKeyHeight.value = res; // '100%'
}

Loading…
Cancel
Save