|
@@ -8,14 +8,23 @@
|
|
<div class="activities">
|
|
<div class="activities">
|
|
<div class="activity" v-for="(item,index) in lessons" @click="handleLessonClick(item.rowKey)">
|
|
<div class="activity" v-for="(item,index) in lessons" @click="handleLessonClick(item.rowKey)">
|
|
<div>
|
|
<div>
|
|
- <div class="img-box"><span class="state" style="background: rgb(130, 147, 166); visibility: visible;">{{item.activityStatusTip}}</span> <img :src="getThumb(item.rowKey)" alt=""></div>
|
|
|
|
|
|
+ <div class="img-box">
|
|
|
|
+ <span class="state" style="background: rgb(130, 147, 166); visibility: visible;">{{item.data.activityStatusTip}}</span>
|
|
|
|
+ <!--<img :src="getThumb(item.rowKey)" alt="">-->
|
|
|
|
+ <div class="lesson-image">
|
|
|
|
+ <p style="font-size:24px">高新区智慧课堂优秀课例</p>
|
|
|
|
+ <p style="font-size:16px;margin:5px 0">{{item.data.parentGradeName}}</p>
|
|
|
|
+ <p style="font-size:28px;">《 {{item.data.parentProjectName}} 》</p>
|
|
|
|
+ <p style="font-size:16px;margin-top:8px;">{{item.data.schoolName}} {{item.data.speaker}}教师 执教</p>
|
|
|
|
+ <p style="font-size:16px;margin-top:8px;">授课平台:{{item.data.parentTeachePlateName}}</p>
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
<div class="infos">
|
|
<div class="infos">
|
|
- <p></p>
|
|
|
|
- <p>名称:{{item.mainActivityName}}</p>
|
|
|
|
- <p>学校:{{item.schoolName}}</p>
|
|
|
|
- <p>主讲:{{item.speaker}}</p>
|
|
|
|
- <p>学科:{{item.categoryName}}</p>
|
|
|
|
- <p>时间:{{item.timeTip}}</p>
|
|
|
|
|
|
+ <p>名称:{{item.data.name}}</p>
|
|
|
|
+ <p>学校:{{item.data.schoolName}}</p>
|
|
|
|
+ <p>主讲:{{item.data.speaker}}</p>
|
|
|
|
+ <p>学科:{{item.data.parentCategoryName}}</p>
|
|
|
|
+ <p>时间:{{item.data.timeRangeTip}}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -24,6 +33,7 @@
|
|
</template>
|
|
</template>
|
|
<script>
|
|
<script>
|
|
import lessons from '@/static/observationList.json'
|
|
import lessons from '@/static/observationList.json'
|
|
|
|
+ import lessonDetails from '@/static/lessonDetails.json'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
},
|
|
},
|
|
@@ -34,7 +44,7 @@
|
|
},
|
|
},
|
|
|
|
|
|
created() {
|
|
created() {
|
|
- this.lessons = lessons.list;
|
|
|
|
|
|
+ this.lessons = lessonDetails;
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
getList(type) {
|
|
getList(type) {
|
|
@@ -50,16 +60,6 @@
|
|
this.typeName = name;
|
|
this.typeName = name;
|
|
this.getList(typeId);
|
|
this.getList(typeId);
|
|
},
|
|
},
|
|
- getThumb(type) {
|
|
|
|
- let thumb = {
|
|
|
|
- "0": require("../../assets/image/lessonCover.png"),
|
|
|
|
- "1": require("../../assets/image/lessonCover2.png"),
|
|
|
|
- "2": require("../../assets/image/lessonCover3.png"),
|
|
|
|
- };
|
|
|
|
- return thumb[type];
|
|
|
|
- },
|
|
|
|
-
|
|
|
|
-
|
|
|
|
handleLessonClick(rowKey) {
|
|
handleLessonClick(rowKey) {
|
|
sessionStorage.setItem('_lesson_rowKey', rowKey);
|
|
sessionStorage.setItem('_lesson_rowKey', rowKey);
|
|
this.$router.push('lessonDetails')
|
|
this.$router.push('lessonDetails')
|
|
@@ -119,9 +119,19 @@
|
|
}
|
|
}
|
|
|
|
|
|
.img-box {
|
|
.img-box {
|
|
|
|
+ background:url(../../assets/image/lessonCover.png);
|
|
height: 210px
|
|
height: 210px
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ .img-box .lesson-image {
|
|
|
|
+ display:flex;
|
|
|
|
+ flex-direction:column;
|
|
|
|
+ justify-content:center;
|
|
|
|
+ align-items:center;
|
|
|
|
+ color:#fff;
|
|
|
|
+ font-weight:bold;
|
|
|
|
+ }
|
|
|
|
+
|
|
.img-box .state {
|
|
.img-box .state {
|
|
padding: 5px 8px;
|
|
padding: 5px 8px;
|
|
line-height: 20px;
|
|
line-height: 20px;
|
|
@@ -177,4 +187,5 @@
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+
|
|
</style>
|
|
</style>
|