From b8f7311e67f6dc6e8f0abd0da90d8e04c5e7586e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chhk=E2=80=9D?= <“hhk@mail.com”> Date: Wed, 31 Jul 2024 11:56:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E7=A9=BF=E9=80=8F=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/officialWebsite/practice.vue | 109 ++++++++++++++++-- ruoyi-ui/src/views/officialWebsite/team.vue | 4 +- ruoyi-ui/src/views/officialWebsite/xufang.vue | 88 ++++++++++++-- 3 files changed, 179 insertions(+), 22 deletions(-) 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; } + +