处理场馆方字段

This commit is contained in:
李瑞
2026-03-10 00:03:42 +08:00
parent 2e4fd16383
commit b854ef7505
2 changed files with 6 additions and 6 deletions

View File

@@ -27,7 +27,7 @@ const ListCard: React.FC<ListCardProps> = ({
key, key,
participants, // 参与者图片 participants, // 参与者图片
venue_image_list, // 场馆图片 venue_image_list, // 场馆图片
venue_description, location_name = '', // 场馆方
game_type, // 球局类型 game_type, // 球局类型
}) => { }) => {
// 参与者要前三个数据 // 参与者要前三个数据
@@ -257,13 +257,13 @@ const ListCard: React.FC<ListCardProps> = ({
/> />
{/* <Text className="smoothTitle">{game_type}</Text> */} {/* <Text className="smoothTitle">{game_type}</Text> */}
</View> </View>
{venue_description && <View className="line" />} {location_name && <View className="line" />}
{venue_description && ( {location_name && (
<View className="localAreaContainer"> <View className="localAreaContainer">
<View className="localAreaTitle">:</View> <View className="localAreaTitle">:</View>
<View className="localAreaWrapper"> <View className="localAreaWrapper">
<Image className="localArea" src={venueImage} /> {venueImage && <Image className="localArea" src={venueImage} />}
<Text className="localAreaText">{venue_description}</Text> <Text className="localAreaText">{location_name}</Text>
</View> </View>
</View> </View>
)} )}

View File

@@ -237,7 +237,7 @@ export interface ListCardProps {
venue_image_list: { venue_image_list: {
url: string; url: string;
}[]; }[];
venue_description: string; location_name: string;
game_type: string; game_type: string;
type: string; type: string;
} }