<template>
	<view class="Life">

		<view class="item" @click="showimg1()">
			<image src="https://zsy-m.mianyang.cn/upload/2022/03/24/9d808360-c829-4c93-a4a1-0cae9577d101.png" mode="">
			</image>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		async mounted() {

		},
		methods:{
			showimg1(){
				uni.previewImage({
							urls: ["https://zsy-m.mianyang.cn/upload/2022/03/24/1779c09b-1e9d-4399-876e-aa7c3aca1f84.png"],
							longPressActions: {
								itemList: ['发送给朋友', '保存图片', '收藏'],
								success: function(data) {
									console.log('选中了第' + (data.tapIndex + 1) + '个按钮,第' + (data.index + 1) + '张图片');
								},
								fail: function(err) {
									console.log(err.errMsg);
								}
							}
				});
			},
		}
	}
</script>

<style lang="scss">
	.Life {
		margin: 0rpx auto;
		padding-bottom: 80rpx;
	.item{
		width: 670rpx;
		height: 250rpx;
		margin: 0rpx auto;
		margin-top: 40rpx;
		border-radius: 5rpx;
		image {
			width: 670rpx;
			height: 250rpx;
			border-radius: 5rpx;
		}
	}
	}
</style>
