图片能点击放大

zhy_new_1203
liujun 2024-12-03 16:00:17 +08:00
parent 10ef76c1b6
commit cc9dd66f3b
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,
});
}
},
}