You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
40 lines
655 B
40 lines
655 B
11 months ago
|
<template>
|
||
|
<!--顶部-->
|
||
|
<view class="TopStateNavHeight Width100"></view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
name: "top-state-nav-height-num",
|
||
|
props: {
|
||
|
|
||
|
},
|
||
|
data() {
|
||
|
return {
|
||
|
topHeight:0, // 导航栏高度
|
||
|
}
|
||
|
},
|
||
|
mounted(){
|
||
|
// 状态栏高度
|
||
|
uni.getSystemInfo({
|
||
|
success: (e) => {
|
||
|
// #ifdef APP-PLUS
|
||
|
this.$emit('topHeight',e.statusBarHeight)
|
||
|
// #endif
|
||
|
}
|
||
|
})
|
||
|
},
|
||
|
methods: {
|
||
|
// 获取url
|
||
|
getCurPage() {
|
||
|
let pages = getCurrentPages();
|
||
|
let curPage = pages[pages.length - 1];
|
||
|
return curPage
|
||
|
},
|
||
|
},
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style scoped lang="scss">
|
||
|
</style>
|