diff --git a/ruoyi-ui/src/views/officialWebsite/practice.vue b/ruoyi-ui/src/views/officialWebsite/practice.vue index 4ecc5f7..9426237 100644 --- a/ruoyi-ui/src/views/officialWebsite/practice.vue +++ b/ruoyi-ui/src/views/officialWebsite/practice.vue @@ -40,35 +40,41 @@ -
+
- +
{{ item.contentTitle }}
-
+ {{ item.summary }}
- +
{{ item.publishDate }}
- -
+ +
{{ item.contentTitle }}
-
-
-
+
+
+ + +
+
+
@@ -100,6 +106,7 @@ --> + - +
@@ -96,7 +96,7 @@ export default { imgurl: process.env.VUE_APP_BASE_API, pageContextList: [], teachingAchievements: [], - detailsContent:[], + detailsContent:"", teachingTeam: [], nav: [ // { name: '教学团队' }, diff --git a/ruoyi-ui/src/views/officialWebsite/xufang.vue b/ruoyi-ui/src/views/officialWebsite/xufang.vue index 87dc983..5f7d5ff 100644 --- a/ruoyi-ui/src/views/officialWebsite/xufang.vue +++ b/ruoyi-ui/src/views/officialWebsite/xufang.vue @@ -13,25 +13,71 @@

首页 虚拟专业频道

- + --> -
- + + + +
+ +
+ + + + +
+ +
+ +
+
+
+ +
+
{{ item.contentTitle }}
+
+ {{ item.summary }} +
+
{{ item.publishDate }}
+
+
- - + +
+
+ + +
+
@@ -57,6 +103,11 @@ export default { }, data() { return { + isShowDetails:false, + detailsContent:"", + imgurl: process.env.VUE_APP_BASE_API, + topSwiperData: {}, + teachingAchievements: [], pageContextList: [], swiperOptions: { navigation: { @@ -93,7 +144,7 @@ export default { } }, - mounted() { + created() { // 页面加载完毕调用 this.initPageData(); }, @@ -102,6 +153,11 @@ export default { }, methods: { + showDetails(value){ + debugger; + this.isShowDetails = true; + this.detailsContent = value.contentDetail; + }, // 触发导航 getCurrentActive(value) { if (this.currentActive == value) { @@ -126,6 +182,18 @@ export default { }); this.pageContextList.push(context); + // 虚拟专业频道 + if (cloumnItem.id == "1818243334464999424") { + if (cloumnItem.children) { + //取首条数据作为顶部块展示 + // this.topSwiperData = cloumnItem.children.list[0]; + //除首条以外,用作下部块展示 + for (let i = 0; i < cloumnItem.children.list.length; i++) { + + this.teachingAchievements.push(cloumnItem.children.list[i]); + }; + } + } // cloumnItem.categoryName }); @@ -149,10 +217,12 @@ export default { width: 240px; border-radius: 50px; } -.page-box{ + +.page-box { width: 82%; margin: 10px auto; } + /* 圆形分页按钮样式 */ ::v-deep .el-pagination .el-pager li:not(.disabled) { border-radius: 100%; @@ -622,4 +692,6 @@ export default { line-height: 18px; } + +