This commit is contained in:
2025-11-27 21:28:01 +08:00
parent b7d730997c
commit 0ff9a69a80
4 changed files with 9 additions and 5 deletions

View File

@@ -19,7 +19,7 @@ const MyselfPageContent: React.FC = () => {
const instance = (Taro as any).getCurrentInstance();
const user_id = instance.router?.params?.userid || "";
const is_current_user = !user_id;
// const is_current_user = !user_id;
const user_info = useUserInfo();
const [game_records, set_game_records] = useState<TennisMatch[]>([]);
@@ -146,7 +146,7 @@ const MyselfPageContent: React.FC = () => {
const handleScroll = (event: any) => {
const scrollData = event.detail;
setCollapseProfile(scrollData.scrollTop > 10);
setCollapseProfile(scrollData.scrollTop > 1);
};
return (
@@ -157,9 +157,9 @@ const MyselfPageContent: React.FC = () => {
>
<View className={styles.userInfoSection}>
<UserInfoCard
editable={is_current_user}
editable={true}
user_info={user_info}
is_current_user={is_current_user}
is_current_user={true}
is_following={is_following}
collapseProfile={collapseProfile}
on_follow={handle_follow}