Commit 1662ab76 by 胡悦

提交

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