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