|
@@ -20,12 +20,11 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { getNotchHeight } from "@/utils/statusBar";
|
|
|
+import { getNotchHeight} from "@/utils/statusBar";
|
|
|
|
|
|
const route = useRoute();
|
|
|
const mainStyle = ref({});
|
|
|
-
|
|
|
-const active = ref(route.name);
|
|
|
+
|
|
|
|
|
|
const tabbarOptions = [
|
|
|
{
|
|
@@ -55,6 +54,9 @@ const tabbarOptions = [
|
|
|
},
|
|
|
];
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
onBeforeMount(async () => {
|
|
|
const height = await getNotchHeight();
|
|
|
if (route.meta.navbar) {
|
|
@@ -63,7 +65,7 @@ onBeforeMount(async () => {
|
|
|
mainStyle.value = {
|
|
|
marginTop: `${height}px`,
|
|
|
};
|
|
|
- }
|
|
|
+ }
|
|
|
});
|
|
|
</script>
|
|
|
|
|
@@ -73,7 +75,9 @@ onBeforeMount(async () => {
|
|
|
height: 25px;
|
|
|
}
|
|
|
.van-tabbar--fixed{
|
|
|
- padding: 10px 0 4px 0;
|
|
|
+ height: 70px;
|
|
|
+ // padding: 10px 0 20px 0;
|
|
|
+ padding-top: 10px;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
</style>
|