|
|
|
@ -464,10 +464,20 @@ const keyboardheightchange = (e) => {
|
|
|
|
audioPanelVisible.value = false;
|
|
|
|
audioPanelVisible.value = false;
|
|
|
|
sendMoreVisible.value = false;
|
|
|
|
sendMoreVisible.value = false;
|
|
|
|
const systemInfo = uni.getSystemInfoSync();
|
|
|
|
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;
|
|
|
|
const availableHeight = systemInfo.windowHeight - e.detail.height - ssff.value;
|
|
|
|
uni.$emit("msgKeyHeight", availableHeight); // 传递实际可用高度
|
|
|
|
uni.$emit("msgKeyHeight", availableHeight); // 传递实际可用高度
|
|
|
|
writeStyle.value = `bottom: calc(${e.detail.height}px - env(safe-area-inset-bottom))`;
|
|
|
|
writeStyle.value = `bottom: calc(${e.detail.height}px - env(safe-area-inset-bottom))`;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
setTimeout(() => {
|
|
|
|
setTimeout(() => {
|
|
|
|
uni.$emit(events.ON_SCROLL_BOTTOM);
|
|
|
|
uni.$emit(events.ON_SCROLL_BOTTOM);
|
|
|
|
}, 80);
|
|
|
|
}, 80);
|
|
|
|
@ -835,7 +845,13 @@ const screenHeight = ref(0);
|
|
|
|
screenHeight.value = uni.getSystemInfoSync().windowHeight;
|
|
|
|
screenHeight.value = uni.getSystemInfoSync().windowHeight;
|
|
|
|
const chooseData = ref({});
|
|
|
|
const chooseData = ref({});
|
|
|
|
onMounted(() => {
|
|
|
|
onMounted(() => {
|
|
|
|
ssff.value = uni.getWindowInfo().safeArea.top + 14;
|
|
|
|
try {
|
|
|
|
|
|
|
|
const windowInfo = uni.getWindowInfo();
|
|
|
|
|
|
|
|
console.log("windowInfo", windowInfo);
|
|
|
|
|
|
|
|
ssff.value = (windowInfo?.safeArea?.top || 30) + 14;
|
|
|
|
|
|
|
|
} catch (error) {
|
|
|
|
|
|
|
|
ssff.value = 48; // 设置默认值
|
|
|
|
|
|
|
|
}
|
|
|
|
if (uni.getStorageSync("im_sendParams")) {
|
|
|
|
if (uni.getStorageSync("im_sendParams")) {
|
|
|
|
chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail;
|
|
|
|
chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|