<template>
	<view class="content">
		<view class="list" v-for="(item, index) in list" :key="index" @click="$url(item.path)" hover-class="lf-opacity">
			<view class="icon" :style="{'background': item.bg_color}">
				<text class="lf-iconfont lf-font-50" :class="item.icon"></text>
			</view>
			<view class="lf-row-between" style="width: 556rpx;">
				<view>
					<view class="lf-font-32 lf-color-222">{{ item.title }}</view>
					<view class="lf-m-t-10 lf-font-28 lf-color-777">{{ item.desc }}</view>
				</view>
				<view class="lf-row-between">
					<view class="lf-bg-red lf-font-28 ifread-tag">99+</view>
					<text class="lf-iconfont icon-xiangyou lf-color-999"></text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 隐藏部分
				// {
				// 	title: '消息订阅',
				// 	desc: '关闭后将错过不少缘分',
				// 	icon: 'icon-pinglun',
				// 	bg_color: '#409EEC',
				// 	path: '',
				// 	unread_count: 0
				// },
				list: [{
					title: '联系过的人',
					desc: '去看看哪些人联系过了',
					icon: 'icon-contact-person',
					bg_color: '#FE3EA5',
					path: '',
					unread_count: 0
				}, {
					title: '系统消息',
					desc: '查看官方消息',
					icon: 'icon-tongzhi',
					bg_color: '#FE7B43',
					path: '/pages/messageCenter/system',
					unread_count: 0
				}]
			}
		},
		onLoad() {

		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped="scoped">
	.content {
		padding: 0 32rpx;
		width: 750rpx;
		height: max-content;
		box-sizing: border-box;

		.list {
			padding: 30rpx 0;
			border-bottom: 1rpx solid #e5e5e5;
			display: flex;

			.icon {
				width: 120rpx;
				height: 120rpx;
				border-radius: 50%;
				margin-right: 15rpx;
				color: #FFFFFF;
				display: flex;
				justify-content: center;
				align-items: center;
			}
		}
	}

	.ifread-tag {
		border-radius: 20rpx;
		padding: 4rpx;
		color: white;
		width: 64rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		margin-right: 10rpx;
	}
</style>
