<template>
	<view class="dashan">
		<view class="list">
			<view class="item" v-for="i in 5" :key="i" @longpress="openSheet()">
				<view class="pic">
					<image src="@/static/nan.png"></image>
				</view>
				<view class="info">
					<view class="name">李同学<text>晚上9:50</text></view>
					<view class="desc">[搭讪]你好，在吗？</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		methods: {
			openSheet() {
				uni.showActionSheet({
					itemList: ["删除会话"],
					success: function (res) {
						console.log('选中了第' + (res.tapIndex + 1) + '个按钮');
					},
				})
			}
		}
	}
</script>

<style scoped lang="scss">
page{
	background-color: #fff;
}
.dashan{
	padding: 0 25rpx;
	overflow: hidden;
	.item{
		display: flex;
		align-items: center;
		.pic{
			width: 90rpx;
			height: 90rpx;
			margin-right: 20rpx;
			position: relative;
			.num{
				width: 30rpx;
				height: 30rpx;
				line-height: 30rpx;
				background: #FC2C2C;
				border-radius: 50%;
				font-weight: 500;
				font-size: 18rpx;
				color: #FFFFFF;
				text-align: center;
				position: absolute;
				right: 0;
				top: 0;
				z-index: 2;
			}
			image{
				width: 100%;
				height: 100%;
				border-radius: 50%;
			}
		}
		.info{
			padding: 30rpx 0;
			flex: 1;
			border-bottom: 1px solid #EAEAEA;
			.name{
				font-weight: 400;
				font-size: 30rpx;
				color: #222222;
				text{
					float: right;
					font-weight: 400;
					font-size: 24rpx;
					color: #AAAAAA;
				}
			}
			.desc{
				font-weight: 400;
				font-size: 24rpx;
				color: #AAAAAA;
				margin-top: 15rpx;
			}
		}
	}
}
</style>
