<template>
  <div class="learn-conatiner">
    <Header title="学习项目"/>
    <ul>
      <li v-for="(item,index) in list" :key="index" @click="goDetail(item)">
        <span>{{item.name}}</span>
        <img src="/images/applets/coming.png" alt />
      </li>
    </ul>
    <my-tabbar active="1"></my-tabbar>
  </div>
</template>

<script>
import Header from '@/components/Header/index.vue'
export default {
  components:{Header},
  data() {
    return {
        list:[
            {name:"十四大学习"},
            {name:"十四大学习1"},
            {name:"十四大学习2"},
            {name:"十四大学习3"},
        ]
    };
  },
  mounted(){

  },
  methods:{
      goDetail(item){
        this.$router.push({path:'/learnContent',query:{id:item.name}})
      }
  }
};
</script>

<style lang="scss" scoped>
.learn-conatiner {
  width: 100%;
  height: 100vh;
  padding: 16px;
  box-sizing: border-box;
  ul {
    margin-top: 44px;
    list-style: none;
  }
  li {
    display: flex;
    justify-content: space-between;
    background: #f8f8f8;
    border-radius: 33px;
    font-size: 16px;
    padding: 12px;
    color: #333333;
    margin-top: 20px;
    img {
        width: 24px;
        height: 24px;
    }
  }
}
</style>