<template>
	<view class="nav-bar">
		<view class="nav-bar-status" :style="{ height: statusBarHeight + 'px' }">
		</view>
		<view class="nav-bar-title" :style="{ height: titleBarHeight +'px' }">
			<view></view>
			<view>慕尼黑展览公司</view>
			<view></view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {},
		data() {
			return {
				titleBarHeight: 0,
				statusBarHeight: 0,
				isNotchScreen: false
			}
		},
		created() {
			const systemInfo = uni.getSystemInfoSync()
			this.statusBarHeight = systemInfo.statusBarHeight
			const menuButtonInfo = uni.getMenuButtonBoundingClientRect()
			this.titleBarHeight = (menuButtonInfo.top - this.statusBarHeight) * 2 + menuButtonInfo.height
			console.log(systemInfo)
		}
	}
</script>

<style lang="scss" scoped>
	.nav-bar {
		background-color: $primary-color;
	}
	
	.nav-bar-title{
		display: flex;
		justify-content: space-between;
		align-items: center;
		color: #ffffff;
	}
</style>