This commit is contained in:
“hhk” 2024-07-30 18:41:45 +08:00
parent 4b131de229
commit 8374281574

View File

@ -38,6 +38,35 @@
</div>
</div>
<!-- 实践项目 -->
<div v-if="item.id == '1813831932748894208'" class="list">
<div class="item" v-for="(item, index) in teachingAchievements2" :key="index">
<div class="img">
<img :src="imgurl + item.contentImg" alt="">
</div>
<div class="tt">{{ item.contentTitle }}</div>
<div class="desc">
<div class="desc" v-html="item.summary"></div>
</div>
</div>
</div>
<!-- 实践项目 -->
<div v-if="item.id == '1813832045458231296'" class="list">
<div class="item" v-for="(item, index) in teachingAchievements3" :key="index">
<div class="img">
<img :src="imgurl + item.contentImg" alt="">
</div>
<div class="tt">{{ item.contentTitle }}</div>
<div class="desc">
<div class="desc" v-html="item.summary"></div>
</div>
</div>
</div>
<!-- 通用 -->
<div class="neirong" v-html="pageContextList[index]" v-else></div>
</div>
@ -131,6 +160,8 @@ export default {
return {
imgurl: process.env.VUE_APP_BASE_API,
teachingAchievements: [],
teachingAchievements2: [],
teachingAchievements3: [],
pageContextList: [],
input4: "",
show_search: true,
@ -190,11 +221,21 @@ export default {
this.pageContextList.push(context);
if(cloumnItem.id == "1813831828977618944"){
if (cloumnItem.id == "1813831828977618944") {
cloumnItem.children.list.forEach(element => {
this.teachingAchievements.push(element);
});
}
if (cloumnItem.id == "1813831932748894208") {
cloumnItem.children.list.forEach(element => {
this.teachingAchievements2.push(element);
});
}
if (cloumnItem.id == "1813832045458231296") {
cloumnItem.children.list.forEach(element => {
this.teachingAchievements3.push(element);
});
}
// cloumnItem.categoryName
});
});
@ -826,6 +867,7 @@ export default {
line-height: 18px;
}
.list {
width: 80%;
margin: 30px auto;