Compare commits

..

No commits in common. '939f84b8c44d4449c169ca6d45b41ee3e0e489dd' and 'ae5dc052546f08cf170a86b308d13d3624902f89' have entirely different histories.

@ -464,20 +464,10 @@ const keyboardheightchange = (e) => {
audioPanelVisible.value = false;
sendMoreVisible.value = false;
const systemInfo = uni.getSystemInfoSync();
// const availableHeight = systemInfo.windowHeight - e.detail.height - ssff.value;
// uni.$emit("msgKeyHeight", availableHeight); //
// writeStyle.value = `bottom: calc(${e.detail.height}px - env(safe-area-inset-bottom))`;
if (systemInfo.platform === 'ios') {
const availableHeight = systemInfo.windowHeight - e.detail.height - ssff.value + 34;
uni.$emit("msgKeyHeight", availableHeight); //
writeStyle.value = `bottom: calc(${e.detail.height}px - env(safe-area-inset-bottom))`;
}else{
const availableHeight = systemInfo.windowHeight - e.detail.height - ssff.value;
uni.$emit("msgKeyHeight", availableHeight); //
writeStyle.value = `bottom: calc(${e.detail.height}px - env(safe-area-inset-bottom))`;
}
}
setTimeout(() => {
uni.$emit(events.ON_SCROLL_BOTTOM);
}, 80);
@ -845,13 +835,7 @@ const screenHeight = ref(0);
screenHeight.value = uni.getSystemInfoSync().windowHeight;
const chooseData = ref({});
onMounted(() => {
try {
const windowInfo = uni.getWindowInfo();
console.log("windowInfo", windowInfo);
ssff.value = (windowInfo?.safeArea?.top || 30) + 14;
} catch (error) {
ssff.value = 48; //
}
ssff.value = uni.getWindowInfo().safeArea.top + 14;
if (uni.getStorageSync("im_sendParams")) {
chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail;
}

Loading…
Cancel
Save