出库时可预览放大图片
This commit is contained in:
parent
05875926d5
commit
210cde7f2f
@ -34,7 +34,7 @@
|
|||||||
<span style="margin-top: 20rpx">画家:{{ state.drawerName }}</span>
|
<span style="margin-top: 20rpx">画家:{{ state.drawerName }}</span>
|
||||||
<span style="margin-top: 20rpx">预览图:</span>
|
<span style="margin-top: 20rpx">预览图:</span>
|
||||||
<view class="image-container">
|
<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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -163,6 +163,13 @@ const getBtngetRules = async () => {
|
|||||||
showMessage({ type: "error", message: res.msg });
|
showMessage({ type: "error", message: res.msg });
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
//点击照片预览
|
||||||
|
const enlarge = (src) => {
|
||||||
|
uni.previewImage({
|
||||||
|
urls: [src],
|
||||||
|
current: src,
|
||||||
|
});
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
Loading…
Reference in New Issue
Block a user