预览图

This commit is contained in:
贾旖璇 2024-09-30 09:51:29 +08:00
parent f7477e86b3
commit aaf97d54c8

View File

@ -21,7 +21,7 @@
<up-list @scrolltolower="scrolltolower" style="height:1120rpx">
<up-list-item class="painting-box" v-for="(painting,index) in state.tableData" :key="index">
<span style="display: flex; align-items: center;position: relative;" >
<up-image :show-loading="true" :src="painting.HdPic" width="100px" height="100px" @click="enlarge"></up-image>
<up-image :show-loading="true" :src="painting.HdPic" width="100px" height="100px" @click = "enlarge(painting.HdPic)"></up-image>
<span style="display: flex; flex-direction: column; margin-left: 10px;">
<span style="font-weight: bold;" >{{painting.ArtworkName}}</span>
<span style="color:#BCBCBC;font-size: 16px;">画作编号{{ painting.Tfnum }}</span>
@ -186,7 +186,14 @@ const scrolltolower = async () => {
showMessage({type: "error", message: res.msg});
}
};
//
const enlarge=(src) =>{
uni.previewImage({
urls: [src],
current: src
});
}
</script>