<template>
  <div class="pop">
    <img class="icon" src="/img/share/icon7.png" alt="">
    <div class="title">
      <!-- 您已成功领取 {{ total }} 张 抵扣券！ -->
      {{ $t('share.l36').replace('{p}', total) }}
    </div>
    <div class="tip">
      <!-- 请前往卡券中心查看 -->
      {{ $t('share.l37') }}
    </div>
    <div class="btn-box">
      <div class="btn" @click="cancel">
        <!-- 确定 -->
        {{ $t('common.l50') }}
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['total'],
  data () {
    return {
      
    }
  },
  methods: {
    cancel() {
      this.$emit('cancel')
    }
  }
}
</script>
<style lang="less" scoped>
.pop {
  line-height: 1;
  padding: 12px 12px 24px;
  text-align: center;
  .icon {
    display: block;
    width: 110px;
    margin: 0 auto 1px;
  }
  .title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    letter-spacing: -1px;
  }
  .tip {
    color: #A6A6A6;
    margin-bottom: 26px;
  }
}
.btn-box {
  padding: 0 9px;
  .btn {
    cursor: pointer;
    background-color: var(--color-);
    border-radius: 6px;
    line-height: 40px;
    font-size: 15px;
    font-weight: 600;
    color: #FEFFFF;
  }
}
</style>