CourseDirectory.vue 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <template>
  2. <div class="kechengmulu">
  3. <div class="gap10">
  4. <div class="line_vertical"></div>
  5. <div class="font_size18 bold">{{$t('common.kechengmulu')}} (1/20)</div>
  6. </div>
  7. <div class="flex-center-between font_size16 gray list_item"
  8. :class="{'active': index === 0}"
  9. v-for="(item, index) in 4" :key="index">
  10. <div class="gap10">
  11. <div>第一节</div>
  12. <div class="gap5">
  13. <img :src="muluIcon" alt="" style="width:20px;height:20px" v-if="index === 0">
  14. <span>行业要求与职业发展路线</span>
  15. </div>
  16. </div>
  17. <div>20:23</div>
  18. </div>
  19. </div>
  20. </template>
  21. <script setup>
  22. import muluIcon from '@/assets/imgs/mulu.png'
  23. import { getCourseList } from '@/api/course.js'
  24. import { ref, onMounted } from 'vue'
  25. defineProps({
  26. info: {
  27. type: Object,
  28. default: () => ({})
  29. }
  30. })
  31. const list = ref([]);
  32. </script>
  33. <style scoped lang="scss">
  34. .kechengmulu{
  35. .list_item{
  36. cursor: pointer;
  37. padding: 15px 0;
  38. border-bottom: 1px solid #DCDFE6;
  39. &.active{
  40. color: $primary-color;
  41. font-weight: 600;
  42. }
  43. }
  44. }
  45. </style>