图片能点击放大

pet
liujun 2024-12-03 16:00:16 +08:00
parent f26c6c94a7
commit d8525f5cb5
1 changed files with 7 additions and 0 deletions

View File

@ -14,6 +14,7 @@
height="200rpx"
:src="$filePath + item1.ITEM_VALUE"
mode="widthFix"
@click="fnPreviewImage($filePath + item1.ITEM_VALUE)"
/>
</view>
</view>
@ -140,6 +141,12 @@ export default {
},
goBack(){
uni.navigateBack()
},
fnPreviewImage(src){
uni.previewImage({
urls: [src],
current: src,
});
}
},
}