Merge branch 'feat/liujie'

This commit is contained in:
2025-12-31 11:20:53 +08:00
2 changed files with 9 additions and 6 deletions

View File

@@ -81,9 +81,10 @@
} }
.venue-screenshot-scroll-view { .venue-screenshot-scroll-view {
max-height: calc(100vh - 260px); max-height: calc(100dvh - 260px);
overflow-y: auto; overflow-y: auto;
padding-bottom: 40px; padding-bottom: 40px;
box-sizing: border-box;
.venue-screenshot-image-list { .venue-screenshot-image-list {
width: 100%; width: 100%;
@@ -92,9 +93,11 @@
display: grid; display: grid;
grid-template-columns: repeat(3, 1fr); grid-template-columns: repeat(3, 1fr);
gap: 10px 10px; gap: 10px 10px;
overflow: hidden;
.venue-screenshot-image-item { .venue-screenshot-image-item {
aspect-ratio: 1/1; aspect-ratio: 1/1;
min-height: 100%;
border-radius: 9px; border-radius: 9px;
border: 1px solid rgba(0, 0, 0, 0.12); border: 1px solid rgba(0, 0, 0, 0.12);
box-sizing: border-box; box-sizing: border-box;

View File

@@ -26,8 +26,7 @@ export default function VenueInfo(props) {
function previewImage(current_url) { function previewImage(current_url) {
Taro.previewImage({ Taro.previewImage({
current: current_url, current: current_url,
urls: urls: venue_image_list || [],
venue_image_list?.length > 0 ? venue_image_list.map((c) => c.url) : [],
}); });
} }
return ( return (
@@ -83,16 +82,17 @@ export default function VenueInfo(props) {
<ScrollView scrollY className={styles["venue-screenshot-scroll-view"]}> <ScrollView scrollY className={styles["venue-screenshot-scroll-view"]}>
<View className={styles["venue-screenshot-image-list"]}> <View className={styles["venue-screenshot-image-list"]}>
{venue_image_list?.length > 0 && {venue_image_list?.length > 0 &&
venue_image_list.map((item) => { venue_image_list.map((url, index) => {
return ( return (
<View <View
className={styles["venue-screenshot-image-item"]} className={styles["venue-screenshot-image-item"]}
onClick={previewImage.bind(null, item.url)} onClick={previewImage.bind(null, url)}
key={index}
> >
<Image <Image
className={styles["venue-screenshot-image-item-image"]} className={styles["venue-screenshot-image-item-image"]}
mode="aspectFill" mode="aspectFill"
src={item.url} src={url}
/> />
</View> </View>
); );