<template>
  <div class="page-header">
    <div class="header-left">
      <img :src="logoImg"/>
      <div class="pad_16">
        <span class="line_1"></span>
      </div>
      <div class="font-color-ac">
        {{title}}
      </div>
    </div>
    <div class="header-right">
      <span class="pad_top_5_l_10"><a @click="goList">{{callBackTitle}}</a></span>
    </div>
  </div>
</template>

<script>

var popup
export default {
  name: "ActivityHeader",
  data() {
    return {
      unreadCount: 0
    }
  },
  props:{
    title:{
      type:String,
      default:""
    },
    callBackTitle:{
      type:String,
      default:""
    },
    url:{
      type:String,
      default:""
    }
  },
  computed: {
    logoImg() {
      return process.env.BASE_URL + 'static/images/logo.png'
    },

  },
  methods:{
    goList(){
      this.$emit("goToList",this.url);
    }

  }

}
</script>
<style lang="less" scoped>
.pad_top_5_l_10 a{
   color:#5075FC ;
   padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #BCCBFF;
}
.font-color-ac{
  font-size: 18px;
  font-weight: 400;
  color: #999999;
}
.pad_16{
  padding: 0px 16px;
}
.line_1{
  height: 28px;
  border: solid 0.5px #EDEDED;

}
.page-header, .header-left, .header-nav, .header-right {
  display: flex;
  align-items: center;
  height: 80px;

}
.header-right{
  cursor: pointer;
}
.page-header {
  justify-content: space-between;
  background: #fff;
  box-shadow: 0px 2px 5px 0px rgb(0 0 0 / 10%);
  padding: 0 170px;
}

.header-left {

}

</style>
