修复移动端bug
This commit is contained in:
@@ -119,10 +119,10 @@
|
||||
<!-- 进度图片 -->
|
||||
<view v-if="commit.photos && commit.photos.length > 0" class="commit-photos">
|
||||
<view
|
||||
v-for="photo in commit.photos"
|
||||
v-for="(photo, idx) in commit.photos"
|
||||
:key="photo.ID"
|
||||
class="commit-photo"
|
||||
@click="previewPhoto(photo.Sha256)"
|
||||
@click="previewCommitPhotos(commit.photos, idx)"
|
||||
>
|
||||
<image
|
||||
class="commit-photo-img"
|
||||
@@ -437,6 +437,12 @@ function previewPhoto(sha256) {
|
||||
})
|
||||
}
|
||||
|
||||
// 预览进度历史中的图片
|
||||
function previewCommitPhotos(photos, currentIndex) {
|
||||
const urls = photos.map(p => getPhotoUrl(p.Sha256))
|
||||
uni.previewImage({ urls, current: currentIndex })
|
||||
}
|
||||
|
||||
function previewCommitPhoto(index) {
|
||||
const urls = commitPhotos.value.map(h => getPhotoUrl(h))
|
||||
uni.previewImage({
|
||||
|
||||
Reference in New Issue
Block a user