{{ content }}
From b439d7d5e15005e6648c1da5dc4694bce6cd1cb9 Mon Sep 17 00:00:00 2001 From: QMZ <1164250597@qq.com> Date: Mon, 16 Dec 2024 12:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A4=BE=E5=8C=BA=E5=9F=BA=E6=9C=AC=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/css/community/community.css | 33 +- .../community}/CommentInput.vue | 0 .../community}/PostCard.vue | 163 +++++- src/views/community/Postform.vue | 46 +- src/views/community/trends.vue | 473 ++++++++++-------- 5 files changed, 463 insertions(+), 252 deletions(-) rename src/{components => views/community}/CommentInput.vue (100%) rename src/{components => views/community}/PostCard.vue (62%) diff --git a/src/assets/css/community/community.css b/src/assets/css/community/community.css index 4249fe2c..9cb0a82d 100644 --- a/src/assets/css/community/community.css +++ b/src/assets/css/community/community.css @@ -113,10 +113,10 @@ overflow-y: auto; /* 允许垂直滚动 */ } /* 隐藏滚动条 */ -.middle::-webkit-scrollbar { - width: 0px; /* 隐藏水平滚动条 */ - height: 0px; /* 隐藏垂直滚动条 */ -} +/* .middle::-webkit-scrollbar { + width: 0px; + height: 0px; +} */ .follows { cursor: pointer; transition: background-color 0.3s ease; @@ -134,6 +134,31 @@ background-color: #d0d0d0; cursor: pointer; } + + +.refresh-btn { + background-color: transparent; + border: none; + cursor: pointer; + outline: none; + padding: 0; + position: relative; + transition: transform 0.3s ease-in-out; +} + +.refresh-btn .refresh-icon { + fill: #FE4E96; /* 设置箭头颜色 */ + transition: transform 0.3s ease-in-out; +} + +/* 点击按钮时的动画效果 */ +.refresh-btn.clicked .refresh-icon { + transform: rotate(360deg); /* 旋转动画 */ +} + +.refresh-btn.clicked { + transform: scale(0.9); /* 按钮缩小 */ +} .post-list { } diff --git a/src/components/CommentInput.vue b/src/views/community/CommentInput.vue similarity index 100% rename from src/components/CommentInput.vue rename to src/views/community/CommentInput.vue diff --git a/src/components/PostCard.vue b/src/views/community/PostCard.vue similarity index 62% rename from src/components/PostCard.vue rename to src/views/community/PostCard.vue index 7ec46703..f9fecb2d 100644 --- a/src/components/PostCard.vue +++ b/src/views/community/PostCard.vue @@ -16,17 +16,17 @@ {{ timestamp }} - - - + + +
{{ content }}
{{ comment.username }}: {{ comment.text }}
+{{ comment.userid}}: {{ comment.content }}