Commit 1662ab76 by 胡悦

提交

1 parent a44ca151
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-07 14:54:28
* @LastEditors: huyue
* @LastEditTime: 2024-04-09 18:27:28
* @LastEditTime: 2024-04-09 18:43:19
-->
<template>
<view class="information-entry">
......@@ -17,7 +17,7 @@
:key="item.title"
>
<view class="upload-img" v-if="item.imgUrl">
<image class="img" :src="item.imgUrl" mode="scaleToFill" />
<image class="img" :src="item.imgUrl" mode="top" @click="preview(index)" />
<uni-icons
class="upload-close"
type="clear"
......@@ -36,6 +36,13 @@
</view>
</view>
<view class="information-done" @click="done()">完成接待</view>
<uni-popup ref="preview" type="center" border-radius="10px 10px 0 0">
<image
class="preview-img"
:src="previewImg"
mode="aspectFit"
/>
</uni-popup>
<MessageBox
v-if="messageBoxVisible"
@cancel="cancel"
......@@ -131,7 +138,8 @@ export default {
carModel: '',
sales: ''
},
carBoxVisible: false
carBoxVisible: false,
previewImg: ''
};
},
onLoad(options) {
......@@ -186,7 +194,12 @@ export default {
// 取消
cancel() {
this.messageBoxVisible = false
}
},
// 预览图片
preview(index) {
this.previewImg = this.infoList[index].imgUrl;
this.$refs.preview.open('center')
}
},
};
</script>
......@@ -332,4 +345,7 @@ export default {
}
}
}
.preview-img {
// width: 100%;
}
</style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!