<template>
	<view :class="{'gray':store.isgray==1}">
		<view class="list">
			<view class="item f-row aic">
				<view class="f-row aic">
					<image src="../../static/system.png" mode=""></image>
				</view>
				<view class="name_info">
					<view class="name_time f-row aic jcb">
						<view class="name">
							系统通知
						</view>
						<view class="time">
							1分钟前
						</view>
					</view>
					<view class="info">
						关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知关于年假通知
					</view>
				</view>
			</view>
			<view class="item f-row aic" v-for="item,i in 5" :key="i" @click="jump('/pages/talk/conversation')">
				<view class="f-row aic">
					<image src="" mode=""></image>
				</view>
				<view class="name_info">
					<view class="name_time f-row aic jcb">
						<view class="name">
							系统通知
						</view>
						<view class="time">
							1分钟前
						</view>
					</view>
					<view class="info">
						关于年假通知
					</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	import {
		beforeJump
	} from '@/utils/index.js';
	import {
		useStore
	} from '@/store';
	const store = useStore();
	const jump = (url) => {
		beforeJump(url, () => {
			uni.navigateTo({
				url
			})
		})
	}
</script>

<style lang="scss" scoped>
	.list {
		padding: 0 30rpx;
	}

	.item:not(:last-child) {
		border-bottom: 1px solid #EFEFEF;
	}

	.item {
		height: 150rpx;


		.name_info {
			flex: 1;
		}

		.name {
			font-size: 32rpx;
			color: #333333;
		}

		.info {
			margin-top: 4rpx;
			width: 540rpx;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
		}

		.time,
		.info {
			font-size: 28rpx;
			color: #999999;
		}

		image {
			width: 100rpx;
			height: 100rpx;
			border-radius: 50%;
			background-color: #f8f8f8;
			margin-right: 24rpx;
		}
	}
</style>