| 123456789101112131415161718192021222324 |
- <template>
- <view :style="{ paddingTop: BarHeight + 'px' }"></view>
- </template>
- <script>
- export default {
- name:"c-top",
- data() {
- return {
- BarHeight: 0
- };
- },
- mounted() {
- // #ifdef APP-PLUS
- let systemInfo = uni.getSystemInfoSync();
- this.BarHeight = systemInfo.statusBarHeight;
- // #endif
- }
- }
- </script>
- <style lang="scss">
- </style>
|