解决登录显示、首页显示bug

This commit is contained in:
2026-05-19 11:06:46 +08:00
parent 2f7e097e6c
commit 00a859c551
181 changed files with 55329 additions and 998 deletions

View File

@@ -27,8 +27,8 @@ const props = defineProps({
const statusBarHeight = ref(0)
try {
const systemInfo = uni.getSystemInfoSync()
statusBarHeight.value = systemInfo.statusBarHeight
const windowInfo = uni.getWindowInfo()
statusBarHeight.value = windowInfo.statusBarHeight
} catch (error) {
statusBarHeight.value = 20
}
@@ -60,6 +60,16 @@ function goBack() {
return
}
if (
props.fallbackUrl == '/pages/mall/delivery/home/index' ||
props.fallbackUrl == '/pages/mall/delivery/orders/index' ||
props.fallbackUrl == '/pages/mall/delivery/messages/index' ||
props.fallbackUrl == '/pages/mall/delivery/profile/index'
) {
uni.switchTab({ url: props.fallbackUrl })
return
}
uni.redirectTo({ url: props.fallbackUrl })
}
</script>