From c8063fa38f7e6cf4e37448f2325aa9635b510b50 Mon Sep 17 00:00:00 2001 From: wuhans-first-deep-love <2966551326@qq.com> Date: Thu, 29 May 2025 21:12:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=B8=96=E5=AD=90=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E7=95=8C=E9=9D=A2=EF=BC=8C=E6=B7=BB=E5=8A=A0=E4=B8=AA?= =?UTF-8?q?=E4=BA=BA=E4=B8=BB=E9=A1=B5=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Front/vue-unilife/package.json | 2 +- Front/vue-unilife/pnpm-lock.yaml | 2 +- Front/vue-unilife/src/assets/style/style.css | 63 ++ Front/vue-unilife/src/components/Personal.vue | 6 +- Front/vue-unilife/src/routers/routers.ts | 22 +- Front/vue-unilife/src/utils/post.ts | 149 ++++ Front/vue-unilife/src/views/Home.vue | 292 +++++++- .../vue-unilife/src/views/PostManagement.vue | 636 ++++++++++++++++++ Front/vue-unilife/src/views/post.ts | 111 +++ Front/vue-unilife/src/views/usePost.ts | 138 ++++ 10 files changed, 1403 insertions(+), 18 deletions(-) create mode 100644 Front/vue-unilife/src/utils/post.ts create mode 100644 Front/vue-unilife/src/views/PostManagement.vue create mode 100644 Front/vue-unilife/src/views/post.ts create mode 100644 Front/vue-unilife/src/views/usePost.ts diff --git a/Front/vue-unilife/package.json b/Front/vue-unilife/package.json index 1b2f9ef..ca8012d 100644 --- a/Front/vue-unilife/package.json +++ b/Front/vue-unilife/package.json @@ -19,7 +19,7 @@ "marked-highlight": "^2.2.1", "vee-validate": "^4.15.0", "vue": "^3.5.13", - "vue-router": "^4.5.0", + "vue-router": "4", "yup": "^1.6.1" }, "devDependencies": { diff --git a/Front/vue-unilife/pnpm-lock.yaml b/Front/vue-unilife/pnpm-lock.yaml index b559b18..9dda154 100644 --- a/Front/vue-unilife/pnpm-lock.yaml +++ b/Front/vue-unilife/pnpm-lock.yaml @@ -39,7 +39,7 @@ importers: specifier: ^3.5.13 version: 3.5.13(typescript@5.7.3) vue-router: - specifier: ^4.5.0 + specifier: '4' version: 4.5.0(vue@3.5.13(typescript@5.7.3)) yup: specifier: ^1.6.1 diff --git a/Front/vue-unilife/src/assets/style/style.css b/Front/vue-unilife/src/assets/style/style.css index 399523b..2af3219 100644 --- a/Front/vue-unilife/src/assets/style/style.css +++ b/Front/vue-unilife/src/assets/style/style.css @@ -70,6 +70,53 @@ button { transform: translateY(-2px); } +/* ====================== + 圆形按钮扩展 (追加在原有.btn样式之后) + ====================== */ +.btn-circle { + /* 复用现有按钮基础样式 */ + @apply btn btn-primary; /* 如果使用Tailwind这类工具 */ + + /* 新增圆形特性 */ + --size: 56px; + width: var(--size); + height: var(--size); + padding: 0; + border-radius: 50%; + display: inline-flex; + justify-content: center; + align-items: center; + + /* 定位系统(新增) */ + position: fixed; + right: 30px; + bottom: 30px; + margin: 0 !important; /* 覆盖原有margin */ + + /* 层级管理 */ + z-index: 1000; + + /* 复用现有悬停动画 */ + /* 原有.btn-primary:hover已包含效果 */ +} + +/* 图标微调(新增) */ +.btn-circle .btn-icon { + font-size: 1.8rem; + line-height: 1; + margin-top: -3px; /* 视觉居中补偿 */ +} + +/* 响应式调整(新增) */ +@media (max-width: 768px) { + .btn-circle { + --size: 50px; + right: 15px; + bottom: 15px; + } +} + + /*信息展示在card上*/ .card { background-color: #fff; @@ -130,3 +177,19 @@ button { background-color: #f9f9f9; } } + + +/* 帖子管理容器样式 */ +.post-management { + padding: 30px; /* 比原来的20px更大 */ + width: 100%; + max-width: 1800px; /* 比建议的1200px更宽 */ + margin: 0 auto; + min-height: 80vh; + box-sizing: border-box; + + /* 添加一些额外的样式让内容更突出 */ + background-color: var(--light-purple); + border-radius: 20px; + box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); +} \ No newline at end of file diff --git a/Front/vue-unilife/src/components/Personal.vue b/Front/vue-unilife/src/components/Personal.vue index 7c76b2d..e1dea39 100644 --- a/Front/vue-unilife/src/components/Personal.vue +++ b/Front/vue-unilife/src/components/Personal.vue @@ -59,14 +59,14 @@ export default defineComponent({
还没做 - 期望完成: - 查看已发帖 - 查看已发帖的情况 - 编辑帖子 -
+