Compare commits

..

No commits in common. '2808a778d141ca992adff3e4893954fae23b37ab' and 'e02f61bb0f525f49d1e5c537554d4cb93e28ae58' have entirely different histories.

@ -846,25 +846,12 @@ screenHeight.value = uni.getSystemInfoSync().windowHeight;
const chooseData = ref({});
onMounted(() => {
try {
try {
const windowInfo = uni.getWindowInfo();
console.log("windowInfo", windowInfo);
let safeTop = windowInfo?.safeArea?.top || 0;
// safeArea.top 0使
if (safeTop === 0) {
const systemInfo = uni.getSystemInfoSync();
// iOS
if (systemInfo.platform === 'ios') {
safeTop = systemInfo.statusBarHeight || 44; // iOS 44
} else {
safeTop = systemInfo.statusBarHeight || 30;
}
}
ssff.value = safeTop + 14;
} catch (error) {
ssff.value = 48; //
}
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")) {
chooseData.value = JSON.parse(uni.getStorageSync("im_sendParams")).jobDetail;
}

Loading…
Cancel
Save