<template>
    <view class="title-box" :class="[pageScroll > 140 ? 'scroll-style' : '', androidFlag ? 'androidHeight' : 'iosHeight']">
	      <view class="title-font" :style="{top:btnTop + 'px'}">{{titleValue}}</view>
    </view>
  </view>
</template>

<script>
export default {
  name: "title-top",
  props: {
    titleValue: {
      type: String,
      default: 'Air企通',
    },
	pageScroll:{
		type:Number,
		default:0
	},
	btnTop:{
		type:Number,
		default:30
	},
	androidFlag:{
		type:Boolean,
		default:false
	},
  },
  data() {
    return {};
  },
  mounted() {
  	console.log(this.btnTop,this.androidFlag)
  },
  methods: {
  },
};
</script>

<style>
.title-box {
    width: 100%;
    background: transparent;
    position: fixed;
    top: 0px;
    z-index: 9999;
    text-align: center;
}
.iosHeight{
	height: 145rpx;
}
.androidHeight{
	height: 200rpx;
}
.scroll-style {
	background: #4AA5E4;
}
.title-font {
	position: absolute;
	left: 41%;
	font-weight: bold;
	color: #fff;
	letter-spacing: 6rpx;
}
</style>
