音频名称-----{{ item }}
+{{ resource.name }}
{{ resource.description }}
@@ -243,7 +243,6 @@ const onEditResource = (row) => { } .body { background-color: #fff; - height: 100%; } .top { margin-bottom: 20px; @@ -267,13 +266,12 @@ ul { } li { transition: filter 0.3s; /* 添加过渡动画 */ - flex: 0 0 20%; + width: calc(25% - 25px); flex-direction: column; align-items: center; margin-bottom: 10px; padding: 10px; box-sizing: border-box; - transition: box-shadow 0.3s; cursor: pointer; } @@ -296,4 +294,9 @@ li:hover { .box p:hover { font-weight: bold; } +.img { + display: block; + width: 250px; + height: 250px; +} diff --git a/src/views/home/components/Class1.vue b/src/views/home/components/Class1.vue index 15f461f..366dd58 100644 --- a/src/views/home/components/Class1.vue +++ b/src/views/home/components/Class1.vue @@ -2,38 +2,38 @@ import conheader from '@/views/home/components/ConHeader.vue' const courses = [ { - name: 'Vue.js Basics', + name: '软件构造', image: 'vuejs-basics.jpg', hours: 20, }, { - name: 'Reac', + name: '软件项目管理', image: 'react-fundamentals.jpg', hours: 25, }, { - name: 'Reacts', + name: 'React', image: 'react-fundamentals.jpg', hours: 25, }, { - name: 'React Fund', + name: '程序设计', image: 'react-fundamentals.jpg', hours: 25, }, ] -{{ course.name }}
{{ course.hours }}
@@ -63,7 +63,7 @@ const courses = [ .course-list { display: flex; flex-direction: column; - width: 132px; + height: 48px; } .course-item { diff --git a/src/views/home/components/Class2.vue b/src/views/home/components/Class2.vue index 62a7f03..7888063 100644 --- a/src/views/home/components/Class2.vue +++ b/src/views/home/components/Class2.vue @@ -2,31 +2,31 @@ import conheader from '@/views/home/components/ConHeader.vue' const courses = [ { - name: 'Vue.js Basics', + name: '软件构造', image: 'vuejs-basics.jpg', hours: 20, }, { - name: 'Reac', + name: '项目管理', image: 'react-fundamentals.jpg', hours: 25, }, { - name: 'Reacts', + name: 'React', image: 'react-fundamentals.jpg', hours: 25, }, { - name: 'React Fund', + name: '程序设计', image: 'react-fundamentals.jpg', hours: 25, }, ] -