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.
41 lines
687 B
41 lines
687 B
<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>
|
|
|