<template>
  <!--顶部-->
  <view class="TopStateNavHeight Width100" :style="'height:' + topHeight + 'px;'">

  </view>
</template>

<script>
export default {
  name: "top-state-nav-height",
  props: {

  },
  data() {
    return {
      topHeight:0, // 导航栏高度
    }
  },
  mounted(){
    // 状态栏高度
    uni.getSystemInfo({
      success: (e) => {
        // #ifdef APP-PLUS
        this.topHeight = e.statusBarHeight
        // #endif
      }
    })
  },
  methods: {
    // 获取url
    getCurPage() {
      let pages = getCurrentPages();
      let curPage = pages[pages.length - 1];
      return curPage
    },
  },
}
</script>

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