From 8506989c7951cc42adfe0b0fda5839d1df2a3006 Mon Sep 17 00:00:00 2001 From: xvv Date: Fri, 2 Aug 2024 16:14:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E8=A1=A5=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/home.vue | 44 ++-- ruoyi-ui/src/views/officialWebsite/about.vue | 2 +- .../src/views/officialWebsite/competition.vue | 30 ++- ruoyi-ui/src/views/officialWebsite/list.vue | 215 +++++++++++------- .../src/views/officialWebsite/practice.vue | 2 +- .../src/views/officialWebsite/teaching.vue | 2 +- 6 files changed, 178 insertions(+), 117 deletions(-) diff --git a/ruoyi-ui/src/views/home.vue b/ruoyi-ui/src/views/home.vue index 7510ad6..fdea5c6 100644 --- a/ruoyi-ui/src/views/home.vue +++ b/ruoyi-ui/src/views/home.vue @@ -2,34 +2,7 @@
- - - - - - - - - - - - - - - - - - - - - - - - - - - - +
@@ -87,8 +60,8 @@
-
- +
+
@@ -162,7 +135,7 @@
-
+
@@ -310,6 +283,13 @@ export default { } }, methods: { + golist(id){ + console.log('跳转',id) + this.$router.push({ + name: 'list', + query:{ id: id } + }); + }, tabClick(item){ if(item.label=="联系我们"){ this.$router.push('/contact'); @@ -334,10 +314,12 @@ export default { getTab().then(response => { if (response.code == 200) { this.tablist = response.data; + console.log('所有id',this.tablist) this.categoryQuery.categoryId = this.tablist[0].id getbanner(this.categoryQuery).then(res => { if (res.code == 200) { this.indexList = res.data + console.log('indexList',this.indexList) res.data[3].children.list.forEach(item => { this.bannerlist.push(process.env.VUE_APP_BASE_API + item.imageUrl[0]) }) diff --git a/ruoyi-ui/src/views/officialWebsite/about.vue b/ruoyi-ui/src/views/officialWebsite/about.vue index 1b07c5f..c4698bb 100644 --- a/ruoyi-ui/src/views/officialWebsite/about.vue +++ b/ruoyi-ui/src/views/officialWebsite/about.vue @@ -120,7 +120,7 @@ export default { // { name: '组织机构' }, // { name: '现任领导' }, ], - currentActive: 2, + currentActive: 0, isMounted: false, orgList: "", postList: [], diff --git a/ruoyi-ui/src/views/officialWebsite/competition.vue b/ruoyi-ui/src/views/officialWebsite/competition.vue index 2c7e043..a519683 100644 --- a/ruoyi-ui/src/views/officialWebsite/competition.vue +++ b/ruoyi-ui/src/views/officialWebsite/competition.vue @@ -117,7 +117,13 @@
-
+
+
+
+ +
{{item.contentTitle}}
+
+
- - +
+
+
{{item.contentTitle || '暂无标题' }}
+
{{item.createTime || 0.00 }}
+
+
+
+ + +
-