From 3674666b1d50346ef0d7583574c63fda6fb2d238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Chhk=E2=80=9D?= <“hhk@mail.com”> Date: Tue, 30 Jul 2024 18:10:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/officialWebsite/cases.vue | 81 +++++++++----- .../src/views/officialWebsite/practice.vue | 103 +++++++++++++++++- 2 files changed, 153 insertions(+), 31 deletions(-) diff --git a/ruoyi-ui/src/views/officialWebsite/cases.vue b/ruoyi-ui/src/views/officialWebsite/cases.vue index b9e9b2c..838f5e7 100644 --- a/ruoyi-ui/src/views/officialWebsite/cases.vue +++ b/ruoyi-ui/src/views/officialWebsite/cases.vue @@ -13,27 +13,47 @@

首页 合作企业

- + -->
-
+ + + + +
+
+ +
+
{{ item.contentTitle }}
+ +
@@ -65,6 +85,8 @@ export default { }, data() { return { + imgurl: process.env.VUE_APP_BASE_API, + teachingAchievements: [], pageContextList: [], nav: [ // { name: '教学团队' }, @@ -75,7 +97,7 @@ export default { } }, - mounted() { + created() { // 页面加载完毕调用 this.initPageData(); }, @@ -91,29 +113,26 @@ export default { } this.currentActive = value }, + initPageData() { - let routeParam = { - "categoryId": this.$route.query.id, - "pageNum": 1, - "pageSize": 10 - } - getPageColumn(routeParam).then(response => { - response.data.forEach(cloumnItem => { - this.nav.push(cloumnItem); +let routeParam = { + "categoryId": this.$route.query.id, + "pageNum": 1, + "pageSize": 10 +} +getPageColumn(routeParam).then(response => { + response.data.forEach(cloumnItem => { + this.nav.push(cloumnItem); - let context = ""; - cloumnItem.children.list.forEach(element => { - context += element.contentDetail; - }); - - this.pageContextList.push(context); - - // cloumnItem.categoryName - }); + cloumnItem.children.list.forEach(element => { + this.teachingAchievements.push(element); }); + // cloumnItem.categoryName + }); +}); - }, +}, } } @@ -192,10 +211,12 @@ export default { /* 禁止背景图片重复 */ position: relative; } -.page-box{ + +.page-box { width: 82%; margin: 10px auto; } + .tab-box { width: 100%; box-sizing: border-box; diff --git a/ruoyi-ui/src/views/officialWebsite/practice.vue b/ruoyi-ui/src/views/officialWebsite/practice.vue index acf16d7..4dbb461 100644 --- a/ruoyi-ui/src/views/officialWebsite/practice.vue +++ b/ruoyi-ui/src/views/officialWebsite/practice.vue @@ -25,9 +25,26 @@
-
+ +
+
+
+ +
+
{{ item.contentTitle }}
+
+
+
+ +
+
+ +
+ + +