From e6018296495568e4437e0c411b8749ddaaa08981 Mon Sep 17 00:00:00 2001 From: wangting <2940883238@qq.com> Date: Thu, 22 Aug 2024 16:51:59 +0800 Subject: [PATCH] xg --- src/components/footerComp.vue | 6 ++--- src/views/pages/home.vue | 44 ++++++++++++++++++++++------------- src/views/pages/notice.vue | 8 ++++++- src/views/pages/relic.vue | 4 ++++ 4 files changed, 42 insertions(+), 20 deletions(-) diff --git a/src/components/footerComp.vue b/src/components/footerComp.vue index 1c8783d..a4a8e65 100644 --- a/src/components/footerComp.vue +++ b/src/components/footerComp.vue @@ -93,7 +93,7 @@ footer { height: 60px; position: absolute; top: 33%; - left: 33%; + left: 35%; } .middle-msgs { @@ -106,7 +106,7 @@ footer { background-repeat: no-repeat; position: absolute; top: 30%; - left: 38%; + left: 40%; } .middle-msgs .footer-img{ width: 7rem; @@ -232,7 +232,7 @@ footer { background-repeat: no-repeat; position: absolute; top: 20%; - left: 35%; + left: 39%; } .middle-msgs div span { diff --git a/src/views/pages/home.vue b/src/views/pages/home.vue index 7bde80a..70805f3 100644 --- a/src/views/pages/home.vue +++ b/src/views/pages/home.vue @@ -22,10 +22,9 @@
-
+
- {{item.title.slice(0,14)}}... - {{item.title}} + {{item.title}}
{{item.createTime.split(' ')[0]}}
@@ -544,14 +543,14 @@ this.$http.post(`/door/gwArticleList?categoryId=6`).then(res=>{ this.explainList = res.data.rows.slice(0,6) this.explainFirst = this.explainList.find(ele=>{ - return ele.coverImage!='' + return ele.coverImage&&ele.coverImage!='' }) }) // 陈展 this.$http.post(`/door/gwArticleList?categoryId=5`).then(res=>{ this.showList = res.data.rows.slice(0,6) this.showFirst = this.showList.find(ele=>{ - return ele.coverImage!='' + return ele.coverImage&&ele.coverImage!='' }) }) // 小推车公益 @@ -640,6 +639,7 @@ height: .4rem; display: flex; align-items: center; + img{ width: .4125rem; } @@ -663,18 +663,30 @@ justify-content: space-between; border-bottom: 2px dashed #cecece; cursor: pointer; - .circle{ - display: inline-block; - width: .15rem; - height: .15rem; - border-radius: 50%; - border: 1px solid #961824; - } - .name{ - font-size: .25rem; - color: #6e6d6d; - margin-left: .125rem; + .item-left{ + width: 80%; + display: flex; + align-items: center; + .circle{ + width: 10%; + display: inline-block; + width: .15rem; + height: .15rem; + border-radius: 50%; + border: 1px solid #961824; + } + .name{ + display: block; + width: 90%; + font-size: .25rem; + color: #6e6d6d; + margin-left: .125rem; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } } + .time{ font-size: .2rem; color: #505050; diff --git a/src/views/pages/notice.vue b/src/views/pages/notice.vue index 4ada84c..8e11634 100644 --- a/src/views/pages/notice.vue +++ b/src/views/pages/notice.vue @@ -213,7 +213,13 @@ font-size: .2rem; color: #666; } - } + } + .big-page{ + display: block; + } + .small-page{ + display: none; + } } } } diff --git a/src/views/pages/relic.vue b/src/views/pages/relic.vue index bce9992..f907c92 100644 --- a/src/views/pages/relic.vue +++ b/src/views/pages/relic.vue @@ -249,6 +249,9 @@ overflow: hidden; text-overflow: ellipsis; } + .small-time{ + display: none; + } } } @@ -373,6 +376,7 @@ display: none; } .small-time{ + display: block; font-size: .3rem; } }