<template>
    <view class="title-box" :class="pageScroll > 140 ? 'scroll-style' : ''">
	      {{titleValue}}
    </view>
  </view>
</template>

<script>
export default {
  name: "title-top",
  props: {
    titleValue: {
      type: String,
      default: '空i企',
    },
	pageScroll:{
		type:Number,
		default:0
	}
  },
  data() {
    return {};
  },
  methods: {
  },
};
</script>

<style>
.title-box {
    width: 100%;
    height: 80rpx;
    background: transparent;
    position: fixed;
    top: 40rpx;
    color: #fff;
    letter-spacing: 6rpx;
    z-index: 9999;
    text-align: center;
	font-weight: 550;
	line-height: 90rpx;
}
.scroll-style {
	background: #02A7F0;
	top: 0;
	height: 135rpx;
	line-height: 160rpx;
}
</style>
