<template>
	<view class="header" :style="{'height': height+'px','padding-top':statusBarHeight+'px'}">
		<image src="https://static.ticket.sz-trip.com/epicSoul/readingBody/search.png" mode="heightFix"></image>
		<image src="https://static.ticket.sz-trip.com/uploads/20250625/9bb05097e07570a934235983e1681a9f.png" mode="heightFix"></image>
		<view></view>
	</view>
</template>

<script>
	export default {
		name:"header",
		data() {
			return {
				// 导航栏参数
				height: 0,
				statusBarHeight: 0,
			};
		},
		mounted() {
			this.initRectInfo()
		},
		methods:{
			initRectInfo () {
				const sysInfo = uni.getSystemInfoSync()
				this.statusBarHeight = sysInfo.statusBarHeight
				// 默认高度
				this.height = sysInfo.statusBarHeight + 40
				console.log("sysInfo" ,sysInfo)
			},
		}
	}
</script>

<style scoped lang="scss">
	.header{
		flex-shrink: 0;
		display: flex;
		align-items: center;
		justify-content: space-around;
		image{
			height: 46.16rpx;
		}
	}
</style>