Compare commits

..

No commits in common. 'c9bc3d23eaf32b9cef7d6cd99e4b980721543b03' and '1acb9ac8b4af991a0882d9c956290965add6af3a' have entirely different histories.

@ -363,58 +363,51 @@ const keyHeight = ref(350);
const msgKeyHeight = ref("100%"); const msgKeyHeight = ref("100%");
// message-input.vuekeyboardheightchange // message-input.vuekeyboardheightchange
// message-input.vuekeyboardheightchange const keyboardheightchange = (e) => {
const keyboardheightchange = (e) => { keyHeight.value = e.detail.height;
keyHeight.value = e.detail.height; uni.$emit(events.KeyboardEvent, e.detail.height);
uni.$emit(events.KeyboardEvent, e.detail.height); uni.$emit("KeyboardHeight", e.detail.height);
uni.$emit('KeyboardHeight', e.detail.height);
if (e.detail.height === 0) {
if (e.detail.height === 0) { writeStyle.value = "bottom: 0";
writeStyle.value = "bottom: 0"; uni.$emit("msgKeyHeight", "100%"); //
uni.$emit('msgKeyHeight', '100%'); // } else {
} else { //
// emojiVisible.value = false;
emojiVisible.value = false; extVisible.value = false;
extVisible.value = false; audioPanelVisible.value = false;
audioPanelVisible.value = false; sendMoreVisible.value = false;
sendMoreVisible.value = false;
// APP
// APP const systemInfo = uni.getSystemInfoSync();
const systemInfo = uni.getSystemInfoSync(); const safeBottom = systemInfo.safeAreaInsets?.bottom || 0;
const safeBottom = systemInfo.safeAreaInsets?.bottom || 0; // = - -
// = - -
//
// // #ifdef MP-WEIXIN
// #ifdef MP-WEIXIN const availableHeight = systemInfo.windowHeight - e.detail.height - safeBottom - 120;
if (systemInfo.platform === 'ios') { uni.$emit("msgKeyHeight", availableHeight); //
const availableHeight = systemInfo.windowHeight - e.detail.height - safeBottom - 64;
uni.$emit('msgKeyHeight', availableHeight); // writeStyle.value = `bottom: calc(${e.detail.height}px + env(safe-area-inset-bottom))`;
}else{ // #endif
const availableHeight = systemInfo.windowHeight - e.detail.height - safeBottom - 94; // #ifdef APP-PLUS
uni.$emit('msgKeyHeight', availableHeight); // //
} let availableHeight, bottomValue;
if (systemInfo.platform === "ios") {
//
writeStyle.value = `bottom: calc(${e.detail.height}px - env(safe-area-inset-bottom))`; availableHeight = systemInfo.windowHeight - e.detail.height - safeBottom;
// #endif bottomValue = e.detail.height - safeBottom - 34;
// #ifdef APP-PLUS } else {
// //
let availableHeight, bottomValue; availableHeight = systemInfo.windowHeight - e.detail.height - safeBottom - 34;
if (systemInfo.platform === 'ios') { bottomValue = e.detail.height - safeBottom;
// }
availableHeight = systemInfo.windowHeight - e.detail.height - safeBottom;
bottomValue = e.detail.height - safeBottom - 34; uni.$emit("msgKeyHeight", availableHeight); //
} else { writeStyle.value = `bottom: ${bottomValue}px`;
// // #endif
availableHeight = systemInfo.windowHeight - e.detail.height - safeBottom - 34; }
bottomValue = e.detail.height - safeBottom; };
}
uni.$emit('msgKeyHeight', availableHeight); //
writeStyle.value = `bottom: ${bottomValue}px`;
// #endif
}
};
const handleInputBlur = () => { const handleInputBlur = () => {
isFocus.value = false; isFocus.value = false;

Loading…
Cancel
Save