优化编辑页placeholder样式、没有往期球局时,隐藏往期球局

This commit is contained in:
2025-12-04 16:46:50 +08:00
parent 2f9aed61a6
commit 0fb933e864
4 changed files with 75 additions and 62 deletions

View File

@@ -247,27 +247,31 @@ const MyselfPageContent: React.FC = () => {
</ScrollView>
</View>
<View className={styles.endedGameText}></View>
<View className={styles.gameListSection}>
<ScrollView scrollY>
<ListContainer
data={ended_game_records}
recommendList={[]}
loading={loading}
error={null}
errorImg="ICON_LIST_EMPTY_CARD"
isShowNoData={ended_game_records.length === 0}
loadMoreMatches={() => {}}
collapse={true}
style={{ paddingBottom: "90px", overflow: "hidden" }}
listLoadErrorWrapperHeight="fit-content"
listLoadErrorWidth="320px"
listLoadErrorHeight="152px"
listLoadErrorScale="1.2"
defaultShowNum={3}
/>
</ScrollView>
</View>
{ended_game_records.length ? (
<>
<View className={styles.endedGameText}></View>
<View className={styles.gameListSection}>
<ScrollView scrollY>
<ListContainer
data={ended_game_records}
recommendList={[]}
loading={loading}
error={null}
errorImg="ICON_LIST_EMPTY_CARD"
isShowNoData={ended_game_records.length === 0}
loadMoreMatches={() => {}}
collapse={true}
style={{ paddingBottom: "90px", overflow: "hidden" }}
listLoadErrorWrapperHeight="fit-content"
listLoadErrorWidth="320px"
listLoadErrorHeight="152px"
listLoadErrorScale="1.2"
defaultShowNum={3}
/>
</ScrollView>
</View>
</>
) : null}
</View>
</ScrollView>
);

View File

@@ -237,6 +237,7 @@
&::placeholder {
color: rgba(0, 0, 0, 0.4);
font-weight: unset;
}
}

View File

@@ -15,7 +15,11 @@ import {
useNicknameChangeStatus,
} from "@/store/userStore";
import { UserInfoType } from "@/services/userService";
import { useCities, useProfessions, useNtrpLevels } from "@/store/pickerOptionsStore";
import {
useCities,
useProfessions,
useNtrpLevels,
} from "@/store/pickerOptionsStore";
import { handleCustomerService } from "@/services/userService";
import evaluateService from "@/services/evaluateService";

View File

@@ -335,48 +335,52 @@ const OtherUserPage: React.FC = () => {
</View>
{/* 往期球局 */}
<View className="ended_game_text"></View>
<View className="game_list_section">
{/* <View className="date_header">
<Text className="date_text">5月29日</Text>
<Text className="separator">/</Text>
<Text className="weekday_text">星期六</Text>
</View> */}
{ended_game_records.length ? (
<>
<View className="ended_game_text"></View>
<View className="game_list_section">
{/* <View className="date_header">
<Text className="date_text">5月29日</Text>
<Text className="separator">/</Text>
<Text className="weekday_text">星期六</Text>
</View> */}
{/* 球局列表 */}
{/* <View className="game_list_section"> */}
<ScrollView scrollY refresherBackground="#FAFAFA">
<ListContainer
data={ended_game_records}
recommendList={[]}
loading={loading}
error={null}
isShowNoData={ended_game_records.length === 0}
errorImg="ICON_LIST_EMPTY_CARD"
emptyText="暂无球局信息"
loadMoreMatches={() => {}}
collapse={true}
style={{ paddingBottom: "90px", overflow: "hidden" }}
listLoadErrorWrapperHeight="fit-content"
listLoadErrorWidth="320px"
listLoadErrorHeight="152px"
listLoadErrorScale="1.2"
defaultShowNum={3}
/>
</ScrollView>
{/* </View> */}
{/* 球局列表 */}
{/* <View className="game_list_section"> */}
<ScrollView scrollY refresherBackground="#FAFAFA">
<ListContainer
data={ended_game_records}
recommendList={[]}
loading={loading}
error={null}
isShowNoData={ended_game_records.length === 0}
errorImg="ICON_LIST_EMPTY_CARD"
emptyText="暂无球局信息"
loadMoreMatches={() => {}}
collapse={true}
style={{ paddingBottom: "90px", overflow: "hidden" }}
listLoadErrorWrapperHeight="fit-content"
listLoadErrorWidth="320px"
listLoadErrorHeight="152px"
listLoadErrorScale="1.2"
defaultShowNum={3}
/>
</ScrollView>
{/* </View> */}
{/* 球局卡片 */}
{/* <View className="game_cards">
{game_records.map((game) => (
<GameCard
key={game.id}
game={game}
on_click={handle_game_detail}
/>
))}
</View> */}
</View>
{/* 球局卡片 */}
{/* <View className="game_cards">
{game_records.map((game) => (
<GameCard
key={game.id}
game={game}
on_click={handle_game_detail}
/>
))}
</View> */}
</View>
</>
) : null}
</View>
{/* <GuideBar currentPage="personal" /> */}
</ScrollView>