处理场馆方字段

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

View File

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