<template>
  <view>
    <view
      :style="{ backgroundPositionY: -44 + safeAreaInsets.top + 'px' }"
      class="index-page"
    >
      <!-- 自定义导航 -->
      <view
        :style="{ paddingTop: safeAreaInsets.top + 'px' }"
        class="page-navbar"
      ></view>
    </view>
  </view>
</template>

<script setup>
  // 获取安全区域的边界
  const { safeAreaInsets } = uni.getSystemInfoSync()
</script>

<style lang="scss"></style>
