出库时可预览放大图片

This commit is contained in:
jyx 2024-10-23 13:55:11 +08:00
parent 05875926d5
commit 210cde7f2f

View File

@ -34,7 +34,7 @@
<span style="margin-top: 20rpx">画家{{ state.drawerName }}</span>
<span style="margin-top: 20rpx">预览图</span>
<view class="image-container">
<up-image :src="state.drawThumbnail"></up-image>
<up-image :src="state.drawThumbnail" @click="enlarge(state.drawThumbnail)"></up-image>
</view>
</view>
</view>
@ -163,6 +163,13 @@ const getBtngetRules = async () => {
showMessage({ type: "error", message: res.msg });
}
};
//
const enlarge = (src) => {
uni.previewImage({
urls: [src],
current: src,
});
};
</script>
<style lang="scss" scoped>