<template>
  <div class="top-bar">
    <img class="top-bar-left" :src="leftImg" />
    <div class="top-bar-right">
      <a :href="href">
        <button class="top-bar-button">打开APP</button>
      </a>
      <img class="top-bar-close" @click="close" src="./images/close@2x.png" />
    </div>
  </div>
</template>
<script>
  export default {
    name: "DownloadGuide",
    props: {
      href: String,
      leftImg: String
    },
    methods: {
      close() {
        this.$emit('delete');
      }
    }
  }
</script>
<style lang="less" scoped>
  .top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 40px;
    background-color: #d7e6ff;
    padding: 0 20px 0 15px;
    .top-bar-left {
      width: 92px;
      height: 24px;
    }
    .top-bar-right {
      display: flex;
      align-items: center;
      a {
        margin-right: 15px;
        font-size: 0;
        .top-bar-button {
          width: 70px;
          height: 24px;
          line-height: 24px;
          border-radius: 24px !important;
          background-color: #5573eb !important;
          font-size: 13px;
        }
      }
      .top-bar-close {
        width: 20px;
        height: 20px;
      }
    }
  }
</style>