添加场地类型

This commit is contained in:
张成
2026-04-22 10:47:11 +08:00
parent ce1f5485fe
commit 3212503a64

View File

@@ -12,9 +12,11 @@ export default function VenueInfo(props) {
const [visible, setVisible] = useState(false);
const {
venue_description,
court_type,
venue_description_tag = [],
venue_image_list = [],
} = detail;
const venue_tags = [court_type, ...venue_description_tag].filter(Boolean);
// 统一为 URL 数组:接口可能是 { id, url }[] 或 string[]
const screenshot_urls = (venue_image_list || []).map((item) =>
@@ -61,7 +63,7 @@ export default function VenueInfo(props) {
<View className={styles["venue-detail-content"]}>
{/* venue detail tags */}
<View className={styles["venue-detail-content-tags"]}>
{insertDotInTags(venue_description_tag).map((tag, index) => (
{insertDotInTags(venue_tags).map((tag, index) => (
<View
key={index}
className={styles["venue-detail-content-tags-tag"]}