<template>
  <div>
    <el-tabs v-model="activeName">
      <el-tab-pane label="消费类" name="1"></el-tab-pane>
      <el-tab-pane label="互动类" name="2"></el-tab-pane>
    </el-tabs>
    <sale v-if="activeName==='1'" />
    <interaction v-else />
  </div>
</template>
<script>
import sale from './achievement_sale.vue';
import interaction from './achievement_interaction.vue';
export default {
  components: {
    sale,
    interaction
  },
  data() {
    return {
      activeName: '1'
    };
  },
}
</script>
<style lang="less" scoped>
/deep/.el-tabs {
  .el-tabs__header {
    margin: 0;
    .el-tabs__nav-wrap {
      padding-left: 20px;
    }
  }
  .el-tabs__item {
    height: 46px;
    line-height: 46px;
  }
  .el-tabs__nav-wrap::after {
    height: 1px !important;
  }
}
</style>