import { useState } from "react"; import { View, Text, Image, ScrollView } from "@tarojs/components"; import Taro from "@tarojs/taro"; import { CommonPopup } from "@/components"; import img from "@/config/images"; import styles from "./index.module.scss"; import { insertDotInTags } from "@/utils/helper"; // 场馆信息 export default function VenueInfo(props) { const { detail } = props; const [visible, setVisible] = useState(false); const { venue_description, venue_description_tag = [], venue_image_list = [], } = detail; function showScreenShot() { setVisible(true); } function onClose() { setVisible(false); } function previewImage(current_url) { Taro.previewImage({ current: current_url, urls: venue_image_list || [], }); } return ( {/* venue detail title and venue ordered status */} 场馆详情 {venue_image_list?.length > 0 ? ( <> · 已订场 ) : ( "" )} {/* venue detail content */} {/* venue detail tags */} {insertDotInTags(venue_description_tag).map((tag, index) => ( {tag} ))} {/* venue remarks */} {venue_description} 预定截图 {venue_image_list?.length > 0 && venue_image_list.map((url, index) => { return ( ); })} ); }