优化编辑页placeholder样式、没有往期球局时,隐藏往期球局
This commit is contained in:
@@ -247,27 +247,31 @@ const MyselfPageContent: React.FC = () => {
|
|||||||
</ScrollView>
|
</ScrollView>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View className={styles.endedGameText}>往期球局</View>
|
{ended_game_records.length ? (
|
||||||
<View className={styles.gameListSection}>
|
<>
|
||||||
<ScrollView scrollY>
|
<View className={styles.endedGameText}>往期球局</View>
|
||||||
<ListContainer
|
<View className={styles.gameListSection}>
|
||||||
data={ended_game_records}
|
<ScrollView scrollY>
|
||||||
recommendList={[]}
|
<ListContainer
|
||||||
loading={loading}
|
data={ended_game_records}
|
||||||
error={null}
|
recommendList={[]}
|
||||||
errorImg="ICON_LIST_EMPTY_CARD"
|
loading={loading}
|
||||||
isShowNoData={ended_game_records.length === 0}
|
error={null}
|
||||||
loadMoreMatches={() => {}}
|
errorImg="ICON_LIST_EMPTY_CARD"
|
||||||
collapse={true}
|
isShowNoData={ended_game_records.length === 0}
|
||||||
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
loadMoreMatches={() => {}}
|
||||||
listLoadErrorWrapperHeight="fit-content"
|
collapse={true}
|
||||||
listLoadErrorWidth="320px"
|
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
||||||
listLoadErrorHeight="152px"
|
listLoadErrorWrapperHeight="fit-content"
|
||||||
listLoadErrorScale="1.2"
|
listLoadErrorWidth="320px"
|
||||||
defaultShowNum={3}
|
listLoadErrorHeight="152px"
|
||||||
/>
|
listLoadErrorScale="1.2"
|
||||||
</ScrollView>
|
defaultShowNum={3}
|
||||||
</View>
|
/>
|
||||||
|
</ScrollView>
|
||||||
|
</View>
|
||||||
|
</>
|
||||||
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -237,6 +237,7 @@
|
|||||||
|
|
||||||
&::placeholder {
|
&::placeholder {
|
||||||
color: rgba(0, 0, 0, 0.4);
|
color: rgba(0, 0, 0, 0.4);
|
||||||
|
font-weight: unset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,7 +15,11 @@ import {
|
|||||||
useNicknameChangeStatus,
|
useNicknameChangeStatus,
|
||||||
} from "@/store/userStore";
|
} from "@/store/userStore";
|
||||||
import { UserInfoType } from "@/services/userService";
|
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 { handleCustomerService } from "@/services/userService";
|
||||||
import evaluateService from "@/services/evaluateService";
|
import evaluateService from "@/services/evaluateService";
|
||||||
|
|
||||||
|
|||||||
@@ -335,48 +335,52 @@ const OtherUserPage: React.FC = () => {
|
|||||||
</View>
|
</View>
|
||||||
|
|
||||||
{/* 往期球局 */}
|
{/* 往期球局 */}
|
||||||
<View className="ended_game_text">往期球局</View>
|
{ended_game_records.length ? (
|
||||||
<View className="game_list_section">
|
<>
|
||||||
{/* <View className="date_header">
|
<View className="ended_game_text">往期球局</View>
|
||||||
<Text className="date_text">5月29日</Text>
|
<View className="game_list_section">
|
||||||
<Text className="separator">/</Text>
|
{/* <View className="date_header">
|
||||||
<Text className="weekday_text">星期六</Text>
|
<Text className="date_text">5月29日</Text>
|
||||||
</View> */}
|
<Text className="separator">/</Text>
|
||||||
|
<Text className="weekday_text">星期六</Text>
|
||||||
|
</View> */}
|
||||||
|
|
||||||
{/* 球局列表 */}
|
{/* 球局列表 */}
|
||||||
{/* <View className="game_list_section"> */}
|
{/* <View className="game_list_section"> */}
|
||||||
<ScrollView scrollY refresherBackground="#FAFAFA">
|
<ScrollView scrollY refresherBackground="#FAFAFA">
|
||||||
<ListContainer
|
<ListContainer
|
||||||
data={ended_game_records}
|
data={ended_game_records}
|
||||||
recommendList={[]}
|
recommendList={[]}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
error={null}
|
error={null}
|
||||||
isShowNoData={ended_game_records.length === 0}
|
isShowNoData={ended_game_records.length === 0}
|
||||||
errorImg="ICON_LIST_EMPTY_CARD"
|
errorImg="ICON_LIST_EMPTY_CARD"
|
||||||
emptyText="暂无球局信息"
|
emptyText="暂无球局信息"
|
||||||
loadMoreMatches={() => {}}
|
loadMoreMatches={() => {}}
|
||||||
collapse={true}
|
collapse={true}
|
||||||
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
style={{ paddingBottom: "90px", overflow: "hidden" }}
|
||||||
listLoadErrorWrapperHeight="fit-content"
|
listLoadErrorWrapperHeight="fit-content"
|
||||||
listLoadErrorWidth="320px"
|
listLoadErrorWidth="320px"
|
||||||
listLoadErrorHeight="152px"
|
listLoadErrorHeight="152px"
|
||||||
listLoadErrorScale="1.2"
|
listLoadErrorScale="1.2"
|
||||||
defaultShowNum={3}
|
defaultShowNum={3}
|
||||||
/>
|
/>
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
{/* </View> */}
|
{/* </View> */}
|
||||||
|
|
||||||
{/* 球局卡片 */}
|
{/* 球局卡片 */}
|
||||||
{/* <View className="game_cards">
|
{/* <View className="game_cards">
|
||||||
{game_records.map((game) => (
|
{game_records.map((game) => (
|
||||||
<GameCard
|
<GameCard
|
||||||
key={game.id}
|
key={game.id}
|
||||||
game={game}
|
game={game}
|
||||||
on_click={handle_game_detail}
|
on_click={handle_game_detail}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</View> */}
|
</View> */}
|
||||||
</View>
|
</View>
|
||||||
|
</>
|
||||||
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
{/* <GuideBar currentPage="personal" /> */}
|
{/* <GuideBar currentPage="personal" /> */}
|
||||||
</ScrollView>
|
</ScrollView>
|
||||||
|
|||||||
Reference in New Issue
Block a user