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

@ -588,7 +588,7 @@ const handleSendMoreVisible = () => {
setTimeout(()=>{ setTimeout(()=>{
if (sendMoreVisible.value) { if (sendMoreVisible.value) {
uni.$emit(events.KeyboardEvent, 230); uni.$emit(events.KeyboardEvent, 230);
uni.$emit("msgKeyHeight", uni.getSystemInfoSync().windowHeight - 260); // uni.$emit("msgKeyHeight", uni.getSystemInfoSync().windowHeight - 360); //
} else { } else {
uni.$emit(events.KeyboardEvent, 0); uni.$emit(events.KeyboardEvent, 0);
uni.$emit("msgKeyHeight", '100%'); // uni.$emit("msgKeyHeight", '100%'); //

@ -141,7 +141,7 @@
const screenHeight2 = ref('') const screenHeight2 = ref('')
const isWeapp = ref(true) const isWeapp = ref(true)
const ssff = ref(uni.getWindowInfo().safeArea.top);
onMounted(() => { onMounted(() => {
@ -151,7 +151,7 @@
screenHeight1.value = res; screenHeight1.value = res;
// 100% // 100%
if (typeof res === 'number') { if (typeof res === 'number') {
msgKeyHeight.value = `${res - 34}px`; msgKeyHeight.value = `${res - ssff.value}px`;
} else { } else {
msgKeyHeight.value = res; // '100%' msgKeyHeight.value = res; // '100%'
} }

Loading…
Cancel
Save