From d3348318766a6b752e98a0d7c8352ad78abc3918 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=88=90?= Date: Sun, 5 Oct 2025 11:00:39 +0800 Subject: [PATCH] 1 --- src/home_pages/index.scss | 0 src/home_pages/index.tsx | 2 +- src/other_pages/message/index.scss | 57 ++++++++++++++++-------------- src/services/loginService.ts | 2 ++ 4 files changed, 34 insertions(+), 27 deletions(-) create mode 100644 src/home_pages/index.scss diff --git a/src/home_pages/index.scss b/src/home_pages/index.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/home_pages/index.tsx b/src/home_pages/index.tsx index dfdc15e..b6ab81d 100644 --- a/src/home_pages/index.tsx +++ b/src/home_pages/index.tsx @@ -3,7 +3,7 @@ import { View, } from '@tarojs/components'; import { check_login_status } from '@/services/loginService'; import { useUserActions } from '@/store/userStore'; import Taro from '@tarojs/taro'; - +import "./index.scss"; const HomePage: React.FC = () => { const { fetchUserInfo } = useUserActions(); diff --git a/src/other_pages/message/index.scss b/src/other_pages/message/index.scss index 026a6a3..ca3eacb 100644 --- a/src/other_pages/message/index.scss +++ b/src/other_pages/message/index.scss @@ -10,7 +10,6 @@ // 顶部导航栏 .navbar { - height: 56px; background: #ffffff; position: sticky; top: 0; @@ -50,34 +49,20 @@ .category-tabs { display: flex; align-items: stretch; + justify-content: space-between; gap: 20px; padding: 6px 24px; background: #ffffff; + box-sizing: border-box; + height: 124px; .tab-item { display: flex; flex-direction: column; justify-content: center; align-items: center; - } - } - // 消息列表 - .message-list { - flex: 1; - overflow: hidden; - box-sizing: border-box; - // margin-bottom:100px; - background-color: none !important; + width: 161px; - .message-list-content { - display: flex; - flex-direction: column; - padding: 12px 12px 112px; - gap: 8px; - padding: 12px 15px; - flex: 1; - cursor: pointer; - transition: all 0.2s; .tab-icon { width: 56px; @@ -109,6 +94,27 @@ } } + // 消息列表 + // .message-list { + // flex: 1; + // overflow: hidden; + // box-sizing: border-box; + // // margin-bottom:100px; + // background-color: none !important; + + // .message-list-content { + // display: flex; + // flex-direction: column; + // padding: 12px 12px 112px; + // gap: 8px; + // padding: 12px 15px; + // flex: 1; + // cursor: pointer; + // transition: all 0.2s; + + // } + // } + // 消息滚动区域 .message-scroll { flex: 1; @@ -206,6 +212,7 @@ .action-arrow { position: relative; + .img { position: absolute; left: -16px; @@ -247,12 +254,10 @@ width: 60px; height: 60px; border-radius: 50%; - background: radial-gradient( - circle at 27% 8%, - rgba(189, 255, 74, 1) 17%, - rgba(149, 242, 62, 1) 54%, - rgba(50, 216, 56, 1) 100% - ); + background: radial-gradient(circle at 27% 8%, + rgba(189, 255, 74, 1) 17%, + rgba(149, 242, 62, 1) 54%, + rgba(50, 216, 56, 1) 100%); border: 2px solid rgba(0, 0, 0, 0.06); box-shadow: 0px 4px 48px 0px rgba(0, 0, 0, 0.08); display: flex; @@ -300,4 +305,4 @@ } } } -} +} \ No newline at end of file diff --git a/src/services/loginService.ts b/src/services/loginService.ts index 5236b00..60e3a72 100644 --- a/src/services/loginService.ts +++ b/src/services/loginService.ts @@ -383,6 +383,8 @@ export const fetchUserProfile = async (): Promise< > => { try { const response = await httpService.post("user/detail"); + + debugger; return response; } catch (error) { console.error("获取用户信息失败:", error);