他人页

This commit is contained in:
2025-09-15 21:13:13 +08:00
parent 7a0bc71f9f
commit f4c7840130
6 changed files with 95 additions and 49 deletions

View File

@@ -8,7 +8,7 @@ import { UserService } from "@/services/userService";
// 用户信息接口
export interface UserInfo {
id: string;
id: string | number;
nickname: string;
avatar: string;
join_date: string;
@@ -169,20 +169,20 @@ export const UserInfoCard: React.FC<UserInfoCardProps> = ({
? "@/static/userInfo/following.svg"
: "@/static/userInfo/unfollow.svg")}
/>
<Text className="button_text">
<Text className={`button_text ${is_following ? "following" : ""}`}>
{is_following ? "已关注" : "关注"}
</Text>
</Button>
)}
{/* 只有非当前用户才显示消息按钮 */}
{!is_current_user && on_message && (
{/* {!is_current_user && on_message && (
<Button className="message_button" onClick={on_message}>
<Image
className="button_icon"
src={require("@/static/userInfo/chat.svg")}
/>
</Button>
)}
)} */}
{/* 只有当前用户才显示分享按钮 */}
{is_current_user && on_share && (