<template>
  <div class="item-title">
    <div class="title moren">{{title}}</div>
    <div class="more hand" v-if="isShow === '1'" @click="loadMore" >【查看更多】</div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    },
	isShow: {
		type: String,
		default: '1'
	},
	topath: {
		type: String,
		default: '/home'
	}
  },
  methods: {
	  loadMore() {
		 this.$router.push(this.topath) 
	  }
  }
};
</script>

<style lang="scss" scoped>
.item-title {
  height: 40px;
  border-top: 2px solid #d82020;
  display: flex;
  justify-content: space-between;
  padding-right: 8px;
  .title {
	text-align: center;
    font-size: 16px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #ffffff;
    width: 120px;
    height: 38px;
    line-height: 40px;
    background-color: #d82020;
	position: relative;
	top: -1px;
	letter-spacing:2px
  }
  .more {
    display: inline-block;
    height: 38px;
    line-height: 38px;
    font-size: 14px;
    font-family: PingFang SC;
    font-weight: bold;
    color: #666666;
  }
}
</style>