优化
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
|
|
||||||
// MyselfPageContent 组件使用的类名
|
// MyselfPageContent 组件使用的类名
|
||||||
.myselfPageContentMain {
|
.myselfPageContentMain {
|
||||||
|
min-height: calc(100vh + 5px);
|
||||||
animation: backgroundGradient 0s ease-in-out forwards;
|
animation: backgroundGradient 0s ease-in-out forwards;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ const MyselfPageContent: React.FC = () => {
|
|||||||
|
|
||||||
const instance = (Taro as any).getCurrentInstance();
|
const instance = (Taro as any).getCurrentInstance();
|
||||||
const user_id = instance.router?.params?.userid || "";
|
const user_id = instance.router?.params?.userid || "";
|
||||||
const is_current_user = !user_id;
|
// const is_current_user = !user_id;
|
||||||
const user_info = useUserInfo();
|
const user_info = useUserInfo();
|
||||||
|
|
||||||
const [game_records, set_game_records] = useState<TennisMatch[]>([]);
|
const [game_records, set_game_records] = useState<TennisMatch[]>([]);
|
||||||
@@ -146,7 +146,7 @@ const MyselfPageContent: React.FC = () => {
|
|||||||
|
|
||||||
const handleScroll = (event: any) => {
|
const handleScroll = (event: any) => {
|
||||||
const scrollData = event.detail;
|
const scrollData = event.detail;
|
||||||
setCollapseProfile(scrollData.scrollTop > 10);
|
setCollapseProfile(scrollData.scrollTop > 1);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
@@ -157,9 +157,9 @@ const MyselfPageContent: React.FC = () => {
|
|||||||
>
|
>
|
||||||
<View className={styles.userInfoSection}>
|
<View className={styles.userInfoSection}>
|
||||||
<UserInfoCard
|
<UserInfoCard
|
||||||
editable={is_current_user}
|
editable={true}
|
||||||
user_info={user_info}
|
user_info={user_info}
|
||||||
is_current_user={is_current_user}
|
is_current_user={true}
|
||||||
is_following={is_following}
|
is_following={is_following}
|
||||||
collapseProfile={collapseProfile}
|
collapseProfile={collapseProfile}
|
||||||
on_follow={handle_follow}
|
on_follow={handle_follow}
|
||||||
|
|||||||
@@ -68,6 +68,7 @@
|
|||||||
|
|
||||||
// 主要内容区域
|
// 主要内容区域
|
||||||
.other_main_content {
|
.other_main_content {
|
||||||
|
min-height: calc(100vh + 5px);
|
||||||
position: relative;
|
position: relative;
|
||||||
z-index: 5;
|
z-index: 5;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|||||||
@@ -215,7 +215,7 @@ const OtherUserPage: React.FC = () => {
|
|||||||
|
|
||||||
const handleScroll = (event: any) => {
|
const handleScroll = (event: any) => {
|
||||||
const scrollData = event.detail;
|
const scrollData = event.detail;
|
||||||
setCollapseProfile(scrollData.scrollTop > 10);
|
setCollapseProfile(scrollData.scrollTop > 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 处理球局详情
|
// 处理球局详情
|
||||||
@@ -295,6 +295,7 @@ const OtherUserPage: React.FC = () => {
|
|||||||
loadMoreMatches={() => { }}
|
loadMoreMatches={() => { }}
|
||||||
collapse={true}
|
collapse={true}
|
||||||
style={{ paddingBottom: 0, overflow: "hidden" }}
|
style={{ paddingBottom: 0, overflow: "hidden" }}
|
||||||
|
listLoadErrorHeight="320px"
|
||||||
defaultShowNum={3}
|
defaultShowNum={3}
|
||||||
/>
|
/>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
@@ -335,6 +336,7 @@ const OtherUserPage: React.FC = () => {
|
|||||||
loadMoreMatches={() => { }}
|
loadMoreMatches={() => { }}
|
||||||
collapse={true}
|
collapse={true}
|
||||||
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
||||||
|
listLoadErrorHeight="320px"
|
||||||
defaultShowNum={3}
|
defaultShowNum={3}
|
||||||
/>
|
/>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|||||||
Reference in New Issue
Block a user