This commit is contained in:
liuye
2023-05-11 15:14:54 +08:00
parent d159fcd9da
commit cab1ccc026

View File

@@ -36,6 +36,9 @@
<div class="color-999 mar-r32 stepTime" v-text="item.doTime"/> <div class="color-999 mar-r32 stepTime" v-text="item.doTime"/>
</div> </div>
<div v-if="item.doExplain" class="stepContent mar-t8" v-text="item.doExplain"/> <div v-if="item.doExplain" class="stepContent mar-t8" v-text="item.doExplain"/>
<div class="imgs">
<img :src="e.url" alt="" v-for="(e, index) in item.files" :key="index" @click="previewImage(item.files, e.url)"/>
</div>
<u-gap height="48"/> <u-gap height="48"/>
</AiStep> </AiStep>
</AiGroup> </AiGroup>
@@ -110,7 +113,13 @@ export default {
urls: this.info.files.map(v => v.url), urls: this.info.files.map(v => v.url),
current: url current: url
}) })
} },
previewImage(images, img) {
uni.previewImage({
urls: images.map(v => v.url),
current: img
})
},
} }
} }
</script> </script>
@@ -180,5 +189,19 @@ export default {
margin-right: 0; margin-right: 0;
} }
} }
.imgs {
margin-top: 10px;
img {
width: 136px;
height: 136px;
border-radius: 4px;
margin-right: 12px;
}
img:nth-of-type(3n) {
margin-right: 0;
}
}
} }
</style> </style>