优化编辑页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>
);