<template>
	<view class="headers">
		<view class="headers_list" v-for="(item,index) in infos" :key="index">
			<view class="headers_title">
				<text class="headers_title_h1">
					{{item.title}}				
				</text>	
				<!-- <text class="headers_title_h2">
					{{item.titles}}				
				</text>	 -->
			</view>	
			<view class="headers_ul" >
				<view class="headers_li" v-for="(items,index) in item.lists" :key="index">
					<view class="headers_li_img">
						<image :src="items.imgs" mode=""></image>
					</view>
					<view class="headers_li_text">  
						{{items.texts}}
					</view>
				</view>
			</view>
		</view>	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				infos:[
					{title:"我的常用",
					titles:"(长按图标可添加删除)",
					lists:[
						{imgs:"/../static/img/tongzhi.png",texts:"通知公告"},
						{imgs:"/../static/img/daiban.png",texts:"待办工作"},
						{imgs:"/../static/img/zhiban.png",texts:"值班信息"},
						{imgs:"/../static/img/banzu.png",texts:"班组信息"},
					]},
					{title:"我的常用",
					titles:"(长按图标可添加删除)",
					lists:[
						{imgs:"/../static/img/tongzhi.png",texts:"通知公告"},
						{imgs:"/../static/img/daiban.png",texts:"待办工作"},
						{imgs:"/../static/img/zhiban.png",texts:"值班信息"},
						{imgs:"/../static/img/banzu.png",texts:"班组信息"},
					]},
					{title:"我的常用",
					titles:"(长按图标可添加删除)",
					lists:[
						{imgs:"/../static/img/tongzhi.png",texts:"通知公告"},
						{imgs:"/../static/img/daiban.png",texts:"待办工作"},
						{imgs:"/../static/img/zhiban.png",texts:"值班信息"},
						{imgs:"/../static/img/banzu.png",texts:"班组信息"},
					]},
				]
			};
		}
	}
</script>

<style >
	.headers{
		width: 95%;
		margin: 15rpx auto;
		/* background-color: #fff; */
		/* border-radius: 40rpx; */
	}
	.headers_ul{
		display: flex;
		flex-direction: row;
		justify-content: space-around;
		margin-top: 10rpx;
	}
	.headers_title{
		margin-left: 40rpx;
		padding-top: 10rpx;
		padding-bottom: 5rpx;
	}
	.headers_li{
		text-align: center;
		margin-bottom: 10rpx;
	}
	.headers_li_img>image{
		width: 100rpx;
		height: 100rpx;
	}
	.headers_li_text{
		font-size: 14px;
	}
	.headers_title_h2{
		font-size: 12rpx;
		color: #8F939C;
	}
	.headers_list{
		background-color: #FFFFFF;
		margin-bottom: 20rpx;
		margin-top: 20rpx;
		border-radius: 40rpx;
	}
</style>
