From 6a365be470931c3abad50830951cc606dabe8bd0 Mon Sep 17 00:00:00 2001 From: Ultrame <1019265060@qq.com> Date: Sun, 16 Nov 2025 13:02:00 +0800 Subject: [PATCH] =?UTF-8?q?UI=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/CommonPopup/index.module.scss | 2 +- src/components/UserInfo/index.scss | 2 +- src/components/UserInfo/index.tsx | 17 ++++++++--------- src/nutui-theme.scss | 6 +++++- src/static/userInfo/info_edit.svg | 4 ++-- src/user_pages/downloadBillRecords/index.scss | 2 +- src/user_pages/wallet/index.scss | 2 +- 7 files changed, 19 insertions(+), 16 deletions(-) diff --git a/src/components/CommonPopup/index.module.scss b/src/components/CommonPopup/index.module.scss index 36570dd..0d0d84a 100644 --- a/src/components/CommonPopup/index.module.scss +++ b/src/components/CommonPopup/index.module.scss @@ -49,7 +49,7 @@ align-items: center; justify-content: space-between; padding: 16px 20px; - border-bottom: 1px solid rgba(0, 0, 0, 0.06); + // border-bottom: 1px solid rgba(0, 0, 0, 0.06); .common-popup__title { font-family: "PingFang SC"; diff --git a/src/components/UserInfo/index.scss b/src/components/UserInfo/index.scss index 11c94d2..39d0966 100644 --- a/src/components/UserInfo/index.scss +++ b/src/components/UserInfo/index.scss @@ -122,7 +122,7 @@ align-items: center; gap: 12px; border: 1px solid rgba(0, 0, 0, 0.2); - border-radius: 20px; + border-radius: 999px; .follow_button { display: flex; diff --git a/src/components/UserInfo/index.tsx b/src/components/UserInfo/index.tsx index 3fce108..ff8b0af 100644 --- a/src/components/UserInfo/index.tsx +++ b/src/components/UserInfo/index.tsx @@ -72,10 +72,10 @@ const UserInfoCardComponent: React.FC = ({ onTab, }) => { const { updateUserInfo } = useUserActions(); - + // 使用 useRef 记录上一次的 user_info,只在真正变化时打印 const prevUserInfoRef = useRef>(); - + useEffect(() => { // 只在 user_info 真正变化时打印(通过 JSON 序列化比较) const prevStr = JSON.stringify(prevUserInfoRef.current); @@ -85,7 +85,7 @@ const UserInfoCardComponent: React.FC = ({ prevUserInfoRef.current = user_info; } }, [user_info]); - + // 编辑个人简介弹窗状态 const [edit_modal_visible, setEditModalVisible] = useState(false); const [editing_field, setEditingField] = useState(""); @@ -507,13 +507,13 @@ const UserInfoCardComponent: React.FC = ({ ) : null} - + handle_open_edit_modal("personal_profile")}> {user_info.personal_profile ? ( {user_info.personal_profile} ) : is_current_user ? ( handle_open_edit_modal("personal_profile")} > = ({ {hosted_text} on_tab_change("participated")} > {participated_text} diff --git a/src/nutui-theme.scss b/src/nutui-theme.scss index 36189c7..9ff2401 100644 --- a/src/nutui-theme.scss +++ b/src/nutui-theme.scss @@ -225,4 +225,8 @@ $nut-primary-color-end: #000000 !important; color: #ffffff !important; background: #000000 !important; border: 1px solid #000000 !important; -} \ No newline at end of file +} + +.nut-popup-bottom.nut-popup-round { + border-radius: 0 !important; +} \ No newline at end of file diff --git a/src/static/userInfo/info_edit.svg b/src/static/userInfo/info_edit.svg index 33b0741..575261f 100644 --- a/src/static/userInfo/info_edit.svg +++ b/src/static/userInfo/info_edit.svg @@ -1,4 +1,4 @@ - - + + diff --git a/src/user_pages/downloadBillRecords/index.scss b/src/user_pages/downloadBillRecords/index.scss index a1feb35..451d2be 100644 --- a/src/user_pages/downloadBillRecords/index.scss +++ b/src/user_pages/downloadBillRecords/index.scss @@ -110,7 +110,7 @@ bottom: 0; left: 0; width: 100vw; - background-color: #ffffff; + background-color: #fafafa; padding: 20px 0; } } diff --git a/src/user_pages/wallet/index.scss b/src/user_pages/wallet/index.scss index 85c100a..88b9deb 100644 --- a/src/user_pages/wallet/index.scss +++ b/src/user_pages/wallet/index.scss @@ -3,7 +3,7 @@ .wallet_page { height: 100vh; overflow-y: auto; - background-color: #f5f5f5; + background-color: #fafafa; padding-bottom: 5px; box-sizing: border-box;