style: 修改球局详情页场馆预定截图展示问题、修改截图地址取值问题
This commit is contained in:
@@ -26,8 +26,7 @@ export default function VenueInfo(props) {
|
||||
function previewImage(current_url) {
|
||||
Taro.previewImage({
|
||||
current: current_url,
|
||||
urls:
|
||||
venue_image_list?.length > 0 ? venue_image_list.map((c) => c.url) : [],
|
||||
urls: venue_image_list || [],
|
||||
});
|
||||
}
|
||||
return (
|
||||
@@ -83,16 +82,17 @@ export default function VenueInfo(props) {
|
||||
<ScrollView scrollY className={styles["venue-screenshot-scroll-view"]}>
|
||||
<View className={styles["venue-screenshot-image-list"]}>
|
||||
{venue_image_list?.length > 0 &&
|
||||
venue_image_list.map((item) => {
|
||||
venue_image_list.map((url, index) => {
|
||||
return (
|
||||
<View
|
||||
className={styles["venue-screenshot-image-item"]}
|
||||
onClick={previewImage.bind(null, item.url)}
|
||||
onClick={previewImage.bind(null, url)}
|
||||
key={index}
|
||||
>
|
||||
<Image
|
||||
className={styles["venue-screenshot-image-item-image"]}
|
||||
mode="aspectFill"
|
||||
src={item.url}
|
||||
src={url}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user